Package com.google.datastore.v1
Class PartitionId.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
com.google.datastore.v1.PartitionId.Builder
- All Implemented Interfaces:
PartitionIdOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PartitionId
public static final class PartitionId.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
implements PartitionIdOrBuilder
A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `""`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state.Protobuf type
google.datastore.v1.PartitionId
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
If not empty, the ID of the database to which the entities belong.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) If not empty, the ID of the namespace to which the entities belong.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The ID of the project to which the entities belong.clone()
If not empty, the ID of the database to which the entities belong.com.google.protobuf.ByteString
If not empty, the ID of the database to which the entities belong.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
If not empty, the ID of the namespace to which the entities belong.com.google.protobuf.ByteString
If not empty, the ID of the namespace to which the entities belong.The ID of the project to which the entities belong.com.google.protobuf.ByteString
The ID of the project to which the entities belong.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(PartitionId other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final PartitionId.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setDatabaseId
(String value) If not empty, the ID of the database to which the entities belong.setDatabaseIdBytes
(com.google.protobuf.ByteString value) If not empty, the ID of the database to which the entities belong.setNamespaceId
(String value) If not empty, the ID of the namespace to which the entities belong.setNamespaceIdBytes
(com.google.protobuf.ByteString value) If not empty, the ID of the namespace to which the entities belong.setProjectId
(String value) The ID of the project to which the entities belong.setProjectIdBytes
(com.google.protobuf.ByteString value) The ID of the project to which the entities belong.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final PartitionId.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
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<PartitionId.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<PartitionId.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<PartitionId.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<PartitionId.Builder>
-
setField
public PartitionId.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<PartitionId.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
setRepeatedField
public PartitionId.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<PartitionId.Builder>
-
addRepeatedField
public PartitionId.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<PartitionId.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PartitionId.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
mergeFrom
public PartitionId.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<PartitionId.Builder>
- Throws:
IOException
-
getProjectId
The ID of the project to which the entities belong.
string project_id = 2;
- Specified by:
getProjectId
in interfacePartitionIdOrBuilder
- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()The ID of the project to which the entities belong.
string project_id = 2;
- Specified by:
getProjectIdBytes
in interfacePartitionIdOrBuilder
- Returns:
- The bytes for projectId.
-
setProjectId
The ID of the project to which the entities belong.
string project_id = 2;
- Parameters:
value
- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
The ID of the project to which the entities belong.
string project_id = 2;
- Returns:
- This builder for chaining.
-
setProjectIdBytes
The ID of the project to which the entities belong.
string project_id = 2;
- Parameters:
value
- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getDatabaseId
If not empty, the ID of the database to which the entities belong.
string database_id = 3;
- Specified by:
getDatabaseId
in interfacePartitionIdOrBuilder
- Returns:
- The databaseId.
-
getDatabaseIdBytes
public com.google.protobuf.ByteString getDatabaseIdBytes()If not empty, the ID of the database to which the entities belong.
string database_id = 3;
- Specified by:
getDatabaseIdBytes
in interfacePartitionIdOrBuilder
- Returns:
- The bytes for databaseId.
-
setDatabaseId
If not empty, the ID of the database to which the entities belong.
string database_id = 3;
- Parameters:
value
- The databaseId to set.- Returns:
- This builder for chaining.
-
clearDatabaseId
If not empty, the ID of the database to which the entities belong.
string database_id = 3;
- Returns:
- This builder for chaining.
-
setDatabaseIdBytes
If not empty, the ID of the database to which the entities belong.
string database_id = 3;
- Parameters:
value
- The bytes for databaseId to set.- Returns:
- This builder for chaining.
-
getNamespaceId
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;
- Specified by:
getNamespaceId
in interfacePartitionIdOrBuilder
- Returns:
- The namespaceId.
-
getNamespaceIdBytes
public com.google.protobuf.ByteString getNamespaceIdBytes()If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;
- Specified by:
getNamespaceIdBytes
in interfacePartitionIdOrBuilder
- Returns:
- The bytes for namespaceId.
-
setNamespaceId
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;
- Parameters:
value
- The namespaceId to set.- Returns:
- This builder for chaining.
-
clearNamespaceId
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;
- Returns:
- This builder for chaining.
-
setNamespaceIdBytes
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;
- Parameters:
value
- The bytes for namespaceId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final PartitionId.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
mergeUnknownFields
public final PartitionId.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-