public static final class Label.Builder extends GeneratedMessageV3.Builder<Label.Builder> implements LabelOrBuilderLabel is a key value pair applied to a resource.
Protobuf type google.cloud.databasecenter.v1beta.Label
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Label.BuilderImplements
LabelOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Label.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
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 |
|
clearField(Descriptors.FieldDescriptor field)
public Label.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| 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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Label.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
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. |
clone()
public Label.Builder clone()| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
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 GeneratedMessageV3.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 |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Label.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public Label.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| 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. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Label.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
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. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Label.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
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. |