Package com.google.privacy.dlp.v2
Class Key.PathElement.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
- com.google.privacy.dlp.v2.Key.PathElement.Builder
-
- All Implemented Interfaces:
Key.PathElementOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Key.PathElement
public static final class Key.PathElement.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder> implements Key.PathElementOrBuilder
A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
Protobuf typegoogle.privacy.dlp.v2.Key.PathElement
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Key.PathElement.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Key.PathElementbuild()Key.PathElementbuildPartial()Key.PathElement.Builderclear()Key.PathElement.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Key.PathElement.BuilderclearId()The auto-allocated ID of the entity.Key.PathElement.BuilderclearIdType()Key.PathElement.BuilderclearKind()The kind of the entity.Key.PathElement.BuilderclearName()The name of the entity.Key.PathElement.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Key.PathElement.Builderclone()Key.PathElementgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetId()The auto-allocated ID of the entity.Key.PathElement.IdTypeCasegetIdTypeCase()StringgetKind()The kind of the entity.com.google.protobuf.ByteStringgetKindBytes()The kind of the entity.StringgetName()The name of the entity.com.google.protobuf.ByteStringgetNameBytes()The name of the entity.booleanhasId()The auto-allocated ID of the entity.booleanhasName()The name of the entity.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Key.PathElement.BuildermergeFrom(Key.PathElement other)Key.PathElement.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Key.PathElement.BuildermergeFrom(com.google.protobuf.Message other)Key.PathElement.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Key.PathElement.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Key.PathElement.BuildersetId(long value)The auto-allocated ID of the entity.Key.PathElement.BuildersetKind(String value)The kind of the entity.Key.PathElement.BuildersetKindBytes(com.google.protobuf.ByteString value)The kind of the entity.Key.PathElement.BuildersetName(String value)The name of the entity.Key.PathElement.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of the entity.Key.PathElement.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Key.PathElement.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
clear
public Key.PathElement.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
getDefaultInstanceForType
public Key.PathElement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Key.PathElement build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Key.PathElement buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Key.PathElement.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
setField
public Key.PathElement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
clearField
public Key.PathElement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
clearOneof
public Key.PathElement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
setRepeatedField
public Key.PathElement.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
addRepeatedField
public Key.PathElement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
mergeFrom
public Key.PathElement.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Key.PathElement.Builder>
-
mergeFrom
public Key.PathElement.Builder mergeFrom(Key.PathElement other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
mergeFrom
public Key.PathElement.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Key.PathElement.Builder>- Throws:
IOException
-
getIdTypeCase
public Key.PathElement.IdTypeCase getIdTypeCase()
- Specified by:
getIdTypeCasein interfaceKey.PathElementOrBuilder
-
clearIdType
public Key.PathElement.Builder clearIdType()
-
getKind
public String getKind()
The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string kind = 1;- Specified by:
getKindin interfaceKey.PathElementOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string kind = 1;- Specified by:
getKindBytesin interfaceKey.PathElementOrBuilder- Returns:
- The bytes for kind.
-
setKind
public Key.PathElement.Builder setKind(String value)
The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string kind = 1;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public Key.PathElement.Builder clearKind()
The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string kind = 1;- Returns:
- This builder for chaining.
-
setKindBytes
public Key.PathElement.Builder setKindBytes(com.google.protobuf.ByteString value)
The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string kind = 1;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()
The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
int64 id = 2;- Specified by:
hasIdin interfaceKey.PathElementOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()
The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
int64 id = 2;- Specified by:
getIdin interfaceKey.PathElementOrBuilder- Returns:
- The id.
-
setId
public Key.PathElement.Builder setId(long value)
The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
int64 id = 2;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Key.PathElement.Builder clearId()
The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
int64 id = 2;- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string name = 3;- Specified by:
hasNamein interfaceKey.PathElementOrBuilder- Returns:
- Whether the name field is set.
-
getName
public String getName()
The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string name = 3;- Specified by:
getNamein interfaceKey.PathElementOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string name = 3;- Specified by:
getNameBytesin interfaceKey.PathElementOrBuilder- Returns:
- The bytes for name.
-
setName
public Key.PathElement.Builder setName(String value)
The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string name = 3;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Key.PathElement.Builder clearName()
The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string name = 3;- Returns:
- This builder for chaining.
-
setNameBytes
public Key.PathElement.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string name = 3;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Key.PathElement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
mergeUnknownFields
public final Key.PathElement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
-