public static final class Key.Builder extends GeneratedMessageV3.Builder<Key.Builder> implements KeyOrBuilder
A unique identifier for a Datastore 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.Protobuf type
google.privacy.dlp.v2beta1.Key| Modifier and Type | Method and Description |
|---|---|
Key.Builder |
addAllPath(java.lang.Iterable<? extends Key.PathElement> values)
The entity path.
|
Key.Builder |
addPath(int index,
Key.PathElement.Builder builderForValue)
The entity path.
|
Key.Builder |
addPath(int index,
Key.PathElement value)
The entity path.
|
Key.Builder |
addPath(Key.PathElement.Builder builderForValue)
The entity path.
|
Key.Builder |
addPath(Key.PathElement value)
The entity path.
|
Key.PathElement.Builder |
addPathBuilder()
The entity path.
|
Key.PathElement.Builder |
addPathBuilder(int index)
The entity path.
|
Key.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Key |
build() |
Key |
buildPartial() |
Key.Builder |
clear() |
Key.Builder |
clearField(Descriptors.FieldDescriptor field) |
Key.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Key.Builder |
clearPartitionId()
Entities are partitioned into subsets, currently identified by a project
ID and namespace ID.
|
Key.Builder |
clearPath()
The entity path.
|
Key.Builder |
clone() |
Key |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
PartitionId |
getPartitionId()
Entities are partitioned into subsets, currently identified by a project
ID and namespace ID.
|
PartitionId.Builder |
getPartitionIdBuilder()
Entities are partitioned into subsets, currently identified by a project
ID and namespace ID.
|
PartitionIdOrBuilder |
getPartitionIdOrBuilder()
Entities are partitioned into subsets, currently identified by a project
ID and namespace ID.
|
Key.PathElement |
getPath(int index)
The entity path.
|
Key.PathElement.Builder |
getPathBuilder(int index)
The entity path.
|
java.util.List<Key.PathElement.Builder> |
getPathBuilderList()
The entity path.
|
int |
getPathCount()
The entity path.
|
java.util.List<Key.PathElement> |
getPathList()
The entity path.
|
Key.PathElementOrBuilder |
getPathOrBuilder(int index)
The entity path.
|
java.util.List<? extends Key.PathElementOrBuilder> |
getPathOrBuilderList()
The entity path.
|
boolean |
hasPartitionId()
Entities are partitioned into subsets, currently identified by a project
ID and namespace ID.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Key.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Key.Builder |
mergeFrom(Key other) |
Key.Builder |
mergeFrom(Message other) |
Key.Builder |
mergePartitionId(PartitionId value)
Entities are partitioned into subsets, currently identified by a project
ID and namespace ID.
|
Key.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Key.Builder |
removePath(int index)
The entity path.
|
Key.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Key.Builder |
setPartitionId(PartitionId.Builder builderForValue)
Entities are partitioned into subsets, currently identified by a project
ID and namespace ID.
|
Key.Builder |
setPartitionId(PartitionId value)
Entities are partitioned into subsets, currently identified by a project
ID and namespace ID.
|
Key.Builder |
setPath(int index,
Key.PathElement.Builder builderForValue)
The entity path.
|
Key.Builder |
setPath(int index,
Key.PathElement value)
The entity path.
|
Key.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Key.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Key.Builder>public Key.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Key.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Key.Builder>public Key getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Key build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Key buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Key.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Key.Builder>public Key.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Key.Builder>public Key.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Key.Builder>public Key.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Key.Builder>public Key.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Key.Builder>public Key.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Key.Builder>public Key.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Key.Builder>public Key.Builder mergeFrom(Key other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Key.Builder>public Key.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Key.Builder>java.io.IOExceptionpublic boolean hasPartitionId()
Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;hasPartitionId in interface KeyOrBuilderpublic PartitionId getPartitionId()
Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;getPartitionId in interface KeyOrBuilderpublic Key.Builder setPartitionId(PartitionId value)
Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;public Key.Builder setPartitionId(PartitionId.Builder builderForValue)
Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;public Key.Builder mergePartitionId(PartitionId value)
Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;public Key.Builder clearPartitionId()
Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;public PartitionId.Builder getPartitionIdBuilder()
Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;public PartitionIdOrBuilder getPartitionIdOrBuilder()
Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;getPartitionIdOrBuilder in interface KeyOrBuilderpublic java.util.List<Key.PathElement> getPathList()
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;getPathList in interface KeyOrBuilderpublic int getPathCount()
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;getPathCount in interface KeyOrBuilderpublic Key.PathElement getPath(int index)
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;getPath in interface KeyOrBuilderpublic Key.Builder setPath(int index, Key.PathElement value)
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;public Key.Builder setPath(int index, Key.PathElement.Builder builderForValue)
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;public Key.Builder addPath(Key.PathElement value)
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;public Key.Builder addPath(int index, Key.PathElement value)
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;public Key.Builder addPath(Key.PathElement.Builder builderForValue)
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;public Key.Builder addPath(int index, Key.PathElement.Builder builderForValue)
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;public Key.Builder addAllPath(java.lang.Iterable<? extends Key.PathElement> values)
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;public Key.Builder clearPath()
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;public Key.Builder removePath(int index)
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;public Key.PathElement.Builder getPathBuilder(int index)
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;public Key.PathElementOrBuilder getPathOrBuilder(int index)
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;getPathOrBuilder in interface KeyOrBuilderpublic java.util.List<? extends Key.PathElementOrBuilder> getPathOrBuilderList()
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;getPathOrBuilderList in interface KeyOrBuilderpublic Key.PathElement.Builder addPathBuilder()
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;public Key.PathElement.Builder addPathBuilder(int index)
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;public java.util.List<Key.PathElement.Builder> getPathBuilderList()
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 _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_. A path can never be empty, and a path can have at most 100 elements.
repeated .google.privacy.dlp.v2beta1.Key.PathElement path = 2;public final Key.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Key.Builder>public final Key.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Key.Builder>