Class Label.Builder (2.9.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Label.Builder extends GeneratedMessageV3.Builder<Label.Builder> implements LabelOrBuilder

Label represents a generic name=value label. Label has separate name and value fields to support filtering with contains().

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()

Label name.

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()

Label value.

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()

Label name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Label name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getValue()

public String getValue()

Label value.

string value = 2;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

Label value.

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)

Label name.

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)

Label name.

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)

Label value.

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)

Label value.

string value = 2;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
Label.Builder

This builder for chaining.