public static final class DisplayVariableToggle.Builder extends GeneratedMessage.Builder<DisplayVariableToggle.Builder> implements DisplayVariableToggleOrBuilderDisplay variable toggle.
Protobuf type google.cloud.designcenter.v1.DisplayVariableToggle
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DisplayVariableToggle.BuilderImplements
DisplayVariableToggleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllVariableValues(Iterable<String> values)
public DisplayVariableToggle.Builder addAllVariableValues(Iterable<String> values)Output only. The value of the variable used to toggle the display of another variable.
repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The variableValues to add. |
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
This builder for chaining. |
addVariableValues(String value)
public DisplayVariableToggle.Builder addVariableValues(String value)Output only. The value of the variable used to toggle the display of another variable.
repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe variableValues to add. |
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
This builder for chaining. |
addVariableValuesBytes(ByteString value)
public DisplayVariableToggle.Builder addVariableValuesBytes(ByteString value)Output only. The value of the variable used to toggle the display of another variable.
repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the variableValues to add. |
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
This builder for chaining. |
build()
public DisplayVariableToggle build()| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle |
|
buildPartial()
public DisplayVariableToggle buildPartial()| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle |
|
clear()
public DisplayVariableToggle.Builder clear()| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
|
clearVariable()
public DisplayVariableToggle.Builder clearVariable()Output only. The name of the variable used to toggle the display of another variable.
string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
This builder for chaining. |
clearVariableType()
public DisplayVariableToggle.Builder clearVariableType()Output only. The type of the variable used to toggle the display of another variable.
.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
This builder for chaining. |
clearVariableValues()
public DisplayVariableToggle.Builder clearVariableValues()Output only. The value of the variable used to toggle the display of another variable.
repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public DisplayVariableToggle getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getVariable()
public String getVariable()Output only. The name of the variable used to toggle the display of another variable.
string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The variable. |
getVariableBytes()
public ByteString getVariableBytes()Output only. The name of the variable used to toggle the display of another variable.
string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for variable. |
getVariableType()
public DisplayVariableToggle.ToggleVariableType getVariableType()Output only. The type of the variable used to toggle the display of another variable.
.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.ToggleVariableType |
The variableType. |
getVariableTypeValue()
public int getVariableTypeValue()Output only. The type of the variable used to toggle the display of another variable.
.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for variableType. |
getVariableValues(int index)
public String getVariableValues(int index)Output only. The value of the variable used to toggle the display of another variable.
repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The variableValues at the given index. |
getVariableValuesBytes(int index)
public ByteString getVariableValuesBytes(int index)Output only. The value of the variable used to toggle the display of another variable.
repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the variableValues at the given index. |
getVariableValuesCount()
public int getVariableValuesCount()Output only. The value of the variable used to toggle the display of another variable.
repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The count of variableValues. |
getVariableValuesList()
public ProtocolStringList getVariableValuesList()Output only. The value of the variable used to toggle the display of another variable.
repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the variableValues. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DisplayVariableToggle other)
public DisplayVariableToggle.Builder mergeFrom(DisplayVariableToggle other)| Parameter | |
|---|---|
| Name | Description |
other |
DisplayVariableToggle |
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DisplayVariableToggle.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DisplayVariableToggle.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
|
setVariable(String value)
public DisplayVariableToggle.Builder setVariable(String value)Output only. The name of the variable used to toggle the display of another variable.
string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe variable to set. |
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
This builder for chaining. |
setVariableBytes(ByteString value)
public DisplayVariableToggle.Builder setVariableBytes(ByteString value)Output only. The name of the variable used to toggle the display of another variable.
string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for variable to set. |
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
This builder for chaining. |
setVariableType(DisplayVariableToggle.ToggleVariableType value)
public DisplayVariableToggle.Builder setVariableType(DisplayVariableToggle.ToggleVariableType value)Output only. The type of the variable used to toggle the display of another variable.
.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
DisplayVariableToggle.ToggleVariableTypeThe variableType to set. |
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
This builder for chaining. |
setVariableTypeValue(int value)
public DisplayVariableToggle.Builder setVariableTypeValue(int value)Output only. The type of the variable used to toggle the display of another variable.
.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for variableType to set. |
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
This builder for chaining. |
setVariableValues(int index, String value)
public DisplayVariableToggle.Builder setVariableValues(int index, String value)Output only. The value of the variable used to toggle the display of another variable.
repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe variableValues to set. |
| Returns | |
|---|---|
| Type | Description |
DisplayVariableToggle.Builder |
This builder for chaining. |