Class Key.PathElement.Builder (3.49.0)

public static final class Key.PathElement.Builder extends 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 type google.privacy.dlp.v2.Key.PathElement

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Key.PathElement.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Key.PathElement.Builder
Overrides

build()

public Key.PathElement build()
Returns
Type Description
Key.PathElement

buildPartial()

public Key.PathElement buildPartial()
Returns
Type Description
Key.PathElement

clear()

public Key.PathElement.Builder clear()
Returns
Type Description
Key.PathElement.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Key.PathElement.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Key.PathElement.Builder
Overrides

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
Type Description
Key.PathElement.Builder

This builder for chaining.

clearIdType()

public Key.PathElement.Builder clearIdType()
Returns
Type Description
Key.PathElement.Builder

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
Type Description
Key.PathElement.Builder

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
Type Description
Key.PathElement.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Key.PathElement.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Key.PathElement.Builder
Overrides

clone()

public Key.PathElement.Builder clone()
Returns
Type Description
Key.PathElement.Builder
Overrides

getDefaultInstanceForType()

public Key.PathElement getDefaultInstanceForType()
Returns
Type Description
Key.PathElement

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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;

Returns
Type Description
long

The id.

getIdTypeCase()

public Key.PathElement.IdTypeCase getIdTypeCase()
Returns
Type Description
Key.PathElement.IdTypeCase