Class Index.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder>
com.google.datastore.admin.v1.Index.Builder
All Implemented Interfaces:
IndexOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Index

public static final class Index.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder> implements IndexOrBuilder
 Datastore composite index definition.
 
Protobuf type google.datastore.admin.v1.Index
  • Method Details

    • 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<Index.Builder>
    • clear

      public Index.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<Index.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<Index.Builder>
    • getDefaultInstanceForType

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

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

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

      public Index.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<Index.Builder>
    • setField

      public Index.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<Index.Builder>
    • clearField

      public Index.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<Index.Builder>
    • clearOneof

      public Index.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<Index.Builder>
    • setRepeatedField

      public Index.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<Index.Builder>
    • addRepeatedField

      public Index.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<Index.Builder>
    • mergeFrom

      public Index.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<Index.Builder>
    • mergeFrom

      public Index.Builder mergeFrom(Index other)
    • isInitialized

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

      public Index.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<Index.Builder>
      Throws:
      IOException
    • getProjectId

      public String getProjectId()
       Output only. Project ID.
       
      string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProjectId in interface IndexOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Output only. Project ID.
       
      string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProjectIdBytes in interface IndexOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public Index.Builder setProjectId(String value)
       Output only. Project ID.
       
      string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public Index.Builder clearProjectId()
       Output only. Project ID.
       
      string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public Index.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       Output only. Project ID.
       
      string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getIndexId

      public String getIndexId()
       Output only. The resource ID of the index.
       
      string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIndexId in interface IndexOrBuilder
      Returns:
      The indexId.
    • getIndexIdBytes

      public com.google.protobuf.ByteString getIndexIdBytes()
       Output only. The resource ID of the index.
       
      string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIndexIdBytes in interface IndexOrBuilder
      Returns:
      The bytes for indexId.
    • setIndexId

      public Index.Builder setIndexId(String value)
       Output only. The resource ID of the index.
       
      string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The indexId to set.
      Returns:
      This builder for chaining.
    • clearIndexId

      public Index.Builder clearIndexId()
       Output only. The resource ID of the index.
       
      string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setIndexIdBytes

      public Index.Builder setIndexIdBytes(com.google.protobuf.ByteString value)
       Output only. The resource ID of the index.
       
      string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for indexId to set.
      Returns:
      This builder for chaining.
    • getKind

      public String getKind()
       Required. The entity kind to which this index applies.
       
      string kind = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKind in interface IndexOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Required. The entity kind to which this index applies.
       
      string kind = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKindBytes in interface IndexOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public Index.Builder setKind(String value)
       Required. The entity kind to which this index applies.
       
      string kind = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public Index.Builder clearKind()
       Required. The entity kind to which this index applies.
       
      string kind = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setKindBytes

      public Index.Builder setKindBytes(com.google.protobuf.ByteString value)
       Required. The entity kind to which this index applies.
       
      string kind = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for kind to set.
      Returns:
      This builder for chaining.
    • getAncestorValue

      public int getAncestorValue()
       Required. The index's ancestor mode.  Must not be
       ANCESTOR_MODE_UNSPECIFIED.
       
      .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAncestorValue in interface IndexOrBuilder
      Returns:
      The enum numeric value on the wire for ancestor.
    • setAncestorValue

      public Index.Builder setAncestorValue(int value)
       Required. The index's ancestor mode.  Must not be
       ANCESTOR_MODE_UNSPECIFIED.
       
      .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for ancestor to set.
      Returns:
      This builder for chaining.
    • getAncestor

      public Index.AncestorMode getAncestor()
       Required. The index's ancestor mode.  Must not be
       ANCESTOR_MODE_UNSPECIFIED.
       
      .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAncestor in interface IndexOrBuilder
      Returns:
      The ancestor.
    • setAncestor

      public Index.Builder setAncestor(Index.AncestorMode value)
       Required. The index's ancestor mode.  Must not be
       ANCESTOR_MODE_UNSPECIFIED.
       
      .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The ancestor to set.
      Returns:
      This builder for chaining.
    • clearAncestor

      public Index.Builder clearAncestor()
       Required. The index's ancestor mode.  Must not be
       ANCESTOR_MODE_UNSPECIFIED.
       
      .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getPropertiesList

      public List<Index.IndexedProperty> getPropertiesList()
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPropertiesList in interface IndexOrBuilder
    • getPropertiesCount

      public int getPropertiesCount()
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPropertiesCount in interface IndexOrBuilder
    • getProperties

      public Index.IndexedProperty getProperties(int index)
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProperties in interface IndexOrBuilder
    • setProperties

      public Index.Builder setProperties(int index, Index.IndexedProperty value)
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
    • setProperties

      public Index.Builder setProperties(int index, Index.IndexedProperty.Builder builderForValue)
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
    • addProperties

      public Index.Builder addProperties(Index.IndexedProperty value)
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
    • addProperties

      public Index.Builder addProperties(int index, Index.IndexedProperty value)
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
    • addProperties

      public Index.Builder addProperties(Index.IndexedProperty.Builder builderForValue)
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
    • addProperties

      public Index.Builder addProperties(int index, Index.IndexedProperty.Builder builderForValue)
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
    • addAllProperties

      public Index.Builder addAllProperties(Iterable<? extends Index.IndexedProperty> values)
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
    • clearProperties

      public Index.Builder clearProperties()
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
    • removeProperties

      public Index.Builder removeProperties(int index)
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
    • getPropertiesBuilder

      public Index.IndexedProperty.Builder getPropertiesBuilder(int index)
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
    • getPropertiesOrBuilder

      public Index.IndexedPropertyOrBuilder getPropertiesOrBuilder(int index)
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPropertiesOrBuilder in interface IndexOrBuilder
    • getPropertiesOrBuilderList

      public List<? extends Index.IndexedPropertyOrBuilder> getPropertiesOrBuilderList()
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPropertiesOrBuilderList in interface IndexOrBuilder
    • addPropertiesBuilder

      public Index.IndexedProperty.Builder addPropertiesBuilder()
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
    • addPropertiesBuilder

      public Index.IndexedProperty.Builder addPropertiesBuilder(int index)
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
    • getPropertiesBuilderList

      public List<Index.IndexedProperty.Builder> getPropertiesBuilderList()
       Required. An ordered sequence of property names and their index attributes.
      
       Requires:
      
       * A maximum of 100 properties.
       
      repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
    • getStateValue

      public int getStateValue()
       Output only. The state of the index.
       
      .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface IndexOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Index.Builder setStateValue(int value)
       Output only. The state of the index.
       
      .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Index.State getState()
       Output only. The state of the index.
       
      .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface IndexOrBuilder
      Returns:
      The state.
    • setState

      public Index.Builder setState(Index.State value)
       Output only. The state of the index.
       
      .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Index.Builder clearState()
       Output only. The state of the index.
       
      .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Index.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<Index.Builder>
    • mergeUnknownFields

      public final Index.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<Index.Builder>