Class EntitlementChange

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

    public final class EntitlementChange
    extends com.google.protobuf.GeneratedMessageV3
    implements EntitlementChangeOrBuilder
     Change event entry for Entitlement order history
     
    Protobuf type google.cloud.channel.v1.EntitlementChange
    See Also:
    Serialized Form
    • Field Detail

      • SUSPENSION_REASON_FIELD_NUMBER

        public static final int SUSPENSION_REASON_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CANCELLATION_REASON_FIELD_NUMBER

        public static final int CANCELLATION_REASON_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ACTIVATION_REASON_FIELD_NUMBER

        public static final int ACTIVATION_REASON_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OTHER_CHANGE_REASON_FIELD_NUMBER

        public static final int OTHER_CHANGE_REASON_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENTITLEMENT_FIELD_NUMBER

        public static final int ENTITLEMENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PROVISIONED_SERVICE_FIELD_NUMBER

        public static final int PROVISIONED_SERVICE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CHANGE_TYPE_FIELD_NUMBER

        public static final int CHANGE_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATE_TIME_FIELD_NUMBER

        public static final int CREATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OPERATOR_TYPE_FIELD_NUMBER

        public static final int OPERATOR_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PARAMETERS_FIELD_NUMBER

        public static final int PARAMETERS_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
      • hasSuspensionReason

        public boolean hasSuspensionReason()
         Suspension reason for the Entitlement.
         
        .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;
        Specified by:
        hasSuspensionReason in interface EntitlementChangeOrBuilder
        Returns:
        Whether the suspensionReason field is set.
      • getSuspensionReasonValue

        public int getSuspensionReasonValue()
         Suspension reason for the Entitlement.
         
        .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;
        Specified by:
        getSuspensionReasonValue in interface EntitlementChangeOrBuilder
        Returns:
        The enum numeric value on the wire for suspensionReason.
      • hasCancellationReason

        public boolean hasCancellationReason()
         Cancellation reason for the Entitlement.
         
        .google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;
        Specified by:
        hasCancellationReason in interface EntitlementChangeOrBuilder
        Returns:
        Whether the cancellationReason field is set.
      • getCancellationReasonValue

        public int getCancellationReasonValue()
         Cancellation reason for the Entitlement.
         
        .google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;
        Specified by:
        getCancellationReasonValue in interface EntitlementChangeOrBuilder
        Returns:
        The enum numeric value on the wire for cancellationReason.
      • hasActivationReason

        public boolean hasActivationReason()
         The Entitlement's activation reason
         
        .google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;
        Specified by:
        hasActivationReason in interface EntitlementChangeOrBuilder
        Returns:
        Whether the activationReason field is set.
      • getActivationReasonValue

        public int getActivationReasonValue()
         The Entitlement's activation reason
         
        .google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;
        Specified by:
        getActivationReasonValue in interface EntitlementChangeOrBuilder
        Returns:
        The enum numeric value on the wire for activationReason.
      • hasOtherChangeReason

        public boolean hasOtherChangeReason()
         e.g. purchase_number change reason, entered by CRS.
         
        string other_change_reason = 100;
        Specified by:
        hasOtherChangeReason in interface EntitlementChangeOrBuilder
        Returns:
        Whether the otherChangeReason field is set.
      • getOtherChangeReasonBytes

        public com.google.protobuf.ByteString getOtherChangeReasonBytes()
         e.g. purchase_number change reason, entered by CRS.
         
        string other_change_reason = 100;
        Specified by:
        getOtherChangeReasonBytes in interface EntitlementChangeOrBuilder
        Returns:
        The bytes for otherChangeReason.
      • getEntitlement

        public String getEntitlement()
         Required. Resource name of an entitlement in the form:
         accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
         
        string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getEntitlement in interface EntitlementChangeOrBuilder
        Returns:
        The entitlement.
      • getEntitlementBytes

        public com.google.protobuf.ByteString getEntitlementBytes()
         Required. Resource name of an entitlement in the form:
         accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
         
        string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getEntitlementBytes in interface EntitlementChangeOrBuilder
        Returns:
        The bytes for entitlement.
      • getOffer

        public String getOffer()
         Required. Resource name of the Offer at the time of change.
         Takes the form: accounts/{account_id}/offers/{offer_id}.
         
        string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getOffer in interface EntitlementChangeOrBuilder
        Returns:
        The offer.
      • getOfferBytes

        public com.google.protobuf.ByteString getOfferBytes()
         Required. Resource name of the Offer at the time of change.
         Takes the form: accounts/{account_id}/offers/{offer_id}.
         
        string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getOfferBytes in interface EntitlementChangeOrBuilder
        Returns:
        The bytes for offer.
      • hasProvisionedService

        public boolean hasProvisionedService()
         Service provisioned for an Entitlement.
         
        .google.cloud.channel.v1.ProvisionedService provisioned_service = 3;
        Specified by:
        hasProvisionedService in interface EntitlementChangeOrBuilder
        Returns:
        Whether the provisionedService field is set.
      • getChangeTypeValue

        public int getChangeTypeValue()
         The change action type.
         
        .google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4;
        Specified by:
        getChangeTypeValue in interface EntitlementChangeOrBuilder
        Returns:
        The enum numeric value on the wire for changeType.
      • hasCreateTime

        public boolean hasCreateTime()
         The submitted time of the change.
         
        .google.protobuf.Timestamp create_time = 5;
        Specified by:
        hasCreateTime in interface EntitlementChangeOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         The submitted time of the change.
         
        .google.protobuf.Timestamp create_time = 5;
        Specified by:
        getCreateTime in interface EntitlementChangeOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         The submitted time of the change.
         
        .google.protobuf.Timestamp create_time = 5;
        Specified by:
        getCreateTimeOrBuilder in interface EntitlementChangeOrBuilder
      • getOperatorTypeValue

        public int getOperatorTypeValue()
         Operator type responsible for the change.
         
        .google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6;
        Specified by:
        getOperatorTypeValue in interface EntitlementChangeOrBuilder
        Returns:
        The enum numeric value on the wire for operatorType.
      • getParametersList

        public List<Parameter> getParametersList()
         Extended parameters, such as:
         purchase_order_number, gcp_details;
         internal_correlation_id, long_running_operation_id, order_id;
         etc.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 8;
        Specified by:
        getParametersList in interface EntitlementChangeOrBuilder
      • getParametersOrBuilderList

        public List<? extends ParameterOrBuilder> getParametersOrBuilderList()
         Extended parameters, such as:
         purchase_order_number, gcp_details;
         internal_correlation_id, long_running_operation_id, order_id;
         etc.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 8;
        Specified by:
        getParametersOrBuilderList in interface EntitlementChangeOrBuilder
      • getParametersCount

        public int getParametersCount()
         Extended parameters, such as:
         purchase_order_number, gcp_details;
         internal_correlation_id, long_running_operation_id, order_id;
         etc.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 8;
        Specified by:
        getParametersCount in interface EntitlementChangeOrBuilder
      • getParameters

        public Parameter getParameters​(int index)
         Extended parameters, such as:
         purchase_order_number, gcp_details;
         internal_correlation_id, long_running_operation_id, order_id;
         etc.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 8;
        Specified by:
        getParameters in interface EntitlementChangeOrBuilder
      • getParametersOrBuilder

        public ParameterOrBuilder getParametersOrBuilder​(int index)
         Extended parameters, such as:
         purchase_order_number, gcp_details;
         internal_correlation_id, long_running_operation_id, order_id;
         etc.
         
        repeated .google.cloud.channel.v1.Parameter parameters = 8;
        Specified by:
        getParametersOrBuilder in interface EntitlementChangeOrBuilder
      • getOperator

        public String getOperator()
         Human-readable identifier that shows what operator made a change.
         When the operator_type is RESELLER, this is the user's email address.
         For all other operator types, this is empty.
         
        string operator = 12;
        Specified by:
        getOperator in interface EntitlementChangeOrBuilder
        Returns:
        The operator.
      • getOperatorBytes

        public com.google.protobuf.ByteString getOperatorBytes()
         Human-readable identifier that shows what operator made a change.
         When the operator_type is RESELLER, this is the user's email address.
         For all other operator types, this is empty.
         
        string operator = 12;
        Specified by:
        getOperatorBytes in interface EntitlementChangeOrBuilder
        Returns:
        The bytes for operator.
      • 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 EntitlementChange parseFrom​(ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        protected EntitlementChange.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<EntitlementChange> 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 EntitlementChange getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder