Class ComponentVariable.Builder (0.3.0)

public static final class ComponentVariable.Builder extends GeneratedMessage.Builder<ComponentVariable.Builder> implements ComponentVariableOrBuilder

The details of an input/output variable: the variable and the component Uri. name.

Protobuf type google.cloud.designcenter.v1.ComponentVariable

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ComponentVariable build()
Returns
Type Description
ComponentVariable

buildPartial()

public ComponentVariable buildPartial()
Returns
Type Description
ComponentVariable

clear()

public ComponentVariable.Builder clear()
Returns
Type Description
ComponentVariable.Builder
Overrides

clearComponentUri()

public ComponentVariable.Builder clearComponentUri()

Required. Component to which this variable belongs.

string component_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ComponentVariable.Builder

This builder for chaining.

clearVariable()

public ComponentVariable.Builder clearVariable()

Required. Name of the variable.

string variable = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ComponentVariable.Builder

This builder for chaining.

getComponentUri()

public String getComponentUri()

Required. Component to which this variable belongs.

string component_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The componentUri.

getComponentUriBytes()

public ByteString getComponentUriBytes()

Required. Component to which this variable belongs.

string component_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for componentUri.

getDefaultInstanceForType()

public ComponentVariable getDefaultInstanceForType()
Returns
Type Description
ComponentVariable

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getVariable()

public String getVariable()

Required. Name of the variable.

string variable = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The variable.

getVariableBytes()

public ByteString getVariableBytes()

Required. Name of the variable.

string variable = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for variable.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComponentVariable other)

public ComponentVariable.Builder mergeFrom(ComponentVariable other)
Parameter
Name Description
other ComponentVariable
Returns
Type Description
ComponentVariable.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComponentVariable.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComponentVariable.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setComponentUri(String value)

public ComponentVariable.Builder setComponentUri(String value)

Required. Component to which this variable belongs.

string component_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The componentUri to set.

Returns
Type Description
ComponentVariable.Builder

This builder for chaining.

setComponentUriBytes(ByteString value)

public ComponentVariable.Builder setComponentUriBytes(ByteString value)

Required. Component to which this variable belongs.

string component_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for componentUri to set.

Returns
Type Description
ComponentVariable.Builder

This builder for chaining.

setVariable(String value)

public ComponentVariable.Builder setVariable(String value)

Required. Name of the variable.

string variable = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The variable to set.

Returns
Type Description
ComponentVariable.Builder

This builder for chaining.

setVariableBytes(ByteString value)

public ComponentVariable.Builder setVariableBytes(ByteString value)

Required. Name of the variable.

string variable = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for variable to set.

Returns
Type Description
ComponentVariable.Builder

This builder for chaining.