Class EntitlementChange

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

@Generated public final class EntitlementChange extends com.google.protobuf.GeneratedMessage implements EntitlementChangeOrBuilder
 Change event entry for Entitlement order history
 
Protobuf type google.cloud.channel.v1.EntitlementChange
See Also:
  • Field Details

    • SUSPENSION_REASON_FIELD_NUMBER

      public static final int SUSPENSION_REASON_FIELD_NUMBER
      See Also:
    • CANCELLATION_REASON_FIELD_NUMBER

      public static final int CANCELLATION_REASON_FIELD_NUMBER
      See Also:
    • ACTIVATION_REASON_FIELD_NUMBER

      public static final int ACTIVATION_REASON_FIELD_NUMBER
      See Also:
    • OTHER_CHANGE_REASON_FIELD_NUMBER

      public static final int OTHER_CHANGE_REASON_FIELD_NUMBER
      See Also:
    • ENTITLEMENT_FIELD_NUMBER

      public static final int ENTITLEMENT_FIELD_NUMBER
      See Also:
    • OFFER_FIELD_NUMBER

      public static final int OFFER_FIELD_NUMBER
      See Also:
    • PROVISIONED_SERVICE_FIELD_NUMBER

      public static final int PROVISIONED_SERVICE_FIELD_NUMBER
      See Also:
    • CHANGE_TYPE_FIELD_NUMBER

      public static final int CHANGE_TYPE_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • OPERATOR_TYPE_FIELD_NUMBER

      public static final int OPERATOR_TYPE_FIELD_NUMBER
      See Also:
    • PARAMETERS_FIELD_NUMBER

      public static final int PARAMETERS_FIELD_NUMBER
      See Also:
    • OPERATOR_FIELD_NUMBER

      public static final int OPERATOR_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
    • getChangeReasonCase

      public EntitlementChange.ChangeReasonCase getChangeReasonCase()
      Specified by:
      getChangeReasonCase in interface EntitlementChangeOrBuilder
    • 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.
    • getSuspensionReason

      public Entitlement.SuspensionReason getSuspensionReason()
       Suspension reason for the Entitlement.
       
      .google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;
      Specified by:
      getSuspensionReason in interface EntitlementChangeOrBuilder
      Returns:
      The 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.
    • getCancellationReason

      public EntitlementChange.CancellationReason getCancellationReason()
       Cancellation reason for the Entitlement.
       
      .google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;
      Specified by:
      getCancellationReason in interface EntitlementChangeOrBuilder
      Returns:
      The 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.
    • getActivationReason

      public EntitlementChange.ActivationReason getActivationReason()
       The Entitlement's activation reason
       
      .google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;
      Specified by:
      getActivationReason in interface EntitlementChangeOrBuilder
      Returns:
      The 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.
    • getOtherChangeReason

      public String getOtherChangeReason()
       e.g. purchase_number change reason, entered by CRS.
       
      string other_change_reason = 100;
      Specified by:
      getOtherChangeReason in interface EntitlementChangeOrBuilder
      Returns:
      The otherChangeReason.
    • 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.
    • getProvisionedService

      public ProvisionedService getProvisionedService()
       Service provisioned for an Entitlement.
       
      .google.cloud.channel.v1.ProvisionedService provisioned_service = 3;
      Specified by:
      getProvisionedService in interface EntitlementChangeOrBuilder
      Returns:
      The provisionedService.
    • getProvisionedServiceOrBuilder

      public ProvisionedServiceOrBuilder getProvisionedServiceOrBuilder()
       Service provisioned for an Entitlement.
       
      .google.cloud.channel.v1.ProvisionedService provisioned_service = 3;
      Specified by:
      getProvisionedServiceOrBuilder in interface EntitlementChangeOrBuilder
    • 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.
    • getChangeType

      public EntitlementChange.ChangeType getChangeType()
       The change action type.
       
      .google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4;
      Specified by:
      getChangeType in interface EntitlementChangeOrBuilder
      Returns:
      The 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.
    • getOperatorType

      public EntitlementChange.OperatorType getOperatorType()
       Operator type responsible for the change.
       
      .google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6;
      Specified by:
      getOperatorType in interface EntitlementChangeOrBuilder
      Returns:
      The 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.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 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

      public static EntitlementChange parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static EntitlementChange.Builder newBuilder()
    • newBuilder

      public static EntitlementChange.Builder newBuilder(EntitlementChange prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static EntitlementChange getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<EntitlementChange> parser()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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