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.ByteStringIf not empty, the ID of the database to which the entities belong.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf not empty, the ID of the namespace to which the entities belong.com.google.protobuf.ByteStringIf 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.ByteStringThe ID of the project to which the entities belong.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(PartitionId other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final PartitionId.BuildermergeUnknownFields(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.BuildersetUnknownFields(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
setField
public PartitionId.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
setRepeatedField
public PartitionId.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
addRepeatedField
public PartitionId.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PartitionId.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getProjectIdin 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:
getProjectIdBytesin 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:
getDatabaseIdin 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:
getDatabaseIdBytesin 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:
getNamespaceIdin 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:
getNamespaceIdBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-
mergeUnknownFields
public final PartitionId.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
-