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 |
clearDatabaseId()
If not empty, the ID of the database to which the entities
belong.
|
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() |
String |
getDatabaseId()
If not empty, the ID of the database to which the entities
belong.
|
com.google.protobuf.ByteString |
getDatabaseIdBytes()
If not empty, the ID of the database to which the entities
belong.
|
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 |
setDatabaseId(String value)
If not empty, the ID of the database to which the entities
belong.
|
PartitionId.Builder |
setDatabaseIdBytes(com.google.protobuf.ByteString value)
If not empty, the ID of the database to which the entities
belong.
|
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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
public PartitionId getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public PartitionId build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public PartitionId buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public PartitionId.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<PartitionId.Builder>
IOException
public String getProjectId()
The ID of the project to which the entities belong.
string project_id = 2;
getProjectId
in interface PartitionIdOrBuilder
public com.google.protobuf.ByteString getProjectIdBytes()
The ID of the project to which the entities belong.
string project_id = 2;
getProjectIdBytes
in interface PartitionIdOrBuilder
public 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 getDatabaseId()
If not empty, the ID of the database to which the entities belong.
string database_id = 3;
getDatabaseId
in interface PartitionIdOrBuilder
public com.google.protobuf.ByteString getDatabaseIdBytes()
If not empty, the ID of the database to which the entities belong.
string database_id = 3;
getDatabaseIdBytes
in interface PartitionIdOrBuilder
public PartitionId.Builder setDatabaseId(String value)
If not empty, the ID of the database to which the entities belong.
string database_id = 3;
value
- The databaseId to set.public PartitionId.Builder clearDatabaseId()
If not empty, the ID of the database to which the entities belong.
string database_id = 3;
public PartitionId.Builder setDatabaseIdBytes(com.google.protobuf.ByteString value)
If not empty, the ID of the database to which the entities belong.
string database_id = 3;
value
- The bytes for databaseId 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 PartitionIdOrBuilder
public 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 PartitionIdOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionId.Builder>
Copyright © 2023 Google LLC. All rights reserved.