Class IndexEntity.Builder (2.28.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
TypeDescription
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
NameDescription
valuesIterable<String>

The tableColumns to add.

Returns
TypeDescription
IndexEntity.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IndexEntity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The tableColumns to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the tableColumns to add.

Returns
TypeDescription
IndexEntity.Builder

This builder for chaining.

build()

public IndexEntity build()
Returns
TypeDescription
IndexEntity

buildPartial()

public IndexEntity buildPartial()
Returns
TypeDescription
IndexEntity

clear()

public IndexEntity.Builder clear()
Returns
TypeDescription
IndexEntity.Builder
Overrides

clearCustomFeatures()

public IndexEntity.Builder clearCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
TypeDescription
IndexEntity.Builder

clearField(Descriptors.FieldDescriptor field)

public IndexEntity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
IndexEntity.Builder
Overrides

clearName()

public IndexEntity.Builder clearName()

The name of the index.

string name = 1;

Returns
TypeDescription
IndexEntity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public IndexEntity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
IndexEntity.Builder

This builder for chaining.

clearType()

public IndexEntity.Builder clearType()

Type of index, for example B-TREE.

string type = 2;

Returns
TypeDescription
IndexEntity.Builder

This builder for chaining.

clearUnique()

public IndexEntity.Builder clearUnique()

Boolean value indicating whether the index is unique.

bool unique = 4;

Returns
TypeDescription
IndexEntity.Builder

This builder for chaining.

clone()

public IndexEntity.Builder clone()
Returns
TypeDescription
IndexEntity.Builder
Overrides

getCustomFeatures()

public Struct getCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
TypeDescription
Struct

The customFeatures.

getCustomFeaturesBuilder()

public Struct.Builder getCustomFeaturesBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
TypeDescription
Builder

getCustomFeaturesOrBuilder()

public StructOrBuilder getCustomFeaturesOrBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
TypeDescription
StructOrBuilder

getDefaultInstanceForType()

public IndexEntity getDefaultInstanceForType()
Returns
TypeDescription
IndexEntity

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the index.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the index.

string name = 1;

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the tableColumns.

getType()

public String getType()

Type of index, for example B-TREE.

string type = 2;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Type of index, for example B-TREE.

string type = 2;

Returns
TypeDescription
ByteString

The bytes for type.

getUnique()

public boolean getUnique()

Boolean value indicating whether the index is unique.

bool unique = 4;

Returns
TypeDescription
boolean

The unique.

hasCustomFeatures()

public boolean hasCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
TypeDescription
boolean

Whether the customFeatures field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomFeatures(Struct value)

public IndexEntity.Builder mergeCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
IndexEntity.Builder

mergeFrom(IndexEntity other)

public IndexEntity.Builder mergeFrom(IndexEntity other)
Parameter
NameDescription
otherIndexEntity
Returns
TypeDescription
IndexEntity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IndexEntity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IndexEntity.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public IndexEntity.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
IndexEntity.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IndexEntity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IndexEntity.Builder
Overrides

setCustomFeatures(Struct value)

public IndexEntity.Builder setCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
IndexEntity.Builder

setCustomFeatures(Struct.Builder builderForValue)

public IndexEntity.Builder setCustomFeatures(Struct.Builder builderForValue)

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
IndexEntity.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public IndexEntity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IndexEntity.Builder
Overrides

setName(String value)

public IndexEntity.Builder setName(String value)

The name of the index.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
IndexEntity.Builder

This builder for chaining.

setNameBytes(ByteString value)

public IndexEntity.Builder setNameBytes(ByteString value)

The name of the index.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The tableColumns to set.

Returns
TypeDescription
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
NameDescription
valueString

The type to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The unique to set.

Returns
TypeDescription
IndexEntity.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final IndexEntity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IndexEntity.Builder
Overrides