Class ParameterDefinition.Builder (3.57.0)

public static final class ParameterDefinition.Builder extends GeneratedMessageV3.Builder<ParameterDefinition.Builder> implements ParameterDefinitionOrBuilder

Parameter's definition. Specifies what parameter is required to use the current Offer to purchase.

Protobuf type google.cloud.channel.v1.ParameterDefinition

Static Methods

getDescriptor()

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

Methods

addAllAllowedValues(Iterable<? extends Value> values)

public ParameterDefinition.Builder addAllAllowedValues(Iterable<? extends Value> values)

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.channel.v1.Value>
Returns
Type Description
ParameterDefinition.Builder

addAllowedValues(Value value)

public ParameterDefinition.Builder addAllowedValues(Value value)

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Parameter
Name Description
value Value
Returns
Type Description
ParameterDefinition.Builder

addAllowedValues(Value.Builder builderForValue)

public ParameterDefinition.Builder addAllowedValues(Value.Builder builderForValue)

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Parameter
Name Description
builderForValue Value.Builder
Returns
Type Description
ParameterDefinition.Builder

addAllowedValues(int index, Value value)

public ParameterDefinition.Builder addAllowedValues(int index, Value value)

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Parameters
Name Description
index int
value Value
Returns
Type Description
ParameterDefinition.Builder

addAllowedValues(int index, Value.Builder builderForValue)

public ParameterDefinition.Builder addAllowedValues(int index, Value.Builder builderForValue)

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Parameters
Name Description
index int
builderForValue Value.Builder
Returns
Type Description
ParameterDefinition.Builder

addAllowedValuesBuilder()

public Value.Builder addAllowedValuesBuilder()

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Returns
Type Description
Value.Builder

addAllowedValuesBuilder(int index)

public Value.Builder addAllowedValuesBuilder(int index)

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Parameter
Name Description
index int
Returns
Type Description
Value.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ParameterDefinition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ParameterDefinition.Builder
Overrides

build()

public ParameterDefinition build()
Returns
Type Description
ParameterDefinition

buildPartial()

public ParameterDefinition buildPartial()
Returns
Type Description
ParameterDefinition

clear()

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

clearAllowedValues()

public ParameterDefinition.Builder clearAllowedValues()

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Returns
Type Description
ParameterDefinition.Builder

clearField(Descriptors.FieldDescriptor field)

public ParameterDefinition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ParameterDefinition.Builder
Overrides

clearMaxValue()

public ParameterDefinition.Builder clearMaxValue()

Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value max_value = 4;

Returns
Type Description
ParameterDefinition.Builder

clearMinValue()

public ParameterDefinition.Builder clearMinValue()

Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value min_value = 3;

Returns
Type Description
ParameterDefinition.Builder

clearName()

public ParameterDefinition.Builder clearName()

Name of the parameter.

string name = 1;

Returns
Type Description
ParameterDefinition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ParameterDefinition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ParameterDefinition.Builder
Overrides

clearOptional()

public ParameterDefinition.Builder clearOptional()

If set to true, parameter is optional to purchase this Offer.

bool optional = 6;

Returns
Type Description
ParameterDefinition.Builder

This builder for chaining.

clearParameterType()

public ParameterDefinition.Builder clearParameterType()

Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here.

.google.cloud.channel.v1.ParameterDefinition.ParameterType parameter_type = 2;

Returns
Type Description
ParameterDefinition.Builder

This builder for chaining.

clone()

public ParameterDefinition.Builder clone()
Returns
Type Description
ParameterDefinition.Builder
Overrides

getAllowedValues(int index)

public Value getAllowedValues(int index)

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Parameter
Name Description
index int
Returns
Type Description
Value

getAllowedValuesBuilder(int index)

public Value.Builder getAllowedValuesBuilder(int index)

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Parameter
Name Description
index int
Returns
Type Description
Value.Builder

getAllowedValuesBuilderList()

public List<Value.Builder> getAllowedValuesBuilderList()

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Returns
Type Description
List<Builder>

getAllowedValuesCount()

public int getAllowedValuesCount()

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Returns
Type Description
int

getAllowedValuesList()

public List<Value> getAllowedValuesList()

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Returns
Type Description
List<Value>

getAllowedValuesOrBuilder(int index)

public ValueOrBuilder getAllowedValuesOrBuilder(int index)

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Parameter
Name Description
index int
Returns
Type Description
ValueOrBuilder

getAllowedValuesOrBuilderList()

public List<? extends ValueOrBuilder> getAllowedValuesOrBuilderList()

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Returns
Type Description
List<? extends com.google.cloud.channel.v1.ValueOrBuilder>

getDefaultInstanceForType()

public ParameterDefinition getDefaultInstanceForType()
Returns
Type Description
ParameterDefinition

getDescriptorForType()

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

getMaxValue()

public Value getMaxValue()

Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value max_value = 4;

Returns
Type Description
Value

The maxValue.

getMaxValueBuilder()

public Value.Builder getMaxValueBuilder()

Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value max_value = 4;

Returns
Type Description
Value.Builder

getMaxValueOrBuilder()

