Enum Subscription.ErrorType

java.lang.Object
java.lang.Enum<Subscription.ErrorType>
com.google.apps.events.subscriptions.v1beta.Subscription.ErrorType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Subscription.ErrorType>
Enclosing class:
Subscription

public static enum Subscription.ErrorType extends Enum<Subscription.ErrorType> implements com.google.protobuf.ProtocolMessageEnum
 Possible errors for a subscription.
 
Protobuf enum google.apps.events.subscriptions.v1beta.Subscription.ErrorType
  • Enum Constant Details

    • ERROR_TYPE_UNSPECIFIED

      public static final Subscription.ErrorType ERROR_TYPE_UNSPECIFIED
       Default value. This value is unused.
       
      ERROR_TYPE_UNSPECIFIED = 0;
    • USER_SCOPE_REVOKED

      public static final Subscription.ErrorType USER_SCOPE_REVOKED
       The authorizing user has revoked the grant of one or more OAuth scopes.
       To learn more about authorization for Google Workspace, see [Configure
       the OAuth consent
       screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
       
      USER_SCOPE_REVOKED = 1;
    • RESOURCE_DELETED

      public static final Subscription.ErrorType RESOURCE_DELETED
       The target resource for the subscription no longer exists.
       
      RESOURCE_DELETED = 2;
    • USER_AUTHORIZATION_FAILURE

      public static final Subscription.ErrorType USER_AUTHORIZATION_FAILURE
       The user that authorized the creation of the subscription no longer has
       access to the subscription's target resource.
       
      USER_AUTHORIZATION_FAILURE = 3;
    • ENDPOINT_PERMISSION_DENIED

      public static final Subscription.ErrorType ENDPOINT_PERMISSION_DENIED
       The Google Workspace application doesn't have access to deliver
       events to your subscription's notification endpoint.
       
      ENDPOINT_PERMISSION_DENIED = 4;
    • ENDPOINT_NOT_FOUND

      public static final Subscription.ErrorType ENDPOINT_NOT_FOUND
       The subscription's notification endpoint doesn't exist, or the endpoint
       can't be found in the Google Cloud project where you created the
       subscription.
       
      ENDPOINT_NOT_FOUND = 6;
    • ENDPOINT_RESOURCE_EXHAUSTED

      public static final Subscription.ErrorType ENDPOINT_RESOURCE_EXHAUSTED
       The subscription's notification endpoint failed to receive events due to
       insufficient quota or reaching rate limiting.
       
      ENDPOINT_RESOURCE_EXHAUSTED = 7;
    • OTHER

      public static final Subscription.ErrorType OTHER
       An unidentified error has occurred.
       
      OTHER = 5;
    • UNRECOGNIZED

      public static final Subscription.ErrorType UNRECOGNIZED
  • Field Details

    • ERROR_TYPE_UNSPECIFIED_VALUE

      public static final int ERROR_TYPE_UNSPECIFIED_VALUE
       Default value. This value is unused.
       
      ERROR_TYPE_UNSPECIFIED = 0;
      See Also:
    • USER_SCOPE_REVOKED_VALUE

      public static final int USER_SCOPE_REVOKED_VALUE
       The authorizing user has revoked the grant of one or more OAuth scopes.
       To learn more about authorization for Google Workspace, see [Configure
       the OAuth consent
       screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
       
      USER_SCOPE_REVOKED = 1;
      See Also:
    • RESOURCE_DELETED_VALUE

      public static final int RESOURCE_DELETED_VALUE
       The target resource for the subscription no longer exists.
       
      RESOURCE_DELETED = 2;
      See Also:
    • USER_AUTHORIZATION_FAILURE_VALUE

      public static final int USER_AUTHORIZATION_FAILURE_VALUE
       The user that authorized the creation of the subscription no longer has
       access to the subscription's target resource.
       
      USER_AUTHORIZATION_FAILURE = 3;
      See Also:
    • ENDPOINT_PERMISSION_DENIED_VALUE

      public static final int ENDPOINT_PERMISSION_DENIED_VALUE
       The Google Workspace application doesn't have access to deliver
       events to your subscription's notification endpoint.
       
      ENDPOINT_PERMISSION_DENIED = 4;
      See Also:
    • ENDPOINT_NOT_FOUND_VALUE

      public static final int ENDPOINT_NOT_FOUND_VALUE
       The subscription's notification endpoint doesn't exist, or the endpoint
       can't be found in the Google Cloud project where you created the
       subscription.
       
      ENDPOINT_NOT_FOUND = 6;
      See Also:
    • ENDPOINT_RESOURCE_EXHAUSTED_VALUE

      public static final int ENDPOINT_RESOURCE_EXHAUSTED_VALUE
       The subscription's notification endpoint failed to receive events due to
       insufficient quota or reaching rate limiting.
       
      ENDPOINT_RESOURCE_EXHAUSTED = 7;
      See Also:
    • OTHER_VALUE

      public static final int OTHER_VALUE
       An unidentified error has occurred.
       
      OTHER = 5;
      See Also:
  • Method Details

    • values

      public static Subscription.ErrorType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Subscription.ErrorType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Subscription.ErrorType valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static Subscription.ErrorType forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<Subscription.ErrorType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static Subscription.ErrorType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null