public static final class Label.Builder extends GeneratedMessage.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.v2.Label
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Label.BuilderImplements
LabelOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Label build()| Returns | |
|---|---|
| Type | Description |
Label |
|
buildPartial()
public Label buildPartial()| Returns | |
|---|---|
| Type | Description |
Label |
|
clear()
public Label.Builder clear()| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
clearName()
public Label.Builder clearName()Name of the label.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
This builder for chaining. |
clearValue()
public Label.Builder clearValue()Value that corresponds to the label's name.
string value = 2;
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Label getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Label |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Name of the label.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Name of the label.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getValue()
public String getValue()Value that corresponds to the label's name.
string value = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The value. |
getValueBytes()
public ByteString getValueBytes()Value that corresponds to the label's name.
string value = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for value. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Label other)
public Label.Builder mergeFrom(Label other)| Parameter | |
|---|---|
| Name | Description |
other |
Label |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Label.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Label.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
setName(String value)
public Label.Builder setName(String value)Name of the label.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Label.Builder setNameBytes(ByteString value)Name of the label.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
This builder for chaining. |
setValue(String value)
public Label.Builder setValue(String value)Value that corresponds to the label's name.
string value = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe value to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for value to set. |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
This builder for chaining. |