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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Key.PathElement
build()
Key.PathElement
buildPartial()
Key.PathElement.Builder
clear()
Key.PathElement.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Key.PathElement.Builder
clearId()
The auto-allocated ID of the entity.Key.PathElement.Builder
clearIdType()
Key.PathElement.Builder
clearKind()
The kind of the entity.Key.PathElement.Builder
clearName()
The name of the entity.Key.PathElement.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Key.PathElement.Builder
clone()
Key.PathElement
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getId()
The auto-allocated ID of the entity.Key.PathElement.IdTypeCase
getIdTypeCase()
String
getKind()
The kind of the entity.com.google.protobuf.ByteString
getKindBytes()
The kind of the entity.String
getName()
The name of the entity.com.google.protobuf.ByteString
getNameBytes()
The name of the entity.boolean
hasId()
The auto-allocated ID of the entity.boolean
hasName()
The name of the entity.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Key.PathElement.Builder
mergeFrom(Key.PathElement other)
Key.PathElement.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Key.PathElement.Builder
mergeFrom(com.google.protobuf.Message other)
Key.PathElement.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Key.PathElement.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Key.PathElement.Builder
setId(long value)
The auto-allocated ID of the entity.Key.PathElement.Builder
setKind(String value)
The kind of the entity.Key.PathElement.Builder
setKindBytes(com.google.protobuf.ByteString value)
The kind of the entity.Key.PathElement.Builder
setName(String value)
The name of the entity.Key.PathElement.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of the entity.Key.PathElement.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Key.PathElement.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.PathElement.Builder>
-
clear
public Key.PathElement.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.PathElement.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.PathElement.Builder>
-
getDefaultInstanceForType
public Key.PathElement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Key.PathElement build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Key.PathElement buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Key.PathElement.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.PathElement.Builder>
-
setField
public Key.PathElement.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.PathElement.Builder>
-
clearField
public Key.PathElement.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.PathElement.Builder>
-
clearOneof
public Key.PathElement.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.PathElement.Builder>
-
setRepeatedField
public Key.PathElement.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.PathElement.Builder>
-
addRepeatedField
public Key.PathElement.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.PathElement.Builder>
-
mergeFrom
public Key.PathElement.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.PathElement.Builder>
-
mergeFrom
public Key.PathElement.Builder mergeFrom(Key.PathElement other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
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.PathElement.Builder>
- Throws:
IOException
-
getIdTypeCase
public Key.PathElement.IdTypeCase getIdTypeCase()
- Specified by:
getIdTypeCase
in 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:
getKind
in 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:
getKindBytes
in 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:
hasId
in 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:
getId
in 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:
hasName
in 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:
getName
in 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:
getNameBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>
-
mergeUnknownFields
public final Key.PathElement.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.PathElement.Builder>
-
-