public ValueOrBuilder getMaxValueOrBuilder()

Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value max_value = 4;

Returns
Type Description
ValueOrBuilder

getMinValue()

public Value getMinValue()

Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value min_value = 3;

Returns
Type Description
Value

The minValue.

getMinValueBuilder()

public Value.Builder getMinValueBuilder()

Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value min_value = 3;

Returns
Type Description
Value.Builder

getMinValueOrBuilder()

public ValueOrBuilder getMinValueOrBuilder()

Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value min_value = 3;

Returns
Type Description
ValueOrBuilder

getName()

public String getName()

Name of the parameter.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the parameter.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getOptional()

public boolean getOptional()

If set to true, parameter is optional to purchase this Offer.

bool optional = 6;

Returns
Type Description
boolean

The optional.

getParameterType()

public ParameterDefinition.ParameterType getParameterType()

Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here.

.google.cloud.channel.v1.ParameterDefinition.ParameterType parameter_type = 2;

Returns
Type Description
ParameterDefinition.ParameterType

The parameterType.

getParameterTypeValue()

public int getParameterTypeValue()

Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here.

.google.cloud.channel.v1.ParameterDefinition.ParameterType parameter_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for parameterType.

hasMaxValue()

public boolean hasMaxValue()

Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value max_value = 4;

Returns
Type Description
boolean

Whether the maxValue field is set.

hasMinValue()

public boolean hasMinValue()

Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value min_value = 3;

Returns
Type Description
boolean

Whether the minValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ParameterDefinition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMaxValue(Value value)

public ParameterDefinition.Builder mergeMaxValue(Value value)

Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value max_value = 4;

Parameter
Name Description
value Value
Returns
Type Description
ParameterDefinition.Builder

mergeMinValue(Value value)

public ParameterDefinition.Builder mergeMinValue(Value value)

Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value min_value = 3;

Parameter
Name Description
value Value
Returns
Type Description
ParameterDefinition.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ParameterDefinition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ParameterDefinition.Builder
Overrides

removeAllowedValues(int index)

public ParameterDefinition.Builder removeAllowedValues(int index)

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Parameter
Name Description
index int
Returns
Type Description
ParameterDefinition.Builder

setAllowedValues(int index, Value value)

public ParameterDefinition.Builder setAllowedValues(int index, Value value)

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Parameters
Name Description
index int
value Value
Returns
Type Description
ParameterDefinition.Builder

setAllowedValues(int index, Value.Builder builderForValue)

public ParameterDefinition.Builder setAllowedValues(int index, Value.Builder builderForValue)

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.

repeated .google.cloud.channel.v1.Value allowed_values = 5;

Parameters
Name Description
index int
builderForValue Value.Builder
Returns
Type Description
ParameterDefinition.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ParameterDefinition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ParameterDefinition.Builder
Overrides

setMaxValue(Value value)

public ParameterDefinition.Builder setMaxValue(Value value)

Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value max_value = 4;

Parameter
Name Description
value Value
Returns
Type Description
ParameterDefinition.Builder

setMaxValue(Value.Builder builderForValue)

public ParameterDefinition.Builder setMaxValue(Value.Builder builderForValue)

Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value max_value = 4;

Parameter
Name Description
builderForValue Value.Builder
Returns
Type Description
ParameterDefinition.Builder

setMinValue(Value value)

public ParameterDefinition.Builder setMinValue(Value value)

Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value min_value = 3;

Parameter
Name Description
value Value
Returns
Type Description
ParameterDefinition.Builder

setMinValue(Value.Builder builderForValue)

public ParameterDefinition.Builder setMinValue(Value.Builder builderForValue)

Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.

.google.cloud.channel.v1.Value min_value = 3;

Parameter
Name Description
builderForValue Value.Builder
Returns
Type Description
ParameterDefinition.Builder

setName(String value)

public ParameterDefinition.Builder setName(String value)

Name of the parameter.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ParameterDefinition.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ParameterDefinition.Builder setNameBytes(ByteString value)

Name of the parameter.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ParameterDefinition.Builder

This builder for chaining.

setOptional(boolean value)

public ParameterDefinition.Builder setOptional(boolean value)

If set to true, parameter is optional to purchase this Offer.

bool optional = 6;

Parameter
Name Description
value boolean

The optional to set.

Returns
Type Description
ParameterDefinition.Builder

This builder for chaining.

setParameterType(ParameterDefinition.ParameterType value)

public ParameterDefinition.Builder setParameterType(ParameterDefinition.ParameterType value)

Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here.

.google.cloud.channel.v1.ParameterDefinition.ParameterType parameter_type = 2;

Parameter
Name Description
value ParameterDefinition.ParameterType

The parameterType to set.

Returns
Type Description
ParameterDefinition.Builder

This builder for chaining.

setParameterTypeValue(int value)

public ParameterDefinition.Builder setParameterTypeValue(int value)

Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here.

.google.cloud.channel.v1.ParameterDefinition.ParameterType parameter_type = 2;

Parameter
Name Description
value int

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

Returns
Type Description
ParameterDefinition.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ParameterDefinition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ParameterDefinition.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ParameterDefinition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ParameterDefinition.Builder
Overrides