Package com.google.cloud.channel.v1
Class CustomerConstraints.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomerConstraints.Builder>
com.google.cloud.channel.v1.CustomerConstraints.Builder
- All Implemented Interfaces:
CustomerConstraintsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CustomerConstraints
public static final class CustomerConstraints.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CustomerConstraints.Builder>
implements CustomerConstraintsOrBuilder
Represents constraints required to purchase the Offer for a customer.Protobuf type
google.cloud.channel.v1.CustomerConstraints-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowedCustomerTypes(Iterable<? extends CloudIdentityInfo.CustomerType> values) Allowed Customer Type.Allowed Customer Type.addAllAllowedRegions(Iterable<String> values) Allowed geographical regions of the customer.Allowed Customer Type.addAllowedCustomerTypesValue(int value) Allowed Customer Type.addAllowedRegions(String value) Allowed geographical regions of the customer.addAllowedRegionsBytes(com.google.protobuf.ByteString value) Allowed geographical regions of the customer.addAllPromotionalOrderTypes(Iterable<? extends PromotionalOrderType> values) Allowed Promotional Order Type.Allowed Promotional Order Type.Allowed Promotional Order Type.addPromotionalOrderTypesValue(int value) Allowed Promotional Order Type.build()clear()Allowed Customer Type.Allowed geographical regions of the customer.Allowed Promotional Order Type.getAllowedCustomerTypes(int index) Allowed Customer Type.intAllowed Customer Type.Allowed Customer Type.intgetAllowedCustomerTypesValue(int index) Allowed Customer Type.Allowed Customer Type.getAllowedRegions(int index) Allowed geographical regions of the customer.com.google.protobuf.ByteStringgetAllowedRegionsBytes(int index) Allowed geographical regions of the customer.intAllowed geographical regions of the customer.com.google.protobuf.ProtocolStringListAllowed geographical regions of the customer.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPromotionalOrderTypes(int index) Allowed Promotional Order Type.intAllowed Promotional Order Type.Allowed Promotional Order Type.intgetPromotionalOrderTypesValue(int index) Allowed Promotional Order Type.Allowed Promotional Order Type.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CustomerConstraints other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAllowedCustomerTypes(int index, CloudIdentityInfo.CustomerType value) Allowed Customer Type.setAllowedCustomerTypesValue(int index, int value) Allowed Customer Type.setAllowedRegions(int index, String value) Allowed geographical regions of the customer.setPromotionalOrderTypes(int index, PromotionalOrderType value) Allowed Promotional Order Type.setPromotionalOrderTypesValue(int index, int value) Allowed Promotional Order Type.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<CustomerConstraints.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<CustomerConstraints.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<CustomerConstraints.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<CustomerConstraints.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CustomerConstraints.Builder>
-
mergeFrom
public CustomerConstraints.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<CustomerConstraints.Builder>- Throws:
IOException
-
getAllowedRegionsList
public com.google.protobuf.ProtocolStringList getAllowedRegionsList()Allowed geographical regions of the customer.
repeated string allowed_regions = 1;- Specified by:
getAllowedRegionsListin interfaceCustomerConstraintsOrBuilder- Returns:
- A list containing the allowedRegions.
-
getAllowedRegionsCount
public int getAllowedRegionsCount()Allowed geographical regions of the customer.
repeated string allowed_regions = 1;- Specified by:
getAllowedRegionsCountin interfaceCustomerConstraintsOrBuilder- Returns:
- The count of allowedRegions.
-
getAllowedRegions
Allowed geographical regions of the customer.
repeated string allowed_regions = 1;- Specified by:
getAllowedRegionsin interfaceCustomerConstraintsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedRegions at the given index.
-
getAllowedRegionsBytes
public com.google.protobuf.ByteString getAllowedRegionsBytes(int index) Allowed geographical regions of the customer.
repeated string allowed_regions = 1;- Specified by:
getAllowedRegionsBytesin interfaceCustomerConstraintsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowedRegions at the given index.
-
setAllowedRegions
Allowed geographical regions of the customer.
repeated string allowed_regions = 1;- Parameters:
index- The index to set the value at.value- The allowedRegions to set.- Returns:
- This builder for chaining.
-
addAllowedRegions
Allowed geographical regions of the customer.
repeated string allowed_regions = 1;- Parameters:
value- The allowedRegions to add.- Returns:
- This builder for chaining.
-
addAllAllowedRegions
Allowed geographical regions of the customer.
repeated string allowed_regions = 1;- Parameters:
values- The allowedRegions to add.- Returns:
- This builder for chaining.
-
clearAllowedRegions
Allowed geographical regions of the customer.
repeated string allowed_regions = 1;- Returns:
- This builder for chaining.
-
addAllowedRegionsBytes
Allowed geographical regions of the customer.
repeated string allowed_regions = 1;- Parameters:
value- The bytes of the allowedRegions to add.- Returns:
- This builder for chaining.
-
getAllowedCustomerTypesList
Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;- Specified by:
getAllowedCustomerTypesListin interfaceCustomerConstraintsOrBuilder- Returns:
- A list containing the allowedCustomerTypes.
-
getAllowedCustomerTypesCount
public int getAllowedCustomerTypesCount()Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;- Specified by:
getAllowedCustomerTypesCountin interfaceCustomerConstraintsOrBuilder- Returns:
- The count of allowedCustomerTypes.
-
getAllowedCustomerTypes
Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;- Specified by:
getAllowedCustomerTypesin interfaceCustomerConstraintsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedCustomerTypes at the given index.
-
setAllowedCustomerTypes
public CustomerConstraints.Builder setAllowedCustomerTypes(int index, CloudIdentityInfo.CustomerType value) Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;- Parameters:
index- The index to set the value at.value- The allowedCustomerTypes to set.- Returns:
- This builder for chaining.
-
addAllowedCustomerTypes
Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;- Parameters:
value- The allowedCustomerTypes to add.- Returns:
- This builder for chaining.
-
addAllAllowedCustomerTypes
public CustomerConstraints.Builder addAllAllowedCustomerTypes(Iterable<? extends CloudIdentityInfo.CustomerType> values) Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;- Parameters:
values- The allowedCustomerTypes to add.- Returns:
- This builder for chaining.
-
clearAllowedCustomerTypes
Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;- Returns:
- This builder for chaining.
-
getAllowedCustomerTypesValueList
Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;- Specified by:
getAllowedCustomerTypesValueListin interfaceCustomerConstraintsOrBuilder- Returns:
- A list containing the enum numeric values on the wire for allowedCustomerTypes.
-
getAllowedCustomerTypesValue
public int getAllowedCustomerTypesValue(int index) Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;- Specified by:
getAllowedCustomerTypesValuein interfaceCustomerConstraintsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of allowedCustomerTypes at the given index.
-
setAllowedCustomerTypesValue
Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for allowedCustomerTypes to set.- Returns:
- This builder for chaining.
-
addAllowedCustomerTypesValue
Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;- Parameters:
value- The enum numeric value on the wire for allowedCustomerTypes to add.- Returns:
- This builder for chaining.
-
addAllAllowedCustomerTypesValue
Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;- Parameters:
values- The enum numeric values on the wire for allowedCustomerTypes to add.- Returns:
- This builder for chaining.
-
getPromotionalOrderTypesList
Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;- Specified by:
getPromotionalOrderTypesListin interfaceCustomerConstraintsOrBuilder- Returns:
- A list containing the promotionalOrderTypes.
-
getPromotionalOrderTypesCount
public int getPromotionalOrderTypesCount()Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;- Specified by:
getPromotionalOrderTypesCountin interfaceCustomerConstraintsOrBuilder- Returns:
- The count of promotionalOrderTypes.
-
getPromotionalOrderTypes
Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;- Specified by:
getPromotionalOrderTypesin interfaceCustomerConstraintsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The promotionalOrderTypes at the given index.
-
setPromotionalOrderTypes
Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;- Parameters:
index- The index to set the value at.value- The promotionalOrderTypes to set.- Returns:
- This builder for chaining.
-
addPromotionalOrderTypes
Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;- Parameters:
value- The promotionalOrderTypes to add.- Returns:
- This builder for chaining.
-
addAllPromotionalOrderTypes
public CustomerConstraints.Builder addAllPromotionalOrderTypes(Iterable<? extends PromotionalOrderType> values) Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;- Parameters:
values- The promotionalOrderTypes to add.- Returns:
- This builder for chaining.
-
clearPromotionalOrderTypes
Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;- Returns:
- This builder for chaining.
-
getPromotionalOrderTypesValueList
Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;- Specified by:
getPromotionalOrderTypesValueListin interfaceCustomerConstraintsOrBuilder- Returns:
- A list containing the enum numeric values on the wire for promotionalOrderTypes.
-
getPromotionalOrderTypesValue
public int getPromotionalOrderTypesValue(int index) Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;- Specified by:
getPromotionalOrderTypesValuein interfaceCustomerConstraintsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of promotionalOrderTypes at the given index.
-
setPromotionalOrderTypesValue
Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for promotionalOrderTypes to set.- Returns:
- This builder for chaining.
-
addPromotionalOrderTypesValue
Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;- Parameters:
value- The enum numeric value on the wire for promotionalOrderTypes to add.- Returns:
- This builder for chaining.
-
addAllPromotionalOrderTypesValue
Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;- Parameters:
values- The enum numeric values on the wire for promotionalOrderTypes to add.- Returns:
- This builder for chaining.
-