Package com.google.datastore.v1
Class AllocateIdsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AllocateIdsRequest.Builder>
com.google.datastore.v1.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 Summary
Modifier and TypeMethodDescriptionaddAllKeys
(Iterable<? extends Key> values) Required.Required.addKeys
(int index, Key.Builder builderForValue) Required.Required.addKeys
(Key.Builder builderForValue) Required.Required.addKeysBuilder
(int index) Required.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The ID of the database against which to make the request.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Required.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Required.clone()
The ID of the database against which to make the request.com.google.protobuf.ByteString
The ID of the database against which to make the request.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getKeys
(int index) Required.getKeysBuilder
(int index) Required.Required.int
Required.Required.getKeysOrBuilder
(int index) Required.List<? extends KeyOrBuilder>
Required.Required.com.google.protobuf.ByteString
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(AllocateIdsRequest other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeKeys
(int index) Required.setDatabaseId
(String value) The ID of the database against which to make the request.setDatabaseIdBytes
(com.google.protobuf.ByteString value) The ID of the database against which to make the request.Required.setKeys
(int index, Key.Builder builderForValue) Required.setProjectId
(String value) Required.setProjectIdBytes
(com.google.protobuf.ByteString value) Required.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateIdsRequest.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateIdsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateIdsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateIdsRequest.Builder>
-
setField
public AllocateIdsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateIdsRequest.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateIdsRequest.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateIdsRequest.Builder>
-
addRepeatedField
public AllocateIdsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateIdsRequest.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocateIdsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocateIdsRequest.Builder>
- Throws:
IOException
-
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 interfaceAllocateIdsRequestOrBuilder
- 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 interfaceAllocateIdsRequestOrBuilder
- Returns:
- The bytes for projectId.
-
setProjectId
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
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
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
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 interfaceAllocateIdsRequestOrBuilder
- 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 interfaceAllocateIdsRequestOrBuilder
- Returns:
- The bytes for databaseId.
-
setDatabaseId
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
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
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
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 interfaceAllocateIdsRequestOrBuilder
-
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 interfaceAllocateIdsRequestOrBuilder
-
getKeys
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 interfaceAllocateIdsRequestOrBuilder
-
setKeys
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
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
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
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
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
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
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
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
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
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
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 interfaceAllocateIdsRequestOrBuilder
-
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 interfaceAllocateIdsRequestOrBuilder
-
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
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
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateIdsRequest.Builder>
-
mergeUnknownFields
public final AllocateIdsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateIdsRequest.Builder>
-