Class Entitlement.Builder

  • All Implemented Interfaces:
    EntitlementOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Entitlement

    public static final class Entitlement.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Entitlement.Builder>
    implements EntitlementOrBuilder
     An entitlement is a representation of a customer's ability to use a service.
     
    Protobuf type google.cloud.channel.v1.Entitlement
    • Method Detail

      • 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.Builder<Entitlement.Builder>
      • clear

        public Entitlement.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Entitlement.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Entitlement.Builder>
      • getDefaultInstanceForType

        public Entitlement getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Entitlement build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Entitlement buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Entitlement.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Entitlement.Builder>
      • setField

        public Entitlement.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Entitlement.Builder>
      • clearField

        public Entitlement.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Entitlement.Builder>
      • clearOneof

        public Entitlement.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Entitlement.Builder>
      • setRepeatedField

        public Entitlement.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Entitlement.Builder>
      • addRepeatedField

        public Entitlement.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Entitlement.Builder>
      • mergeFrom

        public Entitlement.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Entitlement.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Entitlement.Builder>
      • mergeFrom

        public Entitlement.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Entitlement.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. Resource name of an entitlement in the form:
         accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface EntitlementOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. Resource name of an entitlement in the form:
         accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface EntitlementOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Entitlement.Builder setName​(String value)
         Output only. Resource name of an entitlement in the form:
         accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Entitlement.Builder clearName()
         Output only. Resource name of an entitlement in the form:
         accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Entitlement.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. Resource name of an entitlement in the form:
         accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time at which the entitlement is created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface EntitlementOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time at which the entitlement is created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface EntitlementOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Entitlement.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which the entitlement is created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Entitlement.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time at which the entitlement is created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Entitlement.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which the entitlement is created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Entitlement.Builder clearCreateTime()
         Output only. The time at which the entitlement is created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time at which the entitlement is created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time at which the entitlement is created.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface EntitlementOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time at which the entitlement is updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface EntitlementOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time at which the entitlement is updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface EntitlementOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public Entitlement.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which the entitlement is updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public Entitlement.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time at which the entitlement is updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public Entitlement.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which the entitlement is updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public Entitlement.Builder clearUpdateTime()
         Output only. The time at which the entitlement is updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The time at which the entitlement is updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time at which the entitlement is updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface EntitlementOrBuilder
      • getOffer

        public String getOffer()
         Required. The offer resource name for which the entitlement is to be
         created. Takes the form: accounts/{account_id}/offers/{offer_id}.
         
        string offer = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getOffer in interface EntitlementOrBuilder
        Returns:
        The offer.
      • getOfferBytes

        public com.google.protobuf.ByteString getOfferBytes()
         Required. The offer resource name for which the entitlement is to be
         created. Takes the form: accounts/{account_id}/offers/{offer_id}.
         
        string offer = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getOfferBytes in interface EntitlementOrBuilder
        Returns:
        The bytes for offer.
      • setOffer

        public Entitlement.Builder setOffer​(String value)
         Required. The offer resource name for which the entitlement is to be
         created. Takes the form: accounts/{account_id}/offers/{offer_id}.
         
        string offer = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The offer to set.
        Returns:
        This builder for chaining.
      • clearOffer

        public Entitlement.Builder clearOffer()
         Required. The offer resource name for which the entitlement is to be
         created. Takes the form: accounts/{account_id}/offers/{offer_id}.
         
        string offer = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setOfferBytes

        public Entitlement.Builder setOfferBytes​(com.google.protobuf.ByteString value)
         Required. The offer resource name for which the entitlement is to be
         created. Takes the form: accounts/{account_id}/offers/{offer_id}.
         
        string offer = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for offer to set.
        Returns:
        This builder for chaining.
      • hasCommitmentSettings

        public boolean hasCommitmentSettings()
         Commitment settings for a commitment-based Offer.
         Required for commitment based offers.
         
        .google.cloud.channel.v1.CommitmentSettings commitment_settings = 12;
        Specified by:
        hasCommitmentSettings in interface EntitlementOrBuilder
        Returns:
        Whether the commitmentSettings field is set.
      • getCommitmentSettings

        public CommitmentSettings getCommitmentSettings()
         Commitment settings for a commitment-based Offer.
         Required for commitment based offers.
         
        .google.cloud.channel.v1.CommitmentSettings commitment_settings = 12;
        Specified by:
        getCommitmentSettings in interface EntitlementOrBuilder
        Returns:
        The commitmentSettings.
      • setCommitmentSettings

        public Entitlement.Builder setCommitmentSettings​(CommitmentSettings value)
         Commitment settings for a commitment-based Offer.
         Required for commitment based offers.
         
        .google.cloud.channel.v1.CommitmentSettings commitment_settings = 12;
      • setCommitmentSettings

        public Entitlement.Builder setCommitmentSettings​(CommitmentSettings.Builder builderForValue)
         Commitment settings for a commitment-based Offer.
         Required for commitment based offers.
         
        .google.cloud.channel.v1.CommitmentSettings commitment_settings = 12;
      • mergeCommitmentSettings

        public Entitlement.Builder mergeCommitmentSettings​(CommitmentSettings value)
         Commitment settings for a commitment-based Offer.
         Required for commitment based offers.
         
        .google.cloud.channel.v1.CommitmentSettings commitment_settings = 12;
      • clearCommitmentSettings

        public Entitlement.Builder clearCommitmentSettings()
         Commitment settings for a commitment-based Offer.
         Required for commitment based offers.
         
        .google.cloud.channel.v1.CommitmentSettings commitment_settings = 12;
      • getCommitmentSettingsBuilder

        public CommitmentSettings.Builder getCommitmentSettingsBuilder()
         Commitment settings for a commitment-based Offer.
         Required for commitment based offers.
         
        .google.cloud.channel.v1.CommitmentSettings commitment_settings = 12;
      • getProvisioningStateValue

        public int getProvisioningStateValue()
         Output only. Current provisioning state of the entitlement.
         
        .google.cloud.channel.v1.Entitlement.ProvisioningState provisioning_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getProvisioningStateValue in interface EntitlementOrBuilder
        Returns:
        The enum numeric value on the wire for provisioningState.
      • setProvisioningStateValue

        public Entitlement.Builder setProvisioningStateValue​(int value)
         Output only. Current provisioning state of the entitlement.
         
        .google.cloud.channel.v1.Entitlement.ProvisioningState provisioning_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for provisioningState to set.
        Returns:
        This builder for chaining.
      • getProvisioningState

        public Entitlement.ProvisioningState getProvisioningState()
         Output only. Current provisioning state of the entitlement.
         
        .google.cloud.channel.v1.Entitlement.ProvisioningState provisioning_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getProvisioningState in interface EntitlementOrBuilder
        Returns:
        The provisioningState.
      • setProvisioningState

        public Entitlement.Builder setProvisioningState​(Entitlement.ProvisioningState value)
         Output only. Current provisioning state of the entitlement.
         
        .google.cloud.channel.v1.Entitlement.ProvisioningState provisioning_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The provisioningState to set.
        Returns:
        This builder for chaining.
      • clearProvisioningState

        public Entitlement.Builder clearProvisioningState()
         Output only. Current provisioning state of the entitlement.
         
        .google.cloud.channel.v1.Entitlement.ProvisioningState provisioning_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasProvisionedService

        public boolean hasProvisionedService()
         Output only. Service provisioning details for the entitlement.
         
        .google.cloud.channel.v1.ProvisionedService provisioned_service = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasProvisionedService in interface EntitlementOrBuilder
        Returns:
        Whether the provisionedService field is set.
      • getProvisionedService

        public ProvisionedService getProvisionedService()
         Output only. Service provisioning details for the entitlement.
         
        .google.cloud.channel.v1.ProvisionedService provisioned_service = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getProvisionedService in interface EntitlementOrBuilder
        Returns:
        The provisionedService.
      • setProvisionedService

        public Entitlement.Builder setProvisionedService​(ProvisionedService value)
         Output only. Service provisioning details for the entitlement.
         
        .google.cloud.channel.v1.ProvisionedService provisioned_service = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setProvisionedService

        public Entitlement.Builder setProvisionedService​(ProvisionedService.Builder builderForValue)
         Output only. Service provisioning details for the entitlement.
         
        .google.cloud.channel.v1.ProvisionedService provisioned_service = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeProvisionedService

        public Entitlement.Builder mergeProvisionedService​(ProvisionedService value)
         Output only. Service provisioning details for the entitlement.
         
        .google.cloud.channel.v1.ProvisionedService provisioned_service = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearProvisionedService

        public Entitlement.Builder clearProvisionedService()
         Output only. Service provisioning details for the entitlement.
         
        .google.cloud.channel.v1.ProvisionedService provisioned_service = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getProvisionedServiceBuilder

        public ProvisionedService.Builder getProvisionedServiceBuilder()
         Output only. Service provisioning details for the entitlement.
         
        .google.cloud.channel.v1.ProvisionedService provisioned_service = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getSuspensionReasonsList

        public List<Entitlement.SuspensionReason> getSuspensionReasonsList()
         Output only. Enumerable of all current suspension reasons for an
         entitlement.
         
        repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSuspensionReasonsList in interface EntitlementOrBuilder
        Returns:
        A list containing the suspensionReasons.
      • getSuspensionReasonsCount

        public int getSuspensionReasonsCount()
         Output only. Enumerable of all current suspension reasons for an
         entitlement.
         
        repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSuspensionReasonsCount in interface EntitlementOrBuilder
        Returns:
        The count of suspensionReasons.
      • getSuspensionReasons

        public Entitlement.SuspensionReason getSuspensionReasons​(int index)
         Output only. Enumerable of all current suspension reasons for an
         entitlement.
         
        repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSuspensionReasons in interface EntitlementOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The suspensionReasons at the given index.
      • setSuspensionReasons

        public Entitlement.Builder setSuspensionReasons​(int index,
                                                        Entitlement.SuspensionReason value)
         Output only. Enumerable of all current suspension reasons for an
         entitlement.
         
        repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        index - The index to set the value at.
        value - The suspensionReasons to set.
        Returns:
        This builder for chaining.
      • addSuspensionReasons

        public Entitlement.Builder addSuspensionReasons​(Entitlement.SuspensionReason value)
         Output only. Enumerable of all current suspension reasons for an
         entitlement.
         
        repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The suspensionReasons to add.
        Returns:
        This builder for chaining.
      • addAllSuspensionReasons

        public Entitlement.Builder addAllSuspensionReasons​(Iterable<? extends Entitlement.SuspensionReason> values)
         Output only. Enumerable of all current suspension reasons for an
         entitlement.
         
        repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        values - The suspensionReasons to add.
        Returns:
        This builder for chaining.
      • clearSuspensionReasons

        public Entitlement.Builder clearSuspensionReasons()
         Output only. Enumerable of all current suspension reasons for an
         entitlement.
         
        repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getSuspensionReasonsValueList

        public List<Integer> getSuspensionReasonsValueList()
         Output only. Enumerable of all current suspension reasons for an
         entitlement.
         
        repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSuspensionReasonsValueList in interface EntitlementOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for suspensionReasons.
      • getSuspensionReasonsValue

        public int getSuspensionReasonsValue​(int index)
         Output only. Enumerable of all current suspension reasons for an
         entitlement.
         
        repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSuspensionReasonsValue in interface EntitlementOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of suspensionReasons at the given index.
      • setSuspensionReasonsValue

        public Entitlement.Builder setSuspensionReasonsValue​(int index,
                                                             int value)
         Output only. Enumerable of all current suspension reasons for an
         entitlement.
         
        repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for suspensionReasons to set.
        Returns:
        This builder for chaining.
      • addSuspensionReasonsValue

        public Entitlement.Builder addSuspensionReasonsValue​(int value)
         Output only. Enumerable of all current suspension reasons for an
         entitlement.
         
        repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for suspensionReasons to add.
        Returns:
        This builder for chaining.
      • addAllSuspensionReasonsValue

        public Entitlement.Builder addAllSuspensionReasonsValue​(Iterable<Integer> values)
         Output only. Enumerable of all current suspension reasons for an
         entitlement.
         
        repeated .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reasons = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        values - The enum numeric values on the wire for suspensionReasons to add.
        Returns:
        This builder for chaining.
      • getPurchaseOrderId

        public String getPurchaseOrderId()
         Optional. This purchase order (PO) information is for resellers to use for
         their company tracking usage. If a purchaseOrderId value is given, it
         appears in the API responses and shows up in the invoice. The property
         accepts up to 80 plain text characters. This is only supported for Google
         Workspace entitlements.
         
        string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPurchaseOrderId in interface EntitlementOrBuilder
        Returns:
        The purchaseOrderId.
      • getPurchaseOrderIdBytes

        public com.google.protobuf.ByteString getPurchaseOrderIdBytes()
         Optional. This purchase order (PO) information is for resellers to use for
         their company tracking usage. If a purchaseOrderId value is given, it
         appears in the API responses and shows up in the invoice. The property
         accepts up to 80 plain text characters. This is only supported for Google
         Workspace entitlements.
         
        string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPurchaseOrderIdBytes in interface EntitlementOrBuilder
        Returns:
        The bytes for purchaseOrderId.
      • setPurchaseOrderId

        public Entitlement.Builder setPurchaseOrderId​(String value)
         Optional. This purchase order (PO) information is for resellers to use for
         their company tracking usage. If a purchaseOrderId value is given, it
         appears in the API responses and shows up in the invoice. The property
         accepts up to 80 plain text characters. This is only supported for Google
         Workspace entitlements.
         
        string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The purchaseOrderId to set.
        Returns:
        This builder for chaining.
      • clearPurchaseOrderId

        public Entitlement.Builder clearPurchaseOrderId()
         Optional. This purchase order (PO) information is for resellers to use for
         their company tracking usage. If a purchaseOrderId value is given, it
         appears in the API responses and shows up in the invoice. The property
         accepts up to 80 plain text characters. This is only supported for Google
         Workspace entitlements.
         
        string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setPurchaseOrderIdBytes

        public Entitlement.Builder setPurchaseOrderIdBytes​(com.google.protobuf.ByteString value)
         Optional. This purchase order (PO) information is for resellers to use for
         their company tracking usage. If a purchaseOrderId value is given, it
         appears in the API responses and shows up in the invoice. The property
         accepts up to 80 plain text characters. This is only supported for Google
         Workspace entitlements.
         
        string purchase_order_id = 19 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for purchaseOrderId to set.
        Returns:
        This builder for chaining.
      • hasTrialSettings

        public boolean hasTrialSettings()
         Output only. Settings for trial offers.
         
        .google.cloud.channel.v1.TrialSettings trial_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasTrialSettings in interface EntitlementOrBuilder
        Returns:
        Whether the trialSettings field is set.
      • getTrialSettings

        public TrialSettings getTrialSettings()
         Output only. Settings for trial offers.
         
        .google.cloud.channel.v1.TrialSettings trial_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTrialSettings in interface EntitlementOrBuilder
        Returns:
        The trialSettings.
      • setTrialSettings

        public Entitlement.Builder setTrialSettings​(TrialSettings value)
         Output only. Settings for trial offers.
         
        .google.cloud.channel.v1.TrialSettings trial_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setTrialSettings

        public Entitlement.Builder setTrialSettings​(TrialSettings.Builder builderForValue)
         Output only. Settings for trial offers.
         
        .google.cloud.channel.v1.TrialSettings trial_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeTrialSettings

        public Entitlement.Builder mergeTrialSettings​(TrialSettings value)
         Output only. Settings for trial offers.
         
        .google.cloud.channel.v1.TrialSettings trial_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearTrialSettings

        public Entitlement.Builder clearTrialSettings()
         Output only. Settings for trial offers.
         
        .google.cloud.channel.v1.TrialSettings trial_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getTrialSettingsBuilder

        public TrialSettings.Builder getTrialSettingsBuilder()
         Output only. Settings for trial offers.
         
        .google.cloud.channel.v1.TrialSettings trial_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • hasAssociationInfo

        public boolean hasAssociationInfo()
         Association information to other entitlements.
         
        .google.cloud.channel.v1.AssociationInfo association_info = 23;
        Specified by:
        hasAssociationInfo in interface EntitlementOrBuilder
        Returns:
        Whether the associationInfo field is set.
      • getAssociationInfo

        public AssociationInfo getAssociationInfo()
         Association information to other entitlements.
         
        .google.cloud.channel.v1.AssociationInfo association_info = 23;
        Specified by:
        getAssociationInfo in interface EntitlementOrBuilder
        Returns:
        The associationInfo.
      • setAssociationInfo

        public Entitlement.Builder setAssociationInfo​(AssociationInfo value)
         Association information to other entitlements.
         
        .google.cloud.channel.v1.AssociationInfo association_info = 23;
      • setAssociationInfo

        public Entitlement.Builder setAssociationInfo​(AssociationInfo.Builder builderForValue)
         Association information to other entitlements.
         
        .google.cloud.channel.v1.AssociationInfo association_info = 23;
      • mergeAssociationInfo

        public Entitlement.Builder mergeAssociationInfo​(AssociationInfo value)
         Association information to other entitlements.
         
        .google.cloud.channel.v1.AssociationInfo association_info = 23;
      • clearAssociationInfo

        public Entitlement.Builder clearAssociationInfo()
         Association information to other entitlements.
         
        .google.cloud.channel.v1.AssociationInfo association_info = 23;
      • getAssociationInfoBuilder

        public AssociationInfo.Builder getAssociationInfoBuilder()
         Association information to other entitlements.
         
        .google.cloud.channel.v1.AssociationInfo association_info = 23;
      • getParametersList

        public List<Parameter> getParametersList()
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
        Specified by:
        getParametersList in interface EntitlementOrBuilder
      • getParametersCount

        public int getParametersCount()
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
        Specified by:
        getParametersCount in interface EntitlementOrBuilder
      • getParameters

        public Parameter getParameters​(int index)
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
        Specified by:
        getParameters in interface EntitlementOrBuilder
      • setParameters

        public Entitlement.Builder setParameters​(int index,
                                                 Parameter value)
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
      • setParameters

        public Entitlement.Builder setParameters​(int index,
                                                 Parameter.Builder builderForValue)
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
      • addParameters

        public Entitlement.Builder addParameters​(Parameter value)
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
      • addParameters

        public Entitlement.Builder addParameters​(int index,
                                                 Parameter value)
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
      • addParameters

        public Entitlement.Builder addParameters​(Parameter.Builder builderForValue)
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
      • addParameters

        public Entitlement.Builder addParameters​(int index,
                                                 Parameter.Builder builderForValue)
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
      • addAllParameters

        public Entitlement.Builder addAllParameters​(Iterable<? extends Parameter> values)
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
      • clearParameters

        public Entitlement.Builder clearParameters()
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
      • removeParameters

        public Entitlement.Builder removeParameters​(int index)
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
      • getParametersBuilder

        public Parameter.Builder getParametersBuilder​(int index)
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
      • getParametersOrBuilder

        public ParameterOrBuilder getParametersOrBuilder​(int index)
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
        Specified by:
        getParametersOrBuilder in interface EntitlementOrBuilder
      • getParametersOrBuilderList

        public List<? extends ParameterOrBuilder> getParametersOrBuilderList()
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
        Specified by:
        getParametersOrBuilderList in interface EntitlementOrBuilder
      • addParametersBuilder

        public Parameter.Builder addParametersBuilder()
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
      • addParametersBuilder

        public Parameter.Builder addParametersBuilder​(int index)
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
      • getParametersBuilderList

        public List<Parameter.Builder> getParametersBuilderList()
         Extended entitlement parameters. When creating an entitlement, valid
         parameter names and values are defined in the
         [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions].
        
         For Google Workspace, the following Parameters may be accepted as input:
        
         - max_units: The maximum assignable units for a flexible offer
        
         OR
        
         - num_units: The total commitment for commitment-based offers
        
         The response may additionally include the following output-only Parameters:
        
         - assigned_units: The number of licenses assigned to users.
        
         For Google Cloud billing subaccounts, the following Parameter may be
         accepted as input:
        
         - display_name: The display name of the billing subaccount.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 26;
      • getBillingAccount

        public String getBillingAccount()
         Optional. The billing account resource name that is used to pay for this
         entitlement.
         
        string billing_account = 28 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getBillingAccount in interface EntitlementOrBuilder
        Returns:
        The billingAccount.
      • getBillingAccountBytes

        public com.google.protobuf.ByteString getBillingAccountBytes()
         Optional. The billing account resource name that is used to pay for this
         entitlement.
         
        string billing_account = 28 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getBillingAccountBytes in interface EntitlementOrBuilder
        Returns:
        The bytes for billingAccount.
      • setBillingAccount

        public Entitlement.Builder setBillingAccount​(String value)
         Optional. The billing account resource name that is used to pay for this
         entitlement.
         
        string billing_account = 28 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The billingAccount to set.
        Returns:
        This builder for chaining.
      • clearBillingAccount

        public Entitlement.Builder clearBillingAccount()
         Optional. The billing account resource name that is used to pay for this
         entitlement.
         
        string billing_account = 28 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setBillingAccountBytes

        public Entitlement.Builder setBillingAccountBytes​(com.google.protobuf.ByteString value)
         Optional. The billing account resource name that is used to pay for this
         entitlement.
         
        string billing_account = 28 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for billingAccount to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Entitlement.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Entitlement.Builder>
      • mergeUnknownFields

        public final Entitlement.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Entitlement.Builder>