Class IndexEntity.Builder (2.50.0)

public static final class IndexEntity.Builder extends GeneratedMessageV3.Builder<IndexEntity.Builder> implements IndexEntityOrBuilder

Index is not used as an independent entity, it is retrieved as part of a Table entity.

Protobuf type google.cloud.clouddms.v1.IndexEntity

Static Methods

getDescriptor()

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

Methods

addAllTableColumns(Iterable<String> values)

public IndexEntity.Builder addAllTableColumns(Iterable<String> values)

Table columns used as part of the Index, for example B-TREE index should list the columns which constitutes the index.

repeated string table_columns = 3;

Parameter
Name Description
values Iterable<String>

The tableColumns to add.

Returns
Type Description
IndexEntity.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IndexEntity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IndexEntity.Builder
Overrides

addTableColumns(String value)

public IndexEntity.Builder addTableColumns(String value)

Table columns used as part of the Index, for example B-TREE index should list the columns which constitutes the index.

repeated string table_columns = 3;

Parameter
Name Description
value String

The tableColumns to add.

Returns
Type Description
IndexEntity.Builder

This builder for chaining.

addTableColumnsBytes(ByteString value)

public IndexEntity.Builder addTableColumnsBytes(ByteString value)

Table columns used as part of the Index, for example B-TREE index should list the columns which constitutes the index.

repeated string table_columns = 3;

Parameter
Name Description
value ByteString

The bytes of the tableColumns to add.

Returns
Type Description
IndexEntity.Builder

This builder for chaining.

build()

public IndexEntity build()
Returns
Type Description
IndexEntity

buildPartial()

public IndexEntity buildPartial()
Returns
Type Description
IndexEntity

clear()

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

clearCustomFeatures()

public IndexEntity.Builder clearCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
Type Description
IndexEntity.Builder

clearField(Descriptors.FieldDescriptor field)

public IndexEntity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
IndexEntity.Builder
Overrides

clearName()

public IndexEntity.Builder clearName()

The name of the index.

string name = 1;

Returns
Type Description
IndexEntity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public IndexEntity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
IndexEntity.Builder
Overrides

clearTableColumns()

public IndexEntity.Builder clearTableColumns()

Table columns used as part of the Index, for example B-TREE index should list the columns which constitutes the index.

repeated string table_columns = 3;

Returns
Type Description
IndexEntity.Builder

This builder for chaining.

clearType()

public IndexEntity.Builder clearType()

Type of index, for example B-TREE.

string type = 2;

Returns
Type Description
IndexEntity.Builder

This builder for chaining.

clearUnique()

public IndexEntity.Builder clearUnique()

Boolean value indicating whether the index is unique.

bool unique = 4;

Returns
Type Description
IndexEntity.Builder

This builder for chaining.

clone()

public IndexEntity.Builder clone()
Returns
Type Description
IndexEntity.Builder
Overrides

getCustomFeatures()

public Struct getCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
Type Description
Struct

The customFeatures.

getCustomFeaturesBuilder()

public Struct.Builder getCustomFeaturesBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
Type Description
Builder

getCustomFeaturesOrBuilder()

public StructOrBuilder getCustomFeaturesOrBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
Type Description
StructOrBuilder

getDefaultInstanceForType()

public IndexEntity getDefaultInstanceForType()
Returns
Type Description
IndexEntity

getDescriptorForType()

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

getName()

public String getName()

The name of the index.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the index.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getTableColumns(int index)

public String getTableColumns(int index)

Table columns used as part of the Index, for example B-TREE index should list the columns which constitutes the index.

repeated string table_columns = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The tableColumns at the given index.

getTableColumnsBytes(int index)

public ByteString getTableColumnsBytes(int index)

Table columns used as part of the Index, for example B-TREE index should list the columns which constitutes the index.

repeated string table_columns = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the tableColumns at the given index.

getTableColumnsCount()

public int getTableColumnsCount()

Table columns used as part of the Index, for example B-TREE index should list the columns which constitutes the index.

repeated string table_columns = 3;

Returns
Type Description
int

The count of tableColumns.

getTableColumnsList()

public ProtocolStringList getTableColumnsList()

Table columns used as part of the Index, for example B-TREE index should list the columns which constitutes the index.

repeated string table_columns = 3;

Returns
Type Description
ProtocolStringList

A list containing the tableColumns.

getType()

public String getType()

Type of index, for example B-TREE.

string type = 2;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Type of index, for example B-TREE.

string type = 2;

Returns
Type Description
ByteString

The bytes for type.

getUnique()

public boolean getUnique()

Boolean value indicating whether the index is unique.

bool unique = 4;

Returns
Type Description
boolean

The unique.

hasCustomFeatures()

public boolean hasCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
Type Description
boolean

Whether the customFeatures field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomFeatures(Struct value)

public IndexEntity.Builder mergeCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Parameter
Name Description
value Struct
Returns
Type Description
IndexEntity.Builder

mergeFrom(IndexEntity other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IndexEntity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IndexEntity.Builder
Overrides

setCustomFeatures(Struct value)

public IndexEntity.Builder setCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Parameter
Name Description
value Struct
Returns
Type Description
IndexEntity.Builder

setCustomFeatures(Struct.Builder builderForValue)

public IndexEntity.Builder setCustomFeatures(Struct.Builder builderForValue)

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
IndexEntity.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public IndexEntity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IndexEntity.Builder
Overrides

setName(String value)

public IndexEntity.Builder setName(String value)

The name of the index.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
IndexEntity.Builder

This builder for chaining.

setNameBytes(ByteString value)

public IndexEntity.Builder setNameBytes(ByteString value)

The name of the index.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
IndexEntity.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public IndexEntity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
IndexEntity.Builder
Overrides

setTableColumns(int index, String value)

public IndexEntity.Builder setTableColumns(int index, String value)

Table columns used as part of the Index, for example B-TREE index should list the columns which constitutes the index.

repeated string table_columns = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The tableColumns to set.

Returns
Type Description
IndexEntity.Builder

This builder for chaining.

setType(String value)

public IndexEntity.Builder setType(String value)

Type of index, for example B-TREE.

string type = 2;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
IndexEntity.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public IndexEntity.Builder setTypeBytes(ByteString value)

Type of index, for example B-TREE.

string type = 2;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
IndexEntity.Builder

This builder for chaining.

setUnique(boolean value)

public IndexEntity.Builder setUnique(boolean value)

Boolean value indicating whether the index is unique.

bool unique = 4;

Parameter
Name Description
value boolean

The unique to set.

Returns
Type Description
IndexEntity.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final IndexEntity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IndexEntity.Builder
Overrides