Class FieldId.Builder (3.10.0)

public static final class FieldId.Builder extends GeneratedMessageV3.Builder<FieldId.Builder> implements FieldIdOrBuilder

General identifier of a data field in a storage service.

Protobuf type google.privacy.dlp.v2.FieldId

Implements

FieldIdOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FieldId.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FieldId.Builder
Overrides

build()

public FieldId build()
Returns
TypeDescription
FieldId

buildPartial()

public FieldId buildPartial()
Returns
TypeDescription
FieldId

clear()

public FieldId.Builder clear()
Returns
TypeDescription
FieldId.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FieldId.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FieldId.Builder
Overrides

clearName()

public FieldId.Builder clearName()

Name describing the field.

string name = 1;

Returns
TypeDescription
FieldId.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FieldId.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FieldId.Builder
Overrides

clone()

public FieldId.Builder clone()
Returns
TypeDescription
FieldId.Builder
Overrides

getDefaultInstanceForType()

public FieldId getDefaultInstanceForType()
Returns
TypeDescription
FieldId

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Name describing the field.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name describing the field.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FieldId other)

public FieldId.Builder mergeFrom(FieldId other)
Parameter
NameDescription
otherFieldId
Returns
TypeDescription
FieldId.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FieldId.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FieldId.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FieldId.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FieldId.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FieldId.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FieldId.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FieldId.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FieldId.Builder
Overrides

setName(String value)

public FieldId.Builder setName(String value)

Name describing the field.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
FieldId.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FieldId.Builder setNameBytes(ByteString value)

Name describing the field.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
FieldId.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FieldId.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FieldId.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FieldId.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FieldId.Builder
Overrides