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 typegoogle.datastore.v1.AllocateIdsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocateIdsRequest.Builder
addAllKeys(Iterable<? extends Key> values)
Required.AllocateIdsRequest.Builder
addKeys(int index, Key value)
Required.AllocateIdsRequest.Builder
addKeys(int index, Key.Builder builderForValue)
Required.AllocateIdsRequest.Builder
addKeys(Key value)
Required.AllocateIdsRequest.Builder
addKeys(Key.Builder builderForValue)
Required.Key.Builder
addKeysBuilder()
Required.Key.Builder
addKeysBuilder(int index)
Required.AllocateIdsRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocateIdsRequest
build()
AllocateIdsRequest
buildPartial()
AllocateIdsRequest.Builder
clear()
AllocateIdsRequest.Builder
clearDatabaseId()
The ID of the database against which to make the request.AllocateIdsRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AllocateIdsRequest.Builder
clearKeys()
Required.AllocateIdsRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AllocateIdsRequest.Builder
clearProjectId()
Required.AllocateIdsRequest.Builder
clone()
String
getDatabaseId()
The ID of the database against which to make the request.com.google.protobuf.ByteString
getDatabaseIdBytes()
The ID of the database against which to make the request.AllocateIdsRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Key
getKeys(int index)
Required.Key.Builder
getKeysBuilder(int index)
Required.List<Key.Builder>
getKeysBuilderList()
Required.int
getKeysCount()
Required.List<Key>
getKeysList()
Required.KeyOrBuilder
getKeysOrBuilder(int index)
Required.List<? extends KeyOrBuilder>
getKeysOrBuilderList()
Required.String
getProjectId()
Required.com.google.protobuf.ByteString
getProjectIdBytes()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AllocateIdsRequest.Builder
mergeFrom(AllocateIdsRequest other)
AllocateIdsRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AllocateIdsRequest.Builder
mergeFrom(com.google.protobuf.Message other)
AllocateIdsRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AllocateIdsRequest.Builder
removeKeys(int index)
Required.AllocateIdsRequest.Builder
setDatabaseId(String value)
The ID of the database against which to make the request.AllocateIdsRequest.Builder
setDatabaseIdBytes(com.google.protobuf.ByteString value)
The ID of the database against which to make the request.AllocateIdsRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocateIdsRequest.Builder
setKeys(int index, Key value)
Required.AllocateIdsRequest.Builder
setKeys(int index, Key.Builder builderForValue)
Required.AllocateIdsRequest.Builder
setProjectId(String value)
Required.AllocateIdsRequest.Builder
setProjectIdBytes(com.google.protobuf.ByteString value)
Required.AllocateIdsRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AllocateIdsRequest.Builder
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
-
-
-
-
Method Detail
-
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
public 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
public AllocateIdsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocateIdsRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocateIdsRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocateIdsRequest.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
public AllocateIdsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocateIdsRequest.Builder>
-
clearOneof
public AllocateIdsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public AllocateIdsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocateIdsRequest.Builder>
-
mergeFrom
public AllocateIdsRequest.Builder mergeFrom(AllocateIdsRequest other)
-
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
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 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
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 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
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 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
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 interfaceAllocateIdsRequestOrBuilder
-
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 interfaceAllocateIdsRequestOrBuilder
-
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 interfaceAllocateIdsRequestOrBuilder
-
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 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>
-
-