Class AllocateIdsRequest.Builder (2.30.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass AllocateIdsRequest.BuilderextendsGeneratedMessageV3.Builder<AllocateIdsRequest.Builder>implementsAllocateIdsRequestOrBuilderThe request for Datastore.AllocateIds.
Protobuf type google.datastore.v1.AllocateIdsRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AllocateIdsRequest.BuilderImplements
AllocateIdsRequestOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllKeys(Iterable<? extends Key> values)
publicAllocateIdsRequest.BuilderaddAllKeys(Iterable<?extendsKey>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];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.datastore.v1.Key> |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
addKeys(Key value)
publicAllocateIdsRequest.BuilderaddKeys(Keyvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Key |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
addKeys(Key.Builder builderForValue)
publicAllocateIdsRequest.BuilderaddKeys(Key.BuilderbuilderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Key.Builder |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
addKeys(int index, Key value)
publicAllocateIdsRequest.BuilderaddKeys(intindex,Keyvalue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Key |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
addKeys(int index, Key.Builder builderForValue)
publicAllocateIdsRequest.BuilderaddKeys(intindex,Key.BuilderbuilderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Key.Builder |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
addKeysBuilder()
publicKey.BuilderaddKeysBuilder()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];
| Returns | |
|---|---|
| Type | Description |
Key.Builder |
|
addKeysBuilder(int index)
publicKey.BuilderaddKeysBuilder(intindex)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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Key.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicAllocateIdsRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
build()
publicAllocateIdsRequestbuild()| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest |
|
buildPartial()
publicAllocateIdsRequestbuildPartial()| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest |
|
clear()
publicAllocateIdsRequest.Builderclear()| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
clearDatabaseId()
publicAllocateIdsRequest.BuilderclearDatabaseId()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 | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
publicAllocateIdsRequest.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
clearKeys()
publicAllocateIdsRequest.BuilderclearKeys()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];
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
publicAllocateIdsRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
clearProjectId()
publicAllocateIdsRequest.BuilderclearProjectId()Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
This builder for chaining. |
clone()
publicAllocateIdsRequest.Builderclone()| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
getDatabaseId()
publicStringgetDatabaseId()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 | |
|---|---|
| Type | Description |
String |
The databaseId. |
getDatabaseIdBytes()
publicByteStringgetDatabaseIdBytes()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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for databaseId. |
getDefaultInstanceForType()
publicAllocateIdsRequestgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getKeys(int index)
publicKeygetKeys(intindex)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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Key |
|
getKeysBuilder(int index)
publicKey.BuildergetKeysBuilder(intindex)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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Key.Builder |
|
getKeysBuilderList()
publicList<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];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getKeysCount()
publicintgetKeysCount()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];
| Returns | |
|---|---|
| Type | Description |
int |
|
getKeysList()
publicList<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];
| Returns | |
|---|---|
| Type | Description |
List<Key> |
|
getKeysOrBuilder(int index)
publicKeyOrBuildergetKeysOrBuilder(intindex)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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
KeyOrBuilder |
|
getKeysOrBuilderList()
publicList<?extendsKeyOrBuilder>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];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.datastore.v1.KeyOrBuilder> |
|
getProjectId()
publicStringgetProjectId()Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The projectId. |
getProjectIdBytes()
publicByteStringgetProjectIdBytes()Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for projectId. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AllocateIdsRequest other)
publicAllocateIdsRequest.BuildermergeFrom(AllocateIdsRequestother)| Parameter | |
|---|---|
| Name | Description |
other |
AllocateIdsRequest |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicAllocateIdsRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicAllocateIdsRequest.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalAllocateIdsRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
removeKeys(int index)
publicAllocateIdsRequest.BuilderremoveKeys(intindex)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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
setDatabaseId(String value)
publicAllocateIdsRequest.BuildersetDatabaseId(Stringvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
String The databaseId to set. |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
This builder for chaining. |
setDatabaseIdBytes(ByteString value)
publicAllocateIdsRequest.BuildersetDatabaseIdBytes(ByteStringvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for databaseId to set. |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
publicAllocateIdsRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
setKeys(int index, Key value)
publicAllocateIdsRequest.BuildersetKeys(intindex,Keyvalue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Key |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
setKeys(int index, Key.Builder builderForValue)
publicAllocateIdsRequest.BuildersetKeys(intindex,Key.BuilderbuilderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Key.Builder |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
setProjectId(String value)
publicAllocateIdsRequest.BuildersetProjectId(Stringvalue)Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
String The projectId to set. |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
This builder for chaining. |
setProjectIdBytes(ByteString value)
publicAllocateIdsRequest.BuildersetProjectIdBytes(ByteStringvalue)Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for projectId to set. |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicAllocateIdsRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalAllocateIdsRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AllocateIdsRequest.Builder |
|