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, 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.Key.Builder>
public DatastoreV1.Key.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.Key.Builder>
public DatastoreV1.Key.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.Key.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.Key.Builder>
public DatastoreV1.Key getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public DatastoreV1.Key build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public DatastoreV1.Key buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public DatastoreV1.Key.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<DatastoreV1.Key.Builder>
IOException
public 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.KeyOrBuilder
public 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.KeyOrBuilder
public 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.KeyOrBuilder
public 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.
getPathElementList
in interface DatastoreV1.KeyOrBuilder
public 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.
getPathElementCount
in interface DatastoreV1.KeyOrBuilder
public 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.
getPathElement
in interface DatastoreV1.KeyOrBuilder
public 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
getPathElementOrBuilder
in interface DatastoreV1.KeyOrBuilder
public 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.
getPathElementOrBuilderList
in interface DatastoreV1.KeyOrBuilder
public 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.
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.
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.
Copyright © 2013. All Rights Reserved.