public final class CustomerConstraints extends GeneratedMessageV3 implements CustomerConstraintsOrBuilder
Represents constraints required to purchase the Offer for a customer.
Protobuf type google.cloud.channel.v1.CustomerConstraints
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
ALLOWED_CUSTOMER_TYPES_FIELD_NUMBER
public static final int ALLOWED_CUSTOMER_TYPES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ALLOWED_REGIONS_FIELD_NUMBER
public static final int ALLOWED_REGIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int PROMOTIONAL_ORDER_TYPES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static CustomerConstraints getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CustomerConstraints.Builder newBuilder()
newBuilder(CustomerConstraints prototype)
public static CustomerConstraints.Builder newBuilder(CustomerConstraints prototype)
public static CustomerConstraints parseDelimitedFrom(InputStream input)
public static CustomerConstraints parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CustomerConstraints parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CustomerConstraints parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CustomerConstraints parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomerConstraints parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomerConstraints parseFrom(CodedInputStream input)
public static CustomerConstraints parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CustomerConstraints parseFrom(InputStream input)
public static CustomerConstraints parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CustomerConstraints parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CustomerConstraints parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CustomerConstraints> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
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 | int
The index of the element to return.
|
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 | int
The 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 | int
The 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 | int
The 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;
getDefaultInstanceForType()
public CustomerConstraints getDefaultInstanceForType()
getParserForType()
public Parser<CustomerConstraints> getParserForType()
Overrides
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 | int
The index of the element to return.
|
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.
|
public List<PromotionalOrderType> getPromotionalOrderTypesList()
Allowed Promotional Order Type. Present for Promotional offers.
repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
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 | int
The index of the value to return.
|
Returns |
---|
Type | Description |
int | The enum numeric value on the wire of promotionalOrderTypes at the given index.
|
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.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CustomerConstraints.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CustomerConstraints.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public CustomerConstraints.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides