Package com.google.privacy.dlp.v2
Class Key.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
- com.google.privacy.dlp.v2.Key.Builder
-
- All Implemented Interfaces:
KeyOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Key
public static final class Key.Builder extends com.google.protobuf.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 typegoogle.privacy.dlp.v2.Key
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Key.Builder
addAllPath(Iterable<? extends Key.PathElement> values)
The entity path.Key.Builder
addPath(int index, Key.PathElement value)
The entity path.Key.Builder
addPath(int index, Key.PathElement.Builder builderForValue)
The entity path.Key.Builder
addPath(Key.PathElement value)
The entity path.Key.Builder
addPath(Key.PathElement.Builder builderForValue)
The entity path.Key.PathElement.Builder
addPathBuilder()
The entity path.Key.PathElement.Builder
addPathBuilder(int index)
The entity path.Key.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Key
build()
Key
buildPartial()
Key.Builder
clear()
Key.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Key.Builder
clearOneof(com.google.protobuf.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 com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.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.List<Key.PathElement.Builder>
getPathBuilderList()
The entity path.int
getPathCount()
The entity path.List<Key.PathElement>
getPathList()
The entity path.Key.PathElementOrBuilder
getPathOrBuilder(int index)
The entity path.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Key.Builder
mergeFrom(Key other)
Key.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Key.Builder
mergeFrom(com.google.protobuf.Message other)
Key.Builder
mergePartitionId(PartitionId value)
Entities are partitioned into subsets, currently identified by a project ID and namespace ID.Key.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Key.Builder
removePath(int index)
The entity path.Key.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Key.Builder
setPartitionId(PartitionId value)
Entities are partitioned into subsets, currently identified by a project ID and namespace ID.Key.Builder
setPartitionId(PartitionId.Builder builderForValue)
Entities are partitioned into subsets, currently identified by a project ID and namespace ID.Key.Builder
setPath(int index, Key.PathElement value)
The entity path.Key.Builder
setPath(int index, Key.PathElement.Builder builderForValue)
The entity path.Key.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Key.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
clear
public Key.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
getDefaultInstanceForType
public Key getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Key build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Key buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Key.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
setField
public Key.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
clearField
public Key.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
clearOneof
public Key.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
setRepeatedField
public Key.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
addRepeatedField
public Key.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
mergeFrom
public Key.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Key.Builder>
-
mergeFrom
public Key.Builder mergeFrom(Key other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
mergeFrom
public Key.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Key.Builder>
- Throws:
IOException
-
hasPartitionId
public 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.v2.PartitionId partition_id = 1;
- Specified by:
hasPartitionId
in interfaceKeyOrBuilder
- Returns:
- Whether the partitionId field is set.
-
getPartitionId
public 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.v2.PartitionId partition_id = 1;
- Specified by:
getPartitionId
in interfaceKeyOrBuilder
- Returns:
- The partitionId.
-
setPartitionId
public 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.v2.PartitionId partition_id = 1;
-
setPartitionId
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.v2.PartitionId partition_id = 1;
-
mergePartitionId
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.v2.PartitionId partition_id = 1;
-
clearPartitionId
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.v2.PartitionId partition_id = 1;
-
getPartitionIdBuilder
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.v2.PartitionId partition_id = 1;
-
getPartitionIdOrBuilder
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.v2.PartitionId partition_id = 1;
- Specified by:
getPartitionIdOrBuilder
in interfaceKeyOrBuilder
-
getPathList
public 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.v2.Key.PathElement path = 2;
- Specified by:
getPathList
in interfaceKeyOrBuilder
-
getPathCount
public 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.v2.Key.PathElement path = 2;
- Specified by:
getPathCount
in interfaceKeyOrBuilder
-
getPath
public 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.v2.Key.PathElement path = 2;
- Specified by:
getPath
in interfaceKeyOrBuilder
-
setPath
public 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.v2.Key.PathElement path = 2;
-
setPath
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.v2.Key.PathElement path = 2;
-
addPath
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.v2.Key.PathElement path = 2;
-
addPath
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.v2.Key.PathElement path = 2;
-
addPath
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.v2.Key.PathElement path = 2;
-
addPath
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.v2.Key.PathElement path = 2;
-
addAllPath
public Key.Builder addAllPath(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.v2.Key.PathElement path = 2;
-
clearPath
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.v2.Key.PathElement path = 2;
-
removePath
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.v2.Key.PathElement path = 2;
-
getPathBuilder
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.v2.Key.PathElement path = 2;
-
getPathOrBuilder
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.v2.Key.PathElement path = 2;
- Specified by:
getPathOrBuilder
in interfaceKeyOrBuilder
-
getPathOrBuilderList
public 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.v2.Key.PathElement path = 2;
- Specified by:
getPathOrBuilderList
in interfaceKeyOrBuilder
-
addPathBuilder
public 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.v2.Key.PathElement path = 2;
-
addPathBuilder
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.v2.Key.PathElement path = 2;
-
getPathBuilderList
public 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.v2.Key.PathElement path = 2;
-
setUnknownFields
public final Key.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
mergeUnknownFields
public final Key.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.Builder>
-
-