Class Label.Builder (2.29.0)

public static final class Label.Builder extends GeneratedMessageV3.Builder<Label.Builder> implements LabelOrBuilder

Represents a generic name-value label. A label has separate name and value fields to support filtering with the contains() function. For more information, see Filtering on array-type fields.

Protobuf type google.cloud.securitycenter.v1.Label

Implements

LabelOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Label build()
Returns
TypeDescription
Label

buildPartial()

public Label buildPartial()
Returns
TypeDescription
Label

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Label.Builder clearName()

Name of the label.

string name = 1;

Returns
TypeDescription
Label.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public Label.Builder clearValue()

Value that corresponds to the label's name.

string value = 2;

Returns
TypeDescription
Label.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Label getDefaultInstanceForType()
Returns
TypeDescription
Label

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Name of the label.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the label.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getValue()

public String getValue()

Value that corresponds to the label's name.

string value = 2;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

Value that corresponds to the label's name.

string value = 2;

Returns
TypeDescription
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Label other)

public Label.Builder mergeFrom(Label other)
Parameter
NameDescription
otherLabel
Returns
TypeDescription
Label.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Label.Builder setName(String value)

Name of the label.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Label.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Label.Builder setNameBytes(ByteString value)

Name of the label.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Label.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public Label.Builder setValue(String value)

Value that corresponds to the label's name.

string value = 2;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
Label.Builder

This builder for chaining.

setValueBytes(ByteString value)

public Label.Builder setValueBytes(ByteString value)

Value that corresponds to the label's name.

string value = 2;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
Label.Builder

This builder for chaining.