Class ParameterDefinition.Builder (3.11.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.channel.v1.Value>
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
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
NameDescription
builderForValueValue.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueValue
Returns
TypeDescription
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
NameDescription
indexint
builderForValueValue.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Value.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ParameterDefinition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ParameterDefinition.Builder
Overrides

build()

public ParameterDefinition build()
Returns
TypeDescription
ParameterDefinition

buildPartial()

public ParameterDefinition buildPartial()
Returns
TypeDescription
ParameterDefinition

clear()

public ParameterDefinition.Builder clear()
Returns
TypeDescription
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
TypeDescription
ParameterDefinition.Builder

clearField(Descriptors.FieldDescriptor field)

public ParameterDefinition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ParameterDefinition.Builder

clearName()

public ParameterDefinition.Builder clearName()

Name of the parameter.

string name = 1;

Returns
TypeDescription
ParameterDefinition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ParameterDefinition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ParameterDefinition.Builder
Overrides

clearOptional()

public ParameterDefinition.Builder clearOptional()

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

bool optional = 6;

Returns
TypeDescription
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
TypeDescription
ParameterDefinition.Builder

This builder for chaining.

clone()

public ParameterDefinition.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.channel.v1.ValueOrBuilder>

getDefaultInstanceForType()

public ParameterDefinition getDefaultInstanceForType()
Returns
TypeDescription
ParameterDefinition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ValueOrBuilder

getName()

public String getName()

Name of the parameter.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the parameter.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getOptional()

public boolean getOptional()

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

bool optional = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the minValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ParameterDefinition other)

public ParameterDefinition.Builder mergeFrom(ParameterDefinition other)
Parameter
NameDescription
otherParameterDefinition
Returns
TypeDescription
ParameterDefinition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ParameterDefinition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ParameterDefinition.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ParameterDefinition.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
ParameterDefinition.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ParameterDefinition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueValue
Returns
TypeDescription
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
NameDescription
indexint
builderForValueValue.Builder
Returns
TypeDescription
ParameterDefinition.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ParameterDefinition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
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
NameDescription
builderForValueValue.Builder
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
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
NameDescription
builderForValueValue.Builder
Returns
TypeDescription
ParameterDefinition.Builder

setName(String value)

public ParameterDefinition.Builder setName(String value)

Name of the parameter.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ParameterDefinition.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ParameterDefinition.Builder setNameBytes(ByteString value)

Name of the parameter.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The optional to set.

Returns
TypeDescription
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
NameDescription
valueParameterDefinition.ParameterType

The parameterType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ParameterDefinition.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ParameterDefinition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ParameterDefinition.Builder
Overrides