Class AllocateIdsRequest.Builder

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

    public static final class AllocateIdsRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AllocateIdsRequest.Builder>
    implements AllocateIdsRequestOrBuilder
     The request for
     [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
     
    Protobuf type google.datastore.v1.AllocateIdsRequest
    • 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<AllocateIdsRequest.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public AllocateIdsRequest.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<AllocateIdsRequest.Builder>
      • isInitialized

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

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

        public String getProjectId()
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProjectId in interface AllocateIdsRequestOrBuilder
        Returns:
        The projectId.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProjectIdBytes in interface AllocateIdsRequestOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        public AllocateIdsRequest.Builder setProjectId​(String value)
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

        public AllocateIdsRequest.Builder clearProjectId()
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        public AllocateIdsRequest.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for projectId to set.
        Returns:
        This builder for chaining.
      • getDatabaseId

        public String getDatabaseId()
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Specified by:
        getDatabaseId in interface AllocateIdsRequestOrBuilder
        Returns:
        The databaseId.
      • getDatabaseIdBytes

        public com.google.protobuf.ByteString getDatabaseIdBytes()
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Specified by:
        getDatabaseIdBytes in interface AllocateIdsRequestOrBuilder
        Returns:
        The bytes for databaseId.
      • setDatabaseId

        public AllocateIdsRequest.Builder setDatabaseId​(String value)
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Parameters:
        value - The databaseId to set.
        Returns:
        This builder for chaining.
      • clearDatabaseId

        public AllocateIdsRequest.Builder clearDatabaseId()
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Returns:
        This builder for chaining.
      • setDatabaseIdBytes

        public AllocateIdsRequest.Builder setDatabaseIdBytes​(com.google.protobuf.ByteString value)
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Parameters:
        value - The bytes for databaseId to set.
        Returns:
        This builder for chaining.
      • getKeysList

        public List<Key> getKeysList()
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getKeysList in interface AllocateIdsRequestOrBuilder
      • getKeysCount

        public int getKeysCount()
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getKeysCount in interface AllocateIdsRequestOrBuilder
      • getKeys

        public Key getKeys​(int index)
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getKeys in interface AllocateIdsRequestOrBuilder
      • setKeys

        public AllocateIdsRequest.Builder setKeys​(int index,
                                                  Key value)
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
      • setKeys

        public AllocateIdsRequest.Builder setKeys​(int index,
                                                  Key.Builder builderForValue)
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
      • addKeys

        public AllocateIdsRequest.Builder addKeys​(Key value)
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
      • addKeys

        public AllocateIdsRequest.Builder addKeys​(int index,
                                                  Key value)
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
      • addKeys

        public AllocateIdsRequest.Builder addKeys​(Key.Builder builderForValue)
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
      • addKeys

        public AllocateIdsRequest.Builder addKeys​(int index,
                                                  Key.Builder builderForValue)
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
      • addAllKeys

        public AllocateIdsRequest.Builder addAllKeys​(Iterable<? extends Key> values)
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
      • clearKeys

        public AllocateIdsRequest.Builder clearKeys()
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
      • removeKeys

        public AllocateIdsRequest.Builder removeKeys​(int index)
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
      • getKeysBuilder

        public Key.Builder getKeysBuilder​(int index)
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
      • getKeysOrBuilder

        public KeyOrBuilder getKeysOrBuilder​(int index)
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getKeysOrBuilder in interface AllocateIdsRequestOrBuilder
      • getKeysOrBuilderList

        public List<? extends KeyOrBuilder> getKeysOrBuilderList()
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getKeysOrBuilderList in interface AllocateIdsRequestOrBuilder
      • addKeysBuilder

        public Key.Builder addKeysBuilder()
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
      • addKeysBuilder

        public Key.Builder addKeysBuilder​(int index)
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
      • getKeysBuilderList

        public List<Key.Builder> getKeysBuilderList()
         Required. A list of keys with incomplete key paths for which to allocate
         IDs. No key may be reserved/read-only.
         
        repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED];
      • setUnknownFields

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

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