Class IndexEntity.Builder

  • All Implemented Interfaces:
    IndexEntityOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    IndexEntity

    public static final class IndexEntity.Builder
    extends com.google.protobuf.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<IndexEntity.Builder>
      • clear

        public IndexEntity.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<IndexEntity.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<IndexEntity.Builder>
      • getDefaultInstanceForType

        public IndexEntity getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public IndexEntity build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public IndexEntity buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public IndexEntity.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<IndexEntity.Builder>
      • setField

        public IndexEntity.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<IndexEntity.Builder>
      • clearField

        public IndexEntity.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<IndexEntity.Builder>
      • clearOneof

        public IndexEntity.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<IndexEntity.Builder>
      • setRepeatedField

        public IndexEntity.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IndexEntity.Builder>
      • addRepeatedField

        public IndexEntity.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IndexEntity.Builder>
      • mergeFrom

        public IndexEntity.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IndexEntity.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<IndexEntity.Builder>
      • mergeFrom

        public IndexEntity.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IndexEntity.Builder>
        Throws:
        IOException
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the index.
         
        string name = 1;
        Specified by:
        getNameBytes in interface IndexEntityOrBuilder
        Returns:
        The bytes for name.
      • setName

        public IndexEntity.Builder setName​(String value)
         The name of the index.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public IndexEntity.Builder clearName()
         The name of the index.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public IndexEntity.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the index.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         Type of index, for example B-TREE.
         
        string type = 2;
        Specified by:
        getTypeBytes in interface IndexEntityOrBuilder
        Returns:
        The bytes for type.
      • setType

        public IndexEntity.Builder setType​(String value)
         Type of index, for example B-TREE.
         
        string type = 2;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public IndexEntity.Builder clearType()
         Type of index, for example B-TREE.
         
        string type = 2;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public IndexEntity.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         Type of index, for example B-TREE.
         
        string type = 2;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • getTableColumnsList

        public com.google.protobuf.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;
        Specified by:
        getTableColumnsList in interface IndexEntityOrBuilder
        Returns:
        A list containing the tableColumns.
      • 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;
        Specified by:
        getTableColumnsCount in interface IndexEntityOrBuilder
        Returns:
        The count of tableColumns.
      • getTableColumns

        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;
        Specified by:
        getTableColumns in interface IndexEntityOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The tableColumns at the given index.
      • getTableColumnsBytes

        public com.google.protobuf.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;
        Specified by:
        getTableColumnsBytes in interface IndexEntityOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the tableColumns at the given index.
      • setTableColumns

        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:
        index - The index to set the value at.
        value - The tableColumns to set.
        Returns:
        This builder for chaining.
      • addTableColumns

        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;
        Parameters:
        value - The tableColumns to add.
        Returns:
        This builder for chaining.
      • addAllTableColumns

        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;
        Parameters:
        values - The tableColumns to add.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • addTableColumnsBytes

        public IndexEntity.Builder addTableColumnsBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes of the tableColumns to add.
        Returns:
        This builder for chaining.
      • getUnique

        public boolean getUnique()
         Boolean value indicating whether the index is unique.
         
        bool unique = 4;
        Specified by:
        getUnique in interface IndexEntityOrBuilder
        Returns:
        The unique.
      • setUnique

        public IndexEntity.Builder setUnique​(boolean value)
         Boolean value indicating whether the index is unique.
         
        bool unique = 4;
        Parameters:
        value - The unique to set.
        Returns:
        This builder for chaining.
      • clearUnique

        public IndexEntity.Builder clearUnique()
         Boolean value indicating whether the index is unique.
         
        bool unique = 4;
        Returns:
        This builder for chaining.
      • hasCustomFeatures

        public boolean hasCustomFeatures()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 5;
        Specified by:
        hasCustomFeatures in interface IndexEntityOrBuilder
        Returns:
        Whether the customFeatures field is set.
      • getCustomFeatures

        public com.google.protobuf.Struct getCustomFeatures()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 5;
        Specified by:
        getCustomFeatures in interface IndexEntityOrBuilder
        Returns:
        The customFeatures.
      • setCustomFeatures

        public IndexEntity.Builder setCustomFeatures​(com.google.protobuf.Struct value)
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 5;
      • setCustomFeatures

        public IndexEntity.Builder setCustomFeatures​(com.google.protobuf.Struct.Builder builderForValue)
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 5;
      • mergeCustomFeatures

        public IndexEntity.Builder mergeCustomFeatures​(com.google.protobuf.Struct value)
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 5;
      • clearCustomFeatures

        public IndexEntity.Builder clearCustomFeatures()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 5;
      • getCustomFeaturesBuilder

        public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 5;
      • getCustomFeaturesOrBuilder

        public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 5;
        Specified by:
        getCustomFeaturesOrBuilder in interface IndexEntityOrBuilder
      • setUnknownFields

        public final IndexEntity.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IndexEntity.Builder>
      • mergeUnknownFields

        public final IndexEntity.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IndexEntity.Builder>