Class InfoTypeDescription.Builder (3.1.4)

public static final class InfoTypeDescription.Builder extends GeneratedMessageV3.Builder<InfoTypeDescription.Builder> implements InfoTypeDescriptionOrBuilder

InfoType description.

Protobuf type google.privacy.dlp.v2.InfoTypeDescription

Static Methods

getDescriptor()

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

Methods

addAllSupportedBy(Iterable<? extends InfoTypeSupportedBy> values)

public InfoTypeDescription.Builder addAllSupportedBy(Iterable<? extends InfoTypeSupportedBy> values)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.InfoTypeSupportedBy>

The supportedBy to add.

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

addAllSupportedByValue(Iterable<Integer> values)

public InfoTypeDescription.Builder addAllSupportedByValue(Iterable<Integer> values)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for supportedBy to add.

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSupportedBy(InfoTypeSupportedBy value)

public InfoTypeDescription.Builder addSupportedBy(InfoTypeSupportedBy value)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameter
Name Description
value InfoTypeSupportedBy

The supportedBy to add.

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

addSupportedByValue(int value)

public InfoTypeDescription.Builder addSupportedByValue(int value)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for supportedBy to add.

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

build()

public InfoTypeDescription build()
Returns
Type Description
InfoTypeDescription

buildPartial()

public InfoTypeDescription buildPartial()
Returns
Type Description
InfoTypeDescription

clear()

public InfoTypeDescription.Builder clear()
Returns
Type Description
InfoTypeDescription.Builder
Overrides

clearDescription()

public InfoTypeDescription.Builder clearDescription()

Description of the infotype. Translated when language is provided in the request.

string description = 4;

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

clearDisplayName()

public InfoTypeDescription.Builder clearDisplayName()

Human readable form of the infoType name.

string display_name = 2;

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public InfoTypeDescription.Builder clearName()

Internal name of the infoType.

string name = 1;

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSupportedBy()

public InfoTypeDescription.Builder clearSupportedBy()

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

clone()

public InfoTypeDescription.Builder clone()
Returns
Type Description
InfoTypeDescription.Builder
Overrides

getDefaultInstanceForType()

public InfoTypeDescription getDefaultInstanceForType()
Returns
Type Description
InfoTypeDescription

getDescription()

public String getDescription()

Description of the infotype. Translated when language is provided in the request.

string description = 4;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the infotype. Translated when language is provided in the request.

string description = 4;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Human readable form of the infoType name.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Human readable form of the infoType name.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Internal name of the infoType.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Internal name of the infoType.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getSupportedBy(int index)

public InfoTypeSupportedBy getSupportedBy(int index)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
InfoTypeSupportedBy

The supportedBy at the given index.

getSupportedByCount()

public int getSupportedByCount()

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Returns
Type Description
int

The count of supportedBy.

getSupportedByList()

public List<InfoTypeSupportedBy> getSupportedByList()

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Returns
Type Description
List<InfoTypeSupportedBy>

A list containing the supportedBy.

getSupportedByValue(int index)

public int getSupportedByValue(int index)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of supportedBy at the given index.

getSupportedByValueList()

public List<Integer> getSupportedByValueList()

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for supportedBy.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InfoTypeDescription other)

public InfoTypeDescription.Builder mergeFrom(InfoTypeDescription other)
Parameter
Name Description
other InfoTypeDescription
Returns
Type Description
InfoTypeDescription.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InfoTypeDescription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InfoTypeDescription.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public InfoTypeDescription.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InfoTypeDescription.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InfoTypeDescription.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InfoTypeDescription.Builder
Overrides

setDescription(String value)

public InfoTypeDescription.Builder setDescription(String value)

Description of the infotype. Translated when language is provided in the request.

string description = 4;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public InfoTypeDescription.Builder setDescriptionBytes(ByteString value)

Description of the infotype. Translated when language is provided in the request.

string description = 4;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

setDisplayName(String value)

public InfoTypeDescription.Builder setDisplayName(String value)

Human readable form of the infoType name.

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public InfoTypeDescription.Builder setDisplayNameBytes(ByteString value)

Human readable form of the infoType name.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InfoTypeDescription.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InfoTypeDescription.Builder
Overrides

setName(String value)

public InfoTypeDescription.Builder setName(String value)

Internal name of the infoType.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InfoTypeDescription.Builder setNameBytes(ByteString value)

Internal name of the infoType.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

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

public InfoTypeDescription.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InfoTypeDescription.Builder
Overrides

setSupportedBy(int index, InfoTypeSupportedBy value)

public InfoTypeDescription.Builder setSupportedBy(int index, InfoTypeSupportedBy value)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameters
Name Description
index int

The index to set the value at.

value InfoTypeSupportedBy

The supportedBy to set.

Returns
Type Description
InfoTypeDescription.Builder

This builder for chaining.

setSupportedByValue(int index, int value)

public InfoTypeDescription.Builder setSupportedByValue(int index, int value)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameters
Name Description
index int

The index of the value to return.

value int
Returns
Type Description
InfoTypeDescription.Builder

The enum numeric value on the wire of supportedBy at the given index.

setUnknownFields(UnknownFieldSet unknownFields)

public final InfoTypeDescription.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InfoTypeDescription.Builder
Overrides