Package com.google.cloud.channel.v1
Class ParameterDefinition.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ParameterDefinition.Builder>
com.google.cloud.channel.v1.ParameterDefinition.Builder
- All Implemented Interfaces:
ParameterDefinitionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ParameterDefinition
public static final class ParameterDefinition.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowedValues(Iterable<? extends Value> values) If not empty, parameter values must be drawn from this list.addAllowedValues(int index, Value value) If not empty, parameter values must be drawn from this list.addAllowedValues(int index, Value.Builder builderForValue) If not empty, parameter values must be drawn from this list.addAllowedValues(Value value) If not empty, parameter values must be drawn from this list.addAllowedValues(Value.Builder builderForValue) If not empty, parameter values must be drawn from this list.If not empty, parameter values must be drawn from this list.addAllowedValuesBuilder(int index) If not empty, parameter values must be drawn from this list.build()clear()If not empty, parameter values must be drawn from this list.Maximum value of the parameter, if applicable.Minimal value of the parameter, if applicable.Name of the parameter.If set to true, parameter is optional to purchase this Offer.Data type of the parameter.getAllowedValues(int index) If not empty, parameter values must be drawn from this list.getAllowedValuesBuilder(int index) If not empty, parameter values must be drawn from this list.If not empty, parameter values must be drawn from this list.intIf not empty, parameter values must be drawn from this list.If not empty, parameter values must be drawn from this list.getAllowedValuesOrBuilder(int index) If not empty, parameter values must be drawn from this list.List<? extends ValueOrBuilder>If not empty, parameter values must be drawn from this list.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorMaximum value of the parameter, if applicable.Maximum value of the parameter, if applicable.Maximum value of the parameter, if applicable.Minimal value of the parameter, if applicable.Minimal value of the parameter, if applicable.Minimal value of the parameter, if applicable.getName()Name of the parameter.com.google.protobuf.ByteStringName of the parameter.booleanIf set to true, parameter is optional to purchase this Offer.Data type of the parameter.intData type of the parameter.booleanMaximum value of the parameter, if applicable.booleanMinimal value of the parameter, if applicable.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ParameterDefinition other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaxValue(Value value) Maximum value of the parameter, if applicable.mergeMinValue(Value value) Minimal value of the parameter, if applicable.removeAllowedValues(int index) If not empty, parameter values must be drawn from this list.setAllowedValues(int index, Value value) If not empty, parameter values must be drawn from this list.setAllowedValues(int index, Value.Builder builderForValue) If not empty, parameter values must be drawn from this list.setMaxValue(Value value) Maximum value of the parameter, if applicable.setMaxValue(Value.Builder builderForValue) Maximum value of the parameter, if applicable.setMinValue(Value value) Minimal value of the parameter, if applicable.setMinValue(Value.Builder builderForValue) Minimal value of the parameter, if applicable.Name of the parameter.setNameBytes(com.google.protobuf.ByteString value) Name of the parameter.setOptional(boolean value) If set to true, parameter is optional to purchase this Offer.Data type of the parameter.setParameterTypeValue(int value) Data type of the parameter.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ParameterDefinition.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ParameterDefinition.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ParameterDefinition.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ParameterDefinition.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ParameterDefinition.Builder>
-
mergeFrom
public ParameterDefinition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ParameterDefinition.Builder>- Throws:
IOException
-
getName
Name of the parameter.
string name = 1;- Specified by:
getNamein interfaceParameterDefinitionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the parameter.
string name = 1;- Specified by:
getNameBytesin interfaceParameterDefinitionOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the parameter.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the parameter.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the parameter.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getParameterTypeValuein interfaceParameterDefinitionOrBuilder- Returns:
- The enum numeric value on the wire for parameterType.
-
setParameterTypeValue
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;- Parameters:
value- The enum numeric value on the wire for parameterType to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getParameterTypein interfaceParameterDefinitionOrBuilder- Returns:
- The parameterType.
-
setParameterType
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;- Parameters:
value- The parameterType to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
hasMinValuein interfaceParameterDefinitionOrBuilder- Returns:
- Whether the minValue field is set.
-
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;- Specified by:
getMinValuein interfaceParameterDefinitionOrBuilder- Returns:
- The minValue.
-
setMinValue
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; -
setMinValue
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; -
mergeMinValue
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; -
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; -
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; -
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;- Specified by:
getMinValueOrBuilderin interfaceParameterDefinitionOrBuilder
-
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;- Specified by:
hasMaxValuein interfaceParameterDefinitionOrBuilder- Returns:
- Whether the maxValue field is set.
-
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;- Specified by:
getMaxValuein interfaceParameterDefinitionOrBuilder- Returns:
- The maxValue.
-
setMaxValue
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; -
setMaxValue
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; -
mergeMaxValue
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; -
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; -
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; -
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;- Specified by:
getMaxValueOrBuilderin interfaceParameterDefinitionOrBuilder
-
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;- Specified by:
getAllowedValuesListin interfaceParameterDefinitionOrBuilder
-
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;- Specified by:
getAllowedValuesCountin interfaceParameterDefinitionOrBuilder
-
getAllowedValues
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;- Specified by:
getAllowedValuesin interfaceParameterDefinitionOrBuilder
-
setAllowedValues
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; -
setAllowedValues
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; -
addAllowedValues
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; -
addAllowedValues
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; -
addAllowedValues
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; -
addAllowedValues
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; -
addAllAllowedValues
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; -
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; -
removeAllowedValues
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; -
getAllowedValuesBuilder
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; -
getAllowedValuesOrBuilder
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;- Specified by:
getAllowedValuesOrBuilderin interfaceParameterDefinitionOrBuilder
-
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;- Specified by:
getAllowedValuesOrBuilderListin interfaceParameterDefinitionOrBuilder
-
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; -
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; -
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; -
getOptional
public boolean getOptional()If set to true, parameter is optional to purchase this Offer.
bool optional = 6;- Specified by:
getOptionalin interfaceParameterDefinitionOrBuilder- Returns:
- The optional.
-
setOptional
If set to true, parameter is optional to purchase this Offer.
bool optional = 6;- Parameters:
value- The optional to set.- Returns:
- This builder for chaining.
-
clearOptional
If set to true, parameter is optional to purchase this Offer.
bool optional = 6;- Returns:
- This builder for chaining.
-