public static final class DatastoreV1.PartitionId.Builder extends com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.PartitionId.Builder> implements DatastoreV1.PartitionIdOrBuilder
api.services.datastore.PartitionId
An identifier for a particular subset of entities. Entities are partitioned into various subsets, each used by different datasets and different namespaces within a dataset and so forth. All input partition IDs are normalized before use. A partition ID is normalized as follows: If the partition ID is unset or is set to an empty partition ID, replace it with the context partition ID. Otherwise, if the partition ID has no dataset ID, assign it the context partition ID's dataset ID. Unless otherwise documented, the context partition ID has the dataset ID set to the context dataset ID and no other partition dimension set. A partition ID is empty if all of its fields are unset. Partition dimension: A dimension may be unset. A dimension's value must never be "". A dimension's value must match [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. Dataset ID: A dataset id's value must never be "". A dataset id's value must match ([a-z\d\-]{1,100}~)?([a-z\d][a-z\d\-\.]{0,99}:)?([a-z\d][a-z\d\-]{0,99}
Modifier and Type | Method and Description |
---|---|
DatastoreV1.PartitionId |
build() |
DatastoreV1.PartitionId |
buildPartial() |
DatastoreV1.PartitionId.Builder |
clear() |
DatastoreV1.PartitionId.Builder |
clearDatasetId()
optional string dataset_id = 3; |
DatastoreV1.PartitionId.Builder |
clearNamespace()
optional string namespace = 4; |
DatastoreV1.PartitionId.Builder |
clone() |
String |
getDatasetId()
optional string dataset_id = 3; |
com.google.protobuf.ByteString |
getDatasetIdBytes()
optional string dataset_id = 3; |
DatastoreV1.PartitionId |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getNamespace()
optional string namespace = 4; |
com.google.protobuf.ByteString |
getNamespaceBytes()
optional string namespace = 4; |
boolean |
hasDatasetId()
optional string dataset_id = 3; |
boolean |
hasNamespace()
optional string namespace = 4; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DatastoreV1.PartitionId.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DatastoreV1.PartitionId.Builder |
mergeFrom(DatastoreV1.PartitionId other) |
DatastoreV1.PartitionId.Builder |
mergeFrom(com.google.protobuf.Message other) |
DatastoreV1.PartitionId.Builder |
setDatasetId(String value)
optional string dataset_id = 3; |
DatastoreV1.PartitionId.Builder |
setDatasetIdBytes(com.google.protobuf.ByteString value)
optional string dataset_id = 3; |
DatastoreV1.PartitionId.Builder |
setNamespace(String value)
optional string namespace = 4; |
DatastoreV1.PartitionId.Builder |
setNamespaceBytes(com.google.protobuf.ByteString value)
optional string namespace = 4; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.PartitionId.Builder>
public DatastoreV1.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.GeneratedMessage.Builder<DatastoreV1.PartitionId.Builder>
public DatastoreV1.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.GeneratedMessage.Builder<DatastoreV1.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.GeneratedMessage.Builder<DatastoreV1.PartitionId.Builder>
public DatastoreV1.PartitionId getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public DatastoreV1.PartitionId build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public DatastoreV1.PartitionId buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public DatastoreV1.PartitionId.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<DatastoreV1.PartitionId.Builder>
public DatastoreV1.PartitionId.Builder mergeFrom(DatastoreV1.PartitionId other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.PartitionId.Builder>
public DatastoreV1.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<DatastoreV1.PartitionId.Builder>
IOException
public boolean hasDatasetId()
optional string dataset_id = 3;
The dataset ID.
hasDatasetId
in interface DatastoreV1.PartitionIdOrBuilder
public String getDatasetId()
optional string dataset_id = 3;
The dataset ID.
getDatasetId
in interface DatastoreV1.PartitionIdOrBuilder
public com.google.protobuf.ByteString getDatasetIdBytes()
optional string dataset_id = 3;
The dataset ID.
getDatasetIdBytes
in interface DatastoreV1.PartitionIdOrBuilder
public DatastoreV1.PartitionId.Builder setDatasetId(String value)
optional string dataset_id = 3;
The dataset ID.
public DatastoreV1.PartitionId.Builder clearDatasetId()
optional string dataset_id = 3;
The dataset ID.
public DatastoreV1.PartitionId.Builder setDatasetIdBytes(com.google.protobuf.ByteString value)
optional string dataset_id = 3;
The dataset ID.
public boolean hasNamespace()
optional string namespace = 4;
The namespace.
hasNamespace
in interface DatastoreV1.PartitionIdOrBuilder
public String getNamespace()
optional string namespace = 4;
The namespace.
getNamespace
in interface DatastoreV1.PartitionIdOrBuilder
public com.google.protobuf.ByteString getNamespaceBytes()
optional string namespace = 4;
The namespace.
getNamespaceBytes
in interface DatastoreV1.PartitionIdOrBuilder
public DatastoreV1.PartitionId.Builder setNamespace(String value)
optional string namespace = 4;
The namespace.
public DatastoreV1.PartitionId.Builder clearNamespace()
optional string namespace = 4;
The namespace.
public DatastoreV1.PartitionId.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
optional string namespace = 4;
The namespace.
Copyright © 2013. All Rights Reserved.