Class CustomerConstraints

  • All Implemented Interfaces:
    CustomerConstraintsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class CustomerConstraints
    extends com.google.protobuf.GeneratedMessageV3
    implements CustomerConstraintsOrBuilder
     Represents constraints required to purchase the Offer for a customer.
     
    Protobuf type google.cloud.channel.v1.CustomerConstraints
    See Also:
    Serialized Form
    • Field Detail

      • ALLOWED_REGIONS_FIELD_NUMBER

        public static final int ALLOWED_REGIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ALLOWED_CUSTOMER_TYPES_FIELD_NUMBER

        public static final int ALLOWED_CUSTOMER_TYPES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PROMOTIONAL_ORDER_TYPES_FIELD_NUMBER

        public static final int PROMOTIONAL_ORDER_TYPES_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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.
      • 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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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