Class CustomerConstraints

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.channel.v1.CustomerConstraints
All Implemented Interfaces:
CustomerConstraintsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CustomerConstraints extends com.google.protobuf.GeneratedMessage implements CustomerConstraintsOrBuilder
 Represents constraints required to purchase the Offer for a customer.
 
Protobuf type google.cloud.channel.v1.CustomerConstraints
See Also:
  • Field Details

    • ALLOWED_REGIONS_FIELD_NUMBER

      public static final int ALLOWED_REGIONS_FIELD_NUMBER
      See Also:
    • ALLOWED_CUSTOMER_TYPES_FIELD_NUMBER

      public static final int ALLOWED_CUSTOMER_TYPES_FIELD_NUMBER
      See Also:
    • PROMOTIONAL_ORDER_TYPES_FIELD_NUMBER

      public static final int PROMOTIONAL_ORDER_TYPES_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getAllowedRegionsList

      public com.google.protobuf.ProtocolStringList getAllowedRegionsList()
       Allowed geographical regions of the customer.
       
      repeated string allowed_regions = 1;
      Specified by:
      getAllowedRegionsList in interface CustomerConstraintsOrBuilder
      Returns:
      A list containing the allowedRegions.
    • getAllowedRegionsCount

      public int getAllowedRegionsCount()
       Allowed geographical regions of the customer.
       
      repeated string allowed_regions = 1;
      Specified by:
      getAllowedRegionsCount in interface CustomerConstraintsOrBuilder
      Returns:
      The count of allowedRegions.
    • getAllowedRegions

      public String getAllowedRegions(int index)
       Allowed geographical regions of the customer.
       
      repeated string allowed_regions = 1;
      Specified by:
      getAllowedRegions in interface CustomerConstraintsOrBuilder
      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:
      getAllowedRegionsBytes in interface CustomerConstraintsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedRegions at the given index.
    • getAllowedCustomerTypesList

      public List<CloudIdentityInfo.CustomerType> getAllowedCustomerTypesList()
       Allowed Customer Type.
       
      repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
      Specified by:
      getAllowedCustomerTypesList in interface CustomerConstraintsOrBuilder
      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:
      getAllowedCustomerTypesCount in interface CustomerConstraintsOrBuilder
      Returns:
      The count of allowedCustomerTypes.
    • getAllowedCustomerTypes

      public CloudIdentityInfo.CustomerType getAllowedCustomerTypes(int index)
       Allowed Customer Type.
       
      repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
      Specified by:
      getAllowedCustomerTypes in interface CustomerConstraintsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedCustomerTypes at the given index.
    • getAllowedCustomerTypesValueList

      public List<Integer> getAllowedCustomerTypesValueList()
       Allowed Customer Type.
       
      repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;
      Specified by:
      getAllowedCustomerTypesValueList in interface CustomerConstraintsOrBuilder
      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:
      getAllowedCustomerTypesValue in interface CustomerConstraintsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of allowedCustomerTypes at the given index.
    • getPromotionalOrderTypesList

      public List<PromotionalOrderType> getPromotionalOrderTypesList()
       Allowed Promotional Order Type. Present for Promotional offers.
       
      repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
      Specified by:
      getPromotionalOrderTypesList in interface CustomerConstraintsOrBuilder
      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:
      getPromotionalOrderTypesCount in interface CustomerConstraintsOrBuilder
      Returns:
      The count of promotionalOrderTypes.
    • getPromotionalOrderTypes

      public PromotionalOrderType getPromotionalOrderTypes(int index)
       Allowed Promotional Order Type. Present for Promotional offers.
       
      repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;
      Specified by:
      getPromotionalOrderTypes in interface CustomerConstraintsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The 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;
      Specified by:
      getPromotionalOrderTypesValueList in interface CustomerConstraintsOrBuilder
      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:
      getPromotionalOrderTypesValue in interface CustomerConstraintsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of promotionalOrderTypes at the given index.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CustomerConstraints parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomerConstraints parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomerConstraints parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomerConstraints parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomerConstraints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomerConstraints parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomerConstraints parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CustomerConstraints parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CustomerConstraints parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CustomerConstraints parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CustomerConstraints parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CustomerConstraints parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public CustomerConstraints.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CustomerConstraints.Builder newBuilder()
    • newBuilder

      public static CustomerConstraints.Builder newBuilder(CustomerConstraints prototype)
    • toBuilder

      public CustomerConstraints.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CustomerConstraints.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CustomerConstraints getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CustomerConstraints> parser()
    • getParserForType

      public com.google.protobuf.Parser<CustomerConstraints> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public CustomerConstraints getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder