Class DisplayVariableToggle.Builder (0.3.0)

public static final class DisplayVariableToggle.Builder extends GeneratedMessage.Builder<DisplayVariableToggle.Builder> implements DisplayVariableToggleOrBuilder

Display variable toggle.

Protobuf type google.cloud.designcenter.v1.DisplayVariableToggle

Static 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 String

The 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 ByteString

The 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
Overrides

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
Overrides

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 int

The 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 int

The 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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DisplayVariableToggle.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DisplayVariableToggle.Builder
Overrides

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 String

The 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 ByteString

The 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.ToggleVariableType

The 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 int

The 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 int

The index to set the value at.

value String

The variableValues to set.

Returns
Type Description
DisplayVariableToggle.Builder

This builder for chaining.