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| Modifier and Type | Method and Description |
|---|---|
PartitionId.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PartitionId |
build() |
PartitionId |
buildPartial() |
PartitionId.Builder |
clear() |
PartitionId.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PartitionId.Builder |
clearNamespaceId()
If not empty, the ID of the namespace to which the entities belong.
|
PartitionId.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PartitionId.Builder |
clearProjectId()
The ID of the project to which the entities belong.
|
PartitionId.Builder |
clone() |
PartitionId |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getNamespaceId()
If not empty, the ID of the namespace to which the entities belong.
|
com.google.protobuf.ByteString |
getNamespaceIdBytes()
If not empty, the ID of the namespace to which the entities belong.
|
String |
getProjectId()
The ID of the project to which the entities belong.
|
com.google.protobuf.ByteString |
getProjectIdBytes()
The ID of the project to which the entities belong.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PartitionId.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PartitionId.Builder |
mergeFrom(com.google.protobuf.Message other) |
PartitionId.Builder |
mergeFrom(PartitionId other) |
PartitionId.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PartitionId.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PartitionId.Builder |
setNamespaceId(String value)
If not empty, the ID of the namespace to which the entities belong.
|
PartitionId.Builder |
setNamespaceIdBytes(com.google.protobuf.ByteString value)
If not empty, the ID of the namespace to which the entities belong.
|
PartitionId.Builder |
setProjectId(String value)
The ID of the project to which the entities belong.
|
PartitionId.Builder |
setProjectIdBytes(com.google.protobuf.ByteString value)
The ID of the project to which the entities belong.
|
PartitionId.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PartitionId.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>public PartitionId.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>public PartitionId getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PartitionId build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PartitionId buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PartitionId.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>public PartitionId.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>public PartitionId.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>public PartitionId.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>public PartitionId.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>public PartitionId.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>public PartitionId.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PartitionId.Builder>public PartitionId.Builder mergeFrom(PartitionId other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>public PartitionId.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PartitionId.Builder>IOExceptionpublic String getProjectId()
The ID of the project to which the entities belong.
string project_id = 2;getProjectId in interface PartitionIdOrBuilderpublic com.google.protobuf.ByteString getProjectIdBytes()
The ID of the project to which the entities belong.
string project_id = 2;getProjectIdBytes in interface PartitionIdOrBuilderpublic PartitionId.Builder setProjectId(String value)
The ID of the project to which the entities belong.
string project_id = 2;value - The projectId to set.public PartitionId.Builder clearProjectId()
The ID of the project to which the entities belong.
string project_id = 2;public PartitionId.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
The ID of the project to which the entities belong.
string project_id = 2;value - The bytes for projectId to set.public String getNamespaceId()
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;getNamespaceId in interface PartitionIdOrBuilderpublic com.google.protobuf.ByteString getNamespaceIdBytes()
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;getNamespaceIdBytes in interface PartitionIdOrBuilderpublic PartitionId.Builder setNamespaceId(String value)
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;value - The namespaceId to set.public PartitionId.Builder clearNamespaceId()
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;public PartitionId.Builder setNamespaceIdBytes(com.google.protobuf.ByteString value)
If not empty, the ID of the namespace to which the entities belong.
string namespace_id = 4;value - The bytes for namespaceId to set.public final PartitionId.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>public final PartitionId.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>Copyright © 2022 Google LLC. All rights reserved.