Class SpannerSchema.Builder (1.102.0)

public static final class SpannerSchema.Builder extends GeneratedMessage.Builder<SpannerSchema.Builder> implements SpannerSchemaOrBuilder

Spanner schema.

Protobuf type google.cloud.datastream.v1.SpannerSchema

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTables(Iterable<? extends SpannerTable> values)

public SpannerSchema.Builder addAllTables(Iterable<? extends SpannerTable> values)

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.datastream.v1.SpannerTable>
Returns
Type Description
SpannerSchema.Builder

addTables(SpannerTable value)

public SpannerSchema.Builder addTables(SpannerTable value)

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SpannerTable
Returns
Type Description
SpannerSchema.Builder

addTables(SpannerTable.Builder builderForValue)

public SpannerSchema.Builder addTables(SpannerTable.Builder builderForValue)

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SpannerTable.Builder
Returns
Type Description
SpannerSchema.Builder

addTables(int index, SpannerTable value)

public SpannerSchema.Builder addTables(int index, SpannerTable value)

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value SpannerTable
Returns
Type Description
SpannerSchema.Builder

addTables(int index, SpannerTable.Builder builderForValue)

public SpannerSchema.Builder addTables(int index, SpannerTable.Builder builderForValue)

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue SpannerTable.Builder
Returns
Type Description
SpannerSchema.Builder

addTablesBuilder()

public SpannerTable.Builder addTablesBuilder()

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SpannerTable.Builder

addTablesBuilder(int index)

public SpannerTable.Builder addTablesBuilder(int index)

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SpannerTable.Builder

build()

public SpannerSchema build()
Returns
Type Description
SpannerSchema

buildPartial()

public SpannerSchema buildPartial()
Returns
Type Description
SpannerSchema

clear()

public SpannerSchema.Builder clear()
Returns
Type Description
SpannerSchema.Builder
Overrides

clearSchema()

public SpannerSchema.Builder clearSchema()

Required. The schema name.

string schema = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SpannerSchema.Builder

This builder for chaining.

clearTables()

public SpannerSchema.Builder clearTables()

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SpannerSchema.Builder

getDefaultInstanceForType()

public SpannerSchema getDefaultInstanceForType()
Returns
Type Description
SpannerSchema

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSchema()

public String getSchema()

Required. The schema name.

string schema = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The schema.

getSchemaBytes()

public ByteString getSchemaBytes()

Required. The schema name.

string schema = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for schema.

getTables(int index)

public SpannerTable getTables(int index)

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SpannerTable

getTablesBuilder(int index)

public SpannerTable.Builder getTablesBuilder(int index)

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SpannerTable.Builder

getTablesBuilderList()

public List<SpannerTable.Builder> getTablesBuilderList()

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getTablesCount()

public int getTablesCount()

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getTablesList()

public List<SpannerTable> getTablesList()

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<SpannerTable>

getTablesOrBuilder(int index)

public SpannerTableOrBuilder getTablesOrBuilder(int index)

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SpannerTableOrBuilder

getTablesOrBuilderList()

public List<? extends SpannerTableOrBuilder> getTablesOrBuilderList()

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.datastream.v1.SpannerTableOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SpannerSchema other)

public SpannerSchema.Builder mergeFrom(SpannerSchema other)
Parameter
Name Description
other SpannerSchema
Returns
Type Description
SpannerSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SpannerSchema.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpannerSchema.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SpannerSchema.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SpannerSchema.Builder
Overrides

removeTables(int index)

public SpannerSchema.Builder removeTables(int index)

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SpannerSchema.Builder

setSchema(String value)

public SpannerSchema.Builder setSchema(String value)

Required. The schema name.

string schema = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The schema to set.

Returns
Type Description
SpannerSchema.Builder

This builder for chaining.

setSchemaBytes(ByteString value)

public SpannerSchema.Builder setSchemaBytes(ByteString value)

Required. The schema name.

string schema = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for schema to set.

Returns
Type Description
SpannerSchema.Builder

This builder for chaining.

setTables(int index, SpannerTable value)

public SpannerSchema.Builder setTables(int index, SpannerTable value)

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value SpannerTable
Returns
Type Description
SpannerSchema.Builder

setTables(int index, SpannerTable.Builder builderForValue)

public SpannerSchema.Builder setTables(int index, SpannerTable.Builder builderForValue)

Optional. Spanner tables in the schema.

repeated .google.cloud.datastream.v1.SpannerTable tables = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue SpannerTable.Builder
Returns
Type Description
SpannerSchema.Builder