Class ModuleInput.Builder (0.3.0)

public static final class ModuleInput.Builder extends GeneratedMessage.Builder<ModuleInput.Builder> implements ModuleInputOrBuilder

Represents an input variable for a module.

Protobuf type google.cloud.designcenter.v1.ModuleInput

Static Methods

getDescriptor()

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

Methods

build()

public ModuleInput build()
Returns
Type Description
ModuleInput

buildPartial()

public ModuleInput buildPartial()
Returns
Type Description
ModuleInput

clear()

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

clearDefaultValue()

public ModuleInput.Builder clearDefaultValue()

Optional. Default value of the variable as a string representation. Using google.protobuf.Value to allow for different types, though a string is common.

.google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModuleInput.Builder

clearDescription()

public ModuleInput.Builder clearDescription()

Optional. Description of the variable.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModuleInput.Builder

This builder for chaining.

clearName()

public ModuleInput.Builder clearName()

Optional. Name of the input variable.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModuleInput.Builder

This builder for chaining.

clearRequired()

public ModuleInput.Builder clearRequired()

Optional. Whether the input variable is required.

bool required = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModuleInput.Builder

This builder for chaining.

clearType()

public ModuleInput.Builder clearType()

Optional. Terraform type of the variable.

string type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModuleInput.Builder

This builder for chaining.

getDefaultInstanceForType()

public ModuleInput getDefaultInstanceForType()
Returns
Type Description
ModuleInput

getDefaultValue()

public Value getDefaultValue()

Optional. Default value of the variable as a string representation. Using google.protobuf.Value to allow for different types, though a string is common.

.google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Value

The defaultValue.

getDefaultValueBuilder()

public Value.Builder getDefaultValueBuilder()

Optional. Default value of the variable as a string representation. Using google.protobuf.Value to allow for different types, though a string is common.

.google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getDefaultValueOrBuilder()

public ValueOrBuilder getDefaultValueOrBuilder()

Optional. Default value of the variable as a string representation. Using google.protobuf.Value to allow for different types, though a string is common.

.google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ValueOrBuilder

getDescription()

public String getDescription()

Optional. Description of the variable.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the variable.

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
Overrides

getName()

public String getName()

Optional. Name of the input variable.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. Name of the input variable.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for name.

getRequired()

public boolean getRequired()

Optional. Whether the input variable is required.

bool required = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The required.

getType()

public String getType()

Optional. Terraform type of the variable.

string type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Optional. Terraform type of the variable.

string type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for type.

hasDefaultValue()

public boolean hasDefaultValue()

Optional. Default value of the variable as a string representation. Using google.protobuf.Value to allow for different types, though a string is common.

.google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the defaultValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDefaultValue(Value value)

public ModuleInput.Builder mergeDefaultValue(Value value)

Optional. Default value of the variable as a string representation. Using google.protobuf.Value to allow for different types, though a string is common.

.google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Value
Returns
Type Description
ModuleInput.Builder

mergeFrom(ModuleInput other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDefaultValue(Value value)

public ModuleInput.Builder setDefaultValue(Value value)

Optional. Default value of the variable as a string representation. Using google.protobuf.Value to allow for different types, though a string is common.

.google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Value
Returns
Type Description
ModuleInput.Builder

setDefaultValue(Value.Builder builderForValue)

public ModuleInput.Builder setDefaultValue(Value.Builder builderForValue)

Optional. Default value of the variable as a string representation. Using google.protobuf.Value to allow for different types, though a string is common.

.google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ModuleInput.Builder

setDescription(String value)

public ModuleInput.Builder setDescription(String value)

Optional. Description of the variable.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ModuleInput.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ModuleInput.Builder setDescriptionBytes(ByteString value)

Optional. Description of the variable.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ModuleInput.Builder

This builder for chaining.

setName(String value)

public ModuleInput.Builder setName(String value)

Optional. Name of the input variable.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ModuleInput.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ModuleInput.Builder setNameBytes(ByteString value)

Optional. Name of the input variable.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ModuleInput.Builder

This builder for chaining.

setRequired(boolean value)

public ModuleInput.Builder setRequired(boolean value)

Optional. Whether the input variable is required.

bool required = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The required to set.

Returns
Type Description
ModuleInput.Builder

This builder for chaining.

setType(String value)

public ModuleInput.Builder setType(String value)

Optional. Terraform type of the variable.

string type = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The type to set.

Returns
Type Description
ModuleInput.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public ModuleInput.Builder setTypeBytes(ByteString value)

Optional. Terraform type of the variable.

string type = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
ModuleInput.Builder

This builder for chaining.