public static final class LabelDescriptor.Builder extends GeneratedMessage.Builder<LabelDescriptor.Builder> implements LabelDescriptorOrBuilderA description of a label.
Protobuf type google.api.LabelDescriptor
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > LabelDescriptor.BuilderImplements
LabelDescriptorOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public LabelDescriptor build()| Returns | |
|---|---|
| Type | Description |
LabelDescriptor |
|
buildPartial()
public LabelDescriptor buildPartial()| Returns | |
|---|---|
| Type | Description |
LabelDescriptor |
|
clear()
public LabelDescriptor.Builder clear()| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.Builder |
|
clearDescription()
public LabelDescriptor.Builder clearDescription()A human-readable description for the label.
string description = 3;
| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.Builder |
This builder for chaining. |
clearKey()
public LabelDescriptor.Builder clearKey()The label key.
string key = 1;
| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.Builder |
This builder for chaining. |
clearValueType()
public LabelDescriptor.Builder clearValueType()The type of data that can be assigned to the label.
.google.api.LabelDescriptor.ValueType value_type = 2;
| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public LabelDescriptor getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LabelDescriptor |
|
getDescription()
public String getDescription()A human-readable description for the label.
string description = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()A human-readable description for the label.
string description = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getKey()
public String getKey()The label key.
string key = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The key. |
getKeyBytes()
public ByteString getKeyBytes()The label key.
string key = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for key. |
getValueType()
public LabelDescriptor.ValueType getValueType()The type of data that can be assigned to the label.
.google.api.LabelDescriptor.ValueType value_type = 2;
| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.ValueType |
The valueType. |
getValueTypeValue()
public int getValueTypeValue()The type of data that can be assigned to the label.
.google.api.LabelDescriptor.ValueType value_type = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for valueType. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(LabelDescriptor other)
public LabelDescriptor.Builder mergeFrom(LabelDescriptor other)| Parameter | |
|---|---|
| Name | Description |
other |
LabelDescriptor |
| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LabelDescriptor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public LabelDescriptor.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.Builder |
|
setDescription(String value)
public LabelDescriptor.Builder setDescription(String value)A human-readable description for the label.
string description = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public LabelDescriptor.Builder setDescriptionBytes(ByteString value)A human-readable description for the label.
string description = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.Builder |
This builder for chaining. |
setKey(String value)
public LabelDescriptor.Builder setKey(String value)The label key.
string key = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe key to set. |
| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.Builder |
This builder for chaining. |
setKeyBytes(ByteString value)
public LabelDescriptor.Builder setKeyBytes(ByteString value)The label key.
string key = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for key to set. |
| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.Builder |
This builder for chaining. |
setValueType(LabelDescriptor.ValueType value)
public LabelDescriptor.Builder setValueType(LabelDescriptor.ValueType value)The type of data that can be assigned to the label.
.google.api.LabelDescriptor.ValueType value_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
LabelDescriptor.ValueTypeThe valueType to set. |
| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.Builder |
This builder for chaining. |
setValueTypeValue(int value)
public LabelDescriptor.Builder setValueTypeValue(int value)The type of data that can be assigned to the label.
.google.api.LabelDescriptor.ValueType value_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for valueType to set. |
| Returns | |
|---|---|
| Type | Description |
LabelDescriptor.Builder |
This builder for chaining. |