Class InfoTypeDescription.Builder (3.2.1)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.InfoTypeSupportedBy>

The supportedBy to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InfoTypeDescription.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInfoTypeSupportedBy

The supportedBy to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

build()

public InfoTypeDescription build()
Returns
TypeDescription
InfoTypeDescription

buildPartial()

public InfoTypeDescription buildPartial()
Returns
TypeDescription
InfoTypeDescription

clear()

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

clearDescription()

public InfoTypeDescription.Builder clearDescription()

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

string description = 4;

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

clearDisplayName()

public InfoTypeDescription.Builder clearDisplayName()

Human readable form of the infoType name.

string display_name = 2;

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public InfoTypeDescription.Builder clearName()

Internal name of the infoType.

string name = 1;

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InfoTypeDescription.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public InfoTypeDescription getDefaultInstanceForType()
Returns
TypeDescription
InfoTypeDescription

getDescription()

public String getDescription()

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

string description = 4;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

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

string description = 4;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Human readable form of the infoType name.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Human readable form of the infoType name.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getName()

public String getName()

Internal name of the infoType.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Internal name of the infoType.

string name = 1;

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
List<Integer>

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InfoTypeDescription other)

public InfoTypeDescription.Builder mergeFrom(InfoTypeDescription other)
Parameter
NameDescription
otherInfoTypeDescription
Returns
TypeDescription
InfoTypeDescription.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InfoTypeDescription.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public InfoTypeDescription.Builder setName(String value)

Internal name of the infoType.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InfoTypeDescription.Builder setNameBytes(ByteString value)

Internal name of the infoType.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueInfoTypeSupportedBy

The supportedBy to set.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

valueint
Returns
TypeDescription
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
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InfoTypeDescription.Builder
Overrides