public static final class DatastoreV1.Key.Builder extends com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.Key.Builder> implements DatastoreV1.KeyOrBuilder
api.services.datastore.Key
A unique identifier for an entity. If a key's partition id or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.
| Modifier and Type | Method and Description |
|---|---|
DatastoreV1.Key.Builder |
addAllPathElement(Iterable<? extends DatastoreV1.Key.PathElement> values)
repeated .api.services.datastore.Key.PathElement path_element = 2; |
DatastoreV1.Key.Builder |
addPathElement(DatastoreV1.Key.PathElement.Builder builderForValue)
repeated .api.services.datastore.Key.PathElement path_element = 2; |
DatastoreV1.Key.Builder |
addPathElement(DatastoreV1.Key.PathElement value)
repeated .api.services.datastore.Key.PathElement path_element = 2; |
DatastoreV1.Key.Builder |
addPathElement(int index,
DatastoreV1.Key.PathElement.Builder builderForValue)
repeated .api.services.datastore.Key.PathElement path_element = 2; |
DatastoreV1.Key.Builder |
addPathElement(int index,
DatastoreV1.Key.PathElement value)
repeated .api.services.datastore.Key.PathElement path_element = 2; |
DatastoreV1.Key.PathElement.Builder |
addPathElementBuilder()
repeated .api.services.datastore.Key.PathElement path_element = 2; |
DatastoreV1.Key.PathElement.Builder |
addPathElementBuilder(int index)
repeated .api.services.datastore.Key.PathElement path_element = 2; |
DatastoreV1.Key |
build() |
DatastoreV1.Key |
buildPartial() |
DatastoreV1.Key.Builder |
clear() |
DatastoreV1.Key.Builder |
clearPartitionId()
optional .api.services.datastore.PartitionId partition_id = 1; |
DatastoreV1.Key.Builder |
clearPathElement()
repeated .api.services.datastore.Key.PathElement path_element = 2; |
DatastoreV1.Key.Builder |
clone() |
DatastoreV1.Key |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
DatastoreV1.PartitionId |
getPartitionId()
optional .api.services.datastore.PartitionId partition_id = 1; |
DatastoreV1.PartitionId.Builder |
getPartitionIdBuilder()
optional .api.services.datastore.PartitionId partition_id = 1; |
DatastoreV1.PartitionIdOrBuilder |
getPartitionIdOrBuilder()
optional .api.services.datastore.PartitionId partition_id = 1; |
DatastoreV1.Key.PathElement |
getPathElement(int index)
repeated .api.services.datastore.Key.PathElement path_element = 2; |
DatastoreV1.Key.PathElement.Builder |
getPathElementBuilder(int index)
repeated .api.services.datastore.Key.PathElement path_element = 2; |
List<DatastoreV1.Key.PathElement.Builder> |
getPathElementBuilderList()
repeated .api.services.datastore.Key.PathElement path_element = 2; |
int |
getPathElementCount()
repeated .api.services.datastore.Key.PathElement path_element = 2; |
List<DatastoreV1.Key.PathElement> |
getPathElementList()
repeated .api.services.datastore.Key.PathElement path_element = 2; |
DatastoreV1.Key.PathElementOrBuilder |
getPathElementOrBuilder(int index)
repeated .api.services.datastore.Key.PathElement path_element = 2; |
List<? extends DatastoreV1.Key.PathElementOrBuilder> |
getPathElementOrBuilderList()
repeated .api.services.datastore.Key.PathElement path_element = 2; |
boolean |
hasPartitionId()
optional .api.services.datastore.PartitionId partition_id = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DatastoreV1.Key.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DatastoreV1.Key.Builder |
mergeFrom(DatastoreV1.Key other) |
DatastoreV1.Key.Builder |
mergeFrom(com.google.protobuf.Message other) |
DatastoreV1.Key.Builder |
mergePartitionId(DatastoreV1.PartitionId value)
optional .api.services.datastore.PartitionId partition_id = 1; |
DatastoreV1.Key.Builder |
removePathElement(int index)
repeated .api.services.datastore.Key.PathElement path_element = 2; |
DatastoreV1.Key.Builder |
setPartitionId(DatastoreV1.PartitionId.Builder builderForValue)
optional .api.services.datastore.PartitionId partition_id = 1; |
DatastoreV1.Key.Builder |
setPartitionId(DatastoreV1.PartitionId value)
optional .api.services.datastore.PartitionId partition_id = 1; |
DatastoreV1.Key.Builder |
setPathElement(int index,
DatastoreV1.Key.PathElement.Builder builderForValue)
repeated .api.services.datastore.Key.PathElement path_element = 2; |
DatastoreV1.Key.Builder |
setPathElement(int index,
DatastoreV1.Key.PathElement value)
repeated .api.services.datastore.Key.PathElement path_element = 2; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionaddAll, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.Key.Builder>public DatastoreV1.Key.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.Key.Builder>public DatastoreV1.Key.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.Key.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.GeneratedMessage.Builder<DatastoreV1.Key.Builder>public DatastoreV1.Key getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DatastoreV1.Key build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DatastoreV1.Key buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DatastoreV1.Key.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DatastoreV1.Key.Builder>public DatastoreV1.Key.Builder mergeFrom(DatastoreV1.Key other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.Key.Builder>public DatastoreV1.Key.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<DatastoreV1.Key.Builder>IOExceptionpublic boolean hasPartitionId()
optional .api.services.datastore.PartitionId partition_id = 1;
Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
hasPartitionId in interface DatastoreV1.KeyOrBuilderpublic DatastoreV1.PartitionId getPartitionId()
optional .api.services.datastore.PartitionId partition_id = 1;
Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
getPartitionId in interface DatastoreV1.KeyOrBuilderpublic DatastoreV1.Key.Builder setPartitionId(DatastoreV1.PartitionId value)
optional .api.services.datastore.PartitionId partition_id = 1;
Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
public DatastoreV1.Key.Builder setPartitionId(DatastoreV1.PartitionId.Builder builderForValue)
optional .api.services.datastore.PartitionId partition_id = 1;
Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
public DatastoreV1.Key.Builder mergePartitionId(DatastoreV1.PartitionId value)
optional .api.services.datastore.PartitionId partition_id = 1;
Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
public DatastoreV1.Key.Builder clearPartitionId()
optional .api.services.datastore.PartitionId partition_id = 1;
Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
public DatastoreV1.PartitionId.Builder getPartitionIdBuilder()
optional .api.services.datastore.PartitionId partition_id = 1;
Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
public DatastoreV1.PartitionIdOrBuilder getPartitionIdOrBuilder()
optional .api.services.datastore.PartitionId partition_id = 1;
Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
getPartitionIdOrBuilder in interface DatastoreV1.KeyOrBuilderpublic List<DatastoreV1.Key.PathElement> getPathElementList()
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
getPathElementList in interface DatastoreV1.KeyOrBuilderpublic int getPathElementCount()
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
getPathElementCount in interface DatastoreV1.KeyOrBuilderpublic DatastoreV1.Key.PathElement getPathElement(int index)
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
getPathElement in interface DatastoreV1.KeyOrBuilderpublic DatastoreV1.Key.Builder setPathElement(int index, DatastoreV1.Key.PathElement value)
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
public DatastoreV1.Key.Builder setPathElement(int index, DatastoreV1.Key.PathElement.Builder builderForValue)
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
public DatastoreV1.Key.Builder addPathElement(DatastoreV1.Key.PathElement value)
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
public DatastoreV1.Key.Builder addPathElement(int index, DatastoreV1.Key.PathElement value)
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
public DatastoreV1.Key.Builder addPathElement(DatastoreV1.Key.PathElement.Builder builderForValue)
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
public DatastoreV1.Key.Builder addPathElement(int index, DatastoreV1.Key.PathElement.Builder builderForValue)
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
public DatastoreV1.Key.Builder addAllPathElement(Iterable<? extends DatastoreV1.Key.PathElement> values)
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
public DatastoreV1.Key.Builder clearPathElement()
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
public DatastoreV1.Key.Builder removePathElement(int index)
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
public DatastoreV1.Key.PathElement.Builder getPathElementBuilder(int index)
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
public DatastoreV1.Key.PathElementOrBuilder getPathElementOrBuilder(int index)
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
getPathElementOrBuilder in interface DatastoreV1.KeyOrBuilderpublic List<? extends DatastoreV1.Key.PathElementOrBuilder> getPathElementOrBuilderList()
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
getPathElementOrBuilderList in interface DatastoreV1.KeyOrBuilderpublic DatastoreV1.Key.PathElement.Builder addPathElementBuilder()
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
public DatastoreV1.Key.PathElement.Builder addPathElementBuilder(int index)
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
public List<DatastoreV1.Key.PathElement.Builder> getPathElementBuilderList()
repeated .api.services.datastore.Key.PathElement path_element = 2;
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a <em>root entity</em>, the second element identifies a <em>child</em> of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's <em>ancestors</em>. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
Copyright © 2015. All rights reserved.