Class ParameterSpec.Builder (0.3.0)

public static final class ParameterSpec.Builder extends GeneratedMessage.Builder<ParameterSpec.Builder> implements ParameterSpecOrBuilder

The specification of a parameter that can be configured on a cloud control or a framework.

Protobuf type google.cloud.designcenter.v1.ParameterSpec

Static Methods

getDescriptor()

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

Methods

addAllSubParameterSpecs(Iterable<? extends ParameterSpec> values)

public ParameterSpec.Builder addAllSubParameterSpecs(Iterable<? extends ParameterSpec> values)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.designcenter.v1.ParameterSpec>
Returns
Type Description
ParameterSpec.Builder

addSubParameterSpecs(ParameterSpec value)

public ParameterSpec.Builder addSubParameterSpecs(ParameterSpec value)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ParameterSpec
Returns
Type Description
ParameterSpec.Builder

addSubParameterSpecs(ParameterSpec.Builder builderForValue)

public ParameterSpec.Builder addSubParameterSpecs(ParameterSpec.Builder builderForValue)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ParameterSpec.Builder
Returns
Type Description
ParameterSpec.Builder

addSubParameterSpecs(int index, ParameterSpec value)

public ParameterSpec.Builder addSubParameterSpecs(int index, ParameterSpec value)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ParameterSpec
Returns
Type Description
ParameterSpec.Builder

addSubParameterSpecs(int index, ParameterSpec.Builder builderForValue)

public ParameterSpec.Builder addSubParameterSpecs(int index, ParameterSpec.Builder builderForValue)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ParameterSpec.Builder
Returns
Type Description
ParameterSpec.Builder

addSubParameterSpecsBuilder()

public ParameterSpec.Builder addSubParameterSpecsBuilder()

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ParameterSpec.Builder

addSubParameterSpecsBuilder(int index)

public ParameterSpec.Builder addSubParameterSpecsBuilder(int index)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ParameterSpec.Builder

build()

public ParameterSpec build()
Returns
Type Description
ParameterSpec

buildPartial()

public ParameterSpec buildPartial()
Returns
Type Description
ParameterSpec

clear()

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

clearDefaultValue()

public ParameterSpec.Builder clearDefaultValue()

Optional. The default value of the parameter, used when the user does not provide one.

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

Returns
Type Description
ParameterSpec.Builder

clearDescription()

public ParameterSpec.Builder clearDescription()

Optional. The parameter description.

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

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.

clearDisplayName()

public ParameterSpec.Builder clearDisplayName()

Optional. The parameter display name, which is a user friendly name used for UI.

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

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.

clearKey()

public ParameterSpec.Builder clearKey()

Required. The key of the parameter, matching Parameter.key of the value supplied for it.

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

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.

clearRequired()

public ParameterSpec.Builder clearRequired()

Optional. Whether a value must be provided for the parameter.

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

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.

clearSubParameterSpecs()

public ParameterSpec.Builder clearSubParameterSpecs()

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ParameterSpec.Builder

clearValueType()

public ParameterSpec.Builder clearValueType()

Optional. The type of value that the parameter accepts.

.google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.

getDefaultInstanceForType()

public ParameterSpec getDefaultInstanceForType()
Returns
Type Description
ParameterSpec

getDefaultValue()

public Value getDefaultValue()

Optional. The default value of the parameter, used when the user does not provide one.

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

Returns
Type Description
Value

The defaultValue.

getDefaultValueBuilder()

public Value.Builder getDefaultValueBuilder()

Optional. The default value of the parameter, used when the user does not provide one.

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

Returns
Type Description
Builder

getDefaultValueOrBuilder()

public ValueOrBuilder getDefaultValueOrBuilder()

Optional. The default value of the parameter, used when the user does not provide one.

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

Returns
Type Description
ValueOrBuilder

getDescription()

public String getDescription()

Optional. The parameter description.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The parameter description.

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

getDisplayName()

public String getDisplayName()

Optional. The parameter display name, which is a user friendly name used for UI.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. The parameter display name, which is a user friendly name used for UI.

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

Returns
Type Description
ByteString

The bytes for displayName.

getKey()

public String getKey()

Required. The key of the parameter, matching Parameter.key of the value supplied for it.

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

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. The key of the parameter, matching Parameter.key of the value supplied for it.

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

Returns
Type Description
ByteString

The bytes for key.

getRequired()

public boolean getRequired()

