- 3.80.0 (latest)
- 3.79.0
- 3.78.0
- 3.77.0
- 3.76.0
- 3.74.0
- 3.72.0
- 3.71.0
- 3.68.0
- 3.67.0
- 3.66.0
- 3.64.0
- 3.63.0
- 3.62.0
- 3.61.0
- 3.60.0
- 3.59.0
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.6
- 3.6.1
- 3.5.1
- 3.3.1
public static final class CustomerConstraints.Builder extends GeneratedMessageV3.Builder<CustomerConstraints.Builder> implements CustomerConstraintsOrBuilderRepresents constraints required to purchase the Offer for a customer.
Protobuf type google.cloud.channel.v1.CustomerConstraints
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CustomerConstraints.BuilderImplements
CustomerConstraintsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllAllowedCustomerTypes(Iterable<? extends CloudIdentityInfo.CustomerType> values)
public CustomerConstraints.Builder addAllAllowedCustomerTypes(Iterable<? extends CloudIdentityInfo.CustomerType> values)Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.channel.v1.CloudIdentityInfo.CustomerType>The allowedCustomerTypes to add. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
addAllAllowedCustomerTypesValue(Iterable<Integer> values)
public CustomerConstraints.Builder addAllAllowedCustomerTypesValue(Iterable<Integer> values)Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<Integer>The enum numeric values on the wire for allowedCustomerTypes to add. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
addAllAllowedRegions(Iterable<String> values)
public CustomerConstraints.Builder addAllAllowedRegions(Iterable<String> values)Allowed geographical regions of the customer.
repeated string allowed_regions = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The allowedRegions to add. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
addAllPromotionalOrderTypes(Iterable<? extends PromotionalOrderType> values)
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;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.channel.v1.PromotionalOrderType>The promotionalOrderTypes to add. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
addAllPromotionalOrderTypesValue(Iterable<Integer> values)
public CustomerConstraints.Builder addAllPromotionalOrderTypesValue(Iterable<Integer> values)Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<Integer>The enum numeric values on the wire for promotionalOrderTypes to add. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
addAllowedCustomerTypes(CloudIdentityInfo.CustomerType value)
public CustomerConstraints.Builder addAllowedCustomerTypes(CloudIdentityInfo.CustomerType value)Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
CloudIdentityInfo.CustomerTypeThe allowedCustomerTypes to add. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
addAllowedCustomerTypesValue(int value)
public CustomerConstraints.Builder addAllowedCustomerTypesValue(int value)Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for allowedCustomerTypes to add. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
addAllowedRegions(String value)
public CustomerConstraints.Builder addAllowedRegions(String value)Allowed geographical regions of the customer.
repeated string allowed_regions = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe allowedRegions to add. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
addAllowedRegionsBytes(ByteString value)
public CustomerConstraints.Builder addAllowedRegionsBytes(ByteString value)Allowed geographical regions of the customer.
repeated string allowed_regions = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the allowedRegions to add. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
addPromotionalOrderTypes(PromotionalOrderType value)
public CustomerConstraints.Builder addPromotionalOrderTypes(PromotionalOrderType value)Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
PromotionalOrderTypeThe promotionalOrderTypes to add. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
addPromotionalOrderTypesValue(int value)
public CustomerConstraints.Builder addPromotionalOrderTypesValue(int value)Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for promotionalOrderTypes to add. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomerConstraints.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
|
build()
public CustomerConstraints build()| Returns | |
|---|---|
| Type | Description |
CustomerConstraints |
|
buildPartial()
public CustomerConstraints buildPartial()| Returns | |
|---|---|
| Type | Description |
CustomerConstraints |
|
clear()
public CustomerConstraints.Builder clear()| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
|
clearAllowedCustomerTypes()
public CustomerConstraints.Builder clearAllowedCustomerTypes()Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
clearAllowedRegions()
public CustomerConstraints.Builder clearAllowedRegions()Allowed geographical regions of the customer.
repeated string allowed_regions = 1;
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CustomerConstraints.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomerConstraints.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
|
clearPromotionalOrderTypes()
public CustomerConstraints.Builder clearPromotionalOrderTypes()Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
clone()
public CustomerConstraints.Builder clone()| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
|
getAllowedCustomerTypes(int index)
public CloudIdentityInfo.CustomerType getAllowedCustomerTypes(int index)Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
CloudIdentityInfo.CustomerType |
The allowedCustomerTypes at the given index. |
getAllowedCustomerTypesCount()
public int getAllowedCustomerTypesCount()Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The count of allowedCustomerTypes. |
getAllowedCustomerTypesList()
public List<CloudIdentityInfo.CustomerType> getAllowedCustomerTypesList()Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
| Returns | |
|---|---|
| Type | Description |
List<CustomerType> |
A list containing the allowedCustomerTypes. |
getAllowedCustomerTypesValue(int index)
public int getAllowedCustomerTypesValue(int index)Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of allowedCustomerTypes at the given index. |
getAllowedCustomerTypesValueList()
public List<Integer> getAllowedCustomerTypesValueList()Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for allowedCustomerTypes. |
getAllowedRegions(int index)
public String getAllowedRegions(int index)Allowed geographical regions of the customer.
repeated string allowed_regions = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The allowedRegions at the given index. |
getAllowedRegionsBytes(int index)
public ByteString getAllowedRegionsBytes(int index)Allowed geographical regions of the customer.
repeated string allowed_regions = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the allowedRegions at the given index. |
getAllowedRegionsCount()
public int getAllowedRegionsCount()Allowed geographical regions of the customer.
repeated string allowed_regions = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The count of allowedRegions. |
getAllowedRegionsList()
public ProtocolStringList getAllowedRegionsList()Allowed geographical regions of the customer.
repeated string allowed_regions = 1;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the allowedRegions. |
getDefaultInstanceForType()
public CustomerConstraints getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CustomerConstraints |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPromotionalOrderTypes(int index)
public PromotionalOrderType getPromotionalOrderTypes(int index)Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
PromotionalOrderType |
The promotionalOrderTypes at the given index. |
getPromotionalOrderTypesCount()
public int getPromotionalOrderTypesCount()Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The count of promotionalOrderTypes. |
getPromotionalOrderTypesList()
public List<PromotionalOrderType> getPromotionalOrderTypesList()Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
| Returns | |
|---|---|
| Type | Description |
List<PromotionalOrderType> |
A list containing the promotionalOrderTypes. |
getPromotionalOrderTypesValue(int index)
public int getPromotionalOrderTypesValue(int index)Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of promotionalOrderTypes at the given index. |
getPromotionalOrderTypesValueList()
public List<Integer> getPromotionalOrderTypesValueList()Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for promotionalOrderTypes. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CustomerConstraints other)
public CustomerConstraints.Builder mergeFrom(CustomerConstraints other)| Parameter | |
|---|---|
| Name | Description |
other |
CustomerConstraints |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CustomerConstraints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CustomerConstraints.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomerConstraints.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
|
setAllowedCustomerTypes(int index, CloudIdentityInfo.CustomerType value)
public CustomerConstraints.Builder setAllowedCustomerTypes(int index, CloudIdentityInfo.CustomerType value)Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
CloudIdentityInfo.CustomerTypeThe allowedCustomerTypes to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
setAllowedCustomerTypesValue(int index, int value)
public CustomerConstraints.Builder setAllowedCustomerTypesValue(int index, int value)Allowed Customer Type.
repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for allowedCustomerTypes to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
setAllowedRegions(int index, String value)
public CustomerConstraints.Builder setAllowedRegions(int index, String value)Allowed geographical regions of the customer.
repeated string allowed_regions = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe allowedRegions to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CustomerConstraints.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
|
setPromotionalOrderTypes(int index, PromotionalOrderType value)
public CustomerConstraints.Builder setPromotionalOrderTypes(int index, PromotionalOrderType value)Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
PromotionalOrderTypeThe promotionalOrderTypes to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
setPromotionalOrderTypesValue(int index, int value)
public CustomerConstraints.Builder setPromotionalOrderTypesValue(int index, int value)Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for promotionalOrderTypes to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomerConstraints.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomerConstraints.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CustomerConstraints.Builder |
|