Class VersionDescription.Builder (3.24.0)

public static final class VersionDescription.Builder extends GeneratedMessageV3.Builder<VersionDescription.Builder> implements VersionDescriptionOrBuilder

Details about each available version for an infotype.

Protobuf type google.privacy.dlp.v2.VersionDescription

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VersionDescription build()
Returns
TypeDescription
VersionDescription

buildPartial()

public VersionDescription buildPartial()
Returns
TypeDescription
VersionDescription

clear()

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

clearDescription()

public VersionDescription.Builder clearDescription()

Description of the version.

string description = 2;

Returns
TypeDescription
VersionDescription.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersion()

public VersionDescription.Builder clearVersion()

Name of the version

string version = 1;

Returns
TypeDescription
VersionDescription.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public VersionDescription getDefaultInstanceForType()
Returns
TypeDescription
VersionDescription

getDescription()

public String getDescription()

Description of the version.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the version.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getVersion()

public String getVersion()

Name of the version

string version = 1;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Name of the version

string version = 1;

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VersionDescription other)

public VersionDescription.Builder mergeFrom(VersionDescription other)
Parameter
NameDescription
otherVersionDescription
Returns
TypeDescription
VersionDescription.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public VersionDescription.Builder setDescription(String value)

Description of the version.

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
VersionDescription.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public VersionDescription.Builder setDescriptionBytes(ByteString value)

Description of the version.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
VersionDescription.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public VersionDescription.Builder setVersion(String value)

Name of the version

string version = 1;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
VersionDescription.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public VersionDescription.Builder setVersionBytes(ByteString value)

Name of the version

string version = 1;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
VersionDescription.Builder

This builder for chaining.