public static final class Label.Builder extends GeneratedMessage.Builder<Label.Builder> implements LabelOrBuilderLabel is a key value pair applied to a resource.
Protobuf type google.cloud.databasecenter.v1beta.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 |
|
clearKey()
public Label.Builder clearKey()The key part of the label.
string key = 1;
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
This builder for chaining. |
clearSource()
public Label.Builder clearSource()The source of the Label. Source is empty if the label is directly attached to the resource and not inherited.
string source = 3;
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
This builder for chaining. |
clearValue()
public Label.Builder clearValue()The value part of the label.
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 |
|
getKey()
public String getKey()The key part of the label.
string key = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The key. |
getKeyBytes()
public ByteString getKeyBytes()The key part of the label.
string key = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for key. |
getSource()
public String getSource()The source of the Label. Source is empty if the label is directly attached to the resource and not inherited.
string source = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The source. |
getSourceBytes()
public ByteString getSourceBytes()The source of the Label. Source is empty if the label is directly attached to the resource and not inherited.
string source = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for source. |
getValue()
public String getValue()The value part of the label.
string value = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The value. |
getValueBytes()
public ByteString getValueBytes()The value part of the label.
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 |
|
setKey(String value)
public Label.Builder setKey(String value)The key part of the label.
string key = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe key to set. |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
This builder for chaining. |
setKeyBytes(ByteString value)
public Label.Builder setKeyBytes(ByteString value)The key part of the label.
string key = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for key to set. |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
This builder for chaining. |
setSource(String value)
public Label.Builder setSource(String value)The source of the Label. Source is empty if the label is directly attached to the resource and not inherited.
string source = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe source to set. |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
This builder for chaining. |
setSourceBytes(ByteString value)
public Label.Builder setSourceBytes(ByteString value)The source of the Label. Source is empty if the label is directly attached to the resource and not inherited.
string source = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for source to set. |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
This builder for chaining. |
setValue(String value)
public Label.Builder setValue(String value)The value part of the label.
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)The value part of the label.
string value = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for value to set. |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
This builder for chaining. |