Optional. Whether a value must be provided for the parameter.

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

Returns
Type Description
boolean

The required.

getSubParameterSpecs(int index)

public ParameterSpec getSubParameterSpecs(int index)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ParameterSpec

getSubParameterSpecsBuilder(int index)

public ParameterSpec.Builder getSubParameterSpecsBuilder(int index)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ParameterSpec.Builder

getSubParameterSpecsBuilderList()

public List<ParameterSpec.Builder> getSubParameterSpecsBuilderList()

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getSubParameterSpecsCount()

public int getSubParameterSpecsCount()

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSubParameterSpecsList()

public List<ParameterSpec> getSubParameterSpecsList()

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ParameterSpec>

getSubParameterSpecsOrBuilder(int index)

public ParameterSpecOrBuilder getSubParameterSpecsOrBuilder(int index)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ParameterSpecOrBuilder

getSubParameterSpecsOrBuilderList()

public List<? extends ParameterSpecOrBuilder> getSubParameterSpecsOrBuilderList()

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.designcenter.v1.ParameterSpecOrBuilder>

getValueType()

public ParameterSpec.ValueType getValueType()

Optional. The type of value that the parameter accepts.

.google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ParameterSpec.ValueType

The valueType.

getValueTypeValue()

public int getValueTypeValue()

Optional. The type of value that the parameter accepts.

.google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for valueType.

hasDefaultValue()

public boolean hasDefaultValue()

Optional. The default value of the parameter, used when the user does not provide one.

.google.protobuf.Value default_value = 6 [(.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 ParameterSpec.Builder mergeDefaultValue(Value value)

Optional. The default value of the parameter, used when the user does not provide one.

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

Parameter
Name Description
value Value
Returns
Type Description
ParameterSpec.Builder

mergeFrom(ParameterSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeSubParameterSpecs(int index)

public ParameterSpec.Builder removeSubParameterSpecs(int index)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ParameterSpec.Builder

setDefaultValue(Value value)

public ParameterSpec.Builder setDefaultValue(Value value)

Optional. The default value of the parameter, used when the user does not provide one.

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

Parameter
Name Description
value Value
Returns
Type Description
ParameterSpec.Builder

setDefaultValue(Value.Builder builderForValue)

public ParameterSpec.Builder setDefaultValue(Value.Builder builderForValue)

Optional. The default value of the parameter, used when the user does not provide one.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ParameterSpec.Builder

setDescription(String value)

public ParameterSpec.Builder setDescription(String value)

Optional. The parameter description.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ParameterSpec.Builder setDescriptionBytes(ByteString value)

Optional. The parameter description.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.

setDisplayName(String value)

public ParameterSpec.Builder setDisplayName(String value)

Optional. The parameter display name, which is a user friendly name used for UI.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ParameterSpec.Builder setDisplayNameBytes(ByteString value)

Optional. The parameter display name, which is a user friendly name used for UI.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.

setKey(String value)

public ParameterSpec.Builder setKey(String value)

Required. The key of the parameter, matching Parameter.key of the value supplied for it.

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

Parameter
Name Description
value String

The key to set.

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public ParameterSpec.Builder setKeyBytes(ByteString value)

Required. The key of the parameter, matching Parameter.key of the value supplied for it.

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

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.

setRequired(boolean value)

public ParameterSpec.Builder setRequired(boolean value)

Optional. Whether a value must be provided for the parameter.

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

Parameter
Name Description
value boolean

The required to set.

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.

setSubParameterSpecs(int index, ParameterSpec value)

public ParameterSpec.Builder setSubParameterSpecs(int index, ParameterSpec value)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ParameterSpec
Returns
Type Description
ParameterSpec.Builder

setSubParameterSpecs(int index, ParameterSpec.Builder builderForValue)

public ParameterSpec.Builder setSubParameterSpecs(int index, ParameterSpec.Builder builderForValue)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ParameterSpec.Builder
Returns
Type Description
ParameterSpec.Builder

setValueType(ParameterSpec.ValueType value)

public ParameterSpec.Builder setValueType(ParameterSpec.ValueType value)

Optional. The type of value that the parameter accepts.

.google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ParameterSpec.ValueType

The valueType to set.

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.

setValueTypeValue(int value)

public ParameterSpec.Builder setValueTypeValue(int value)

Optional. The type of value that the parameter accepts.

.google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for valueType to set.

Returns
Type Description
ParameterSpec.Builder

This builder for chaining.