public static final class ConfigValueOption.Builder extends GeneratedMessageV3.Builder<ConfigValueOption.Builder> implements ConfigValueOptionOrBuilder
ConfigValueOption represents an option for a config variable of type enum or multi select.
Protobuf type google.cloud.apihub.v1.ConfigValueOption
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ConfigValueOption.BuilderImplements
ConfigValueOptionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConfigValueOption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
build()
public ConfigValueOption build()
Returns | |
---|---|
Type | Description |
ConfigValueOption |
buildPartial()
public ConfigValueOption buildPartial()
Returns | |
---|---|
Type | Description |
ConfigValueOption |
clear()
public ConfigValueOption.Builder clear()
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
clearDescription()
public ConfigValueOption.Builder clearDescription()
Optional. Description of the option.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
This builder for chaining. |
clearDisplayName()
public ConfigValueOption.Builder clearDisplayName()
Required. Display name of the option.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ConfigValueOption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
clearId()
public ConfigValueOption.Builder clearId()
Required. Id of the option.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ConfigValueOption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
clone()
public ConfigValueOption.Builder clone()
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
getDefaultInstanceForType()
public ConfigValueOption getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ConfigValueOption |
getDescription()
public String getDescription()
Optional. Description of the option.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. Description of the option.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
Required. Display name of the option.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Required. Display name of the option.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for displayName. |
getId()
public String getId()
Required. Id of the option.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The id. |
getIdBytes()
public ByteString getIdBytes()
Required. Id of the option.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for id. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(ConfigValueOption other)
public ConfigValueOption.Builder mergeFrom(ConfigValueOption other)
Parameter | |
---|---|
Name | Description |
other |
ConfigValueOption |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ConfigValueOption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ConfigValueOption.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConfigValueOption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
setDescription(String value)
public ConfigValueOption.Builder setDescription(String value)
Optional. Description of the option.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The description to set. |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public ConfigValueOption.Builder setDescriptionBytes(ByteString value)
Optional. Description of the option.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
This builder for chaining. |
setDisplayName(String value)
public ConfigValueOption.Builder setDisplayName(String value)
Required. Display name of the option.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The displayName to set. |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public ConfigValueOption.Builder setDisplayNameBytes(ByteString value)
Required. Display name of the option.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for displayName to set. |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ConfigValueOption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
setId(String value)
public ConfigValueOption.Builder setId(String value)
Required. Id of the option.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The id to set. |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
This builder for chaining. |
setIdBytes(ByteString value)
public ConfigValueOption.Builder setIdBytes(ByteString value)
Required. Id of the option.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for id to set. |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConfigValueOption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ConfigValueOption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ConfigValueOption.Builder |