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 Summary
Enum ConstantsEnum ConstantDescriptionThe subscription's notification endpoint doesn't exist, or the endpoint can't be found in the Google Cloud project where you created the subscription.The Google Workspace application doesn't have access to deliver events to your subscription's notification endpoint.The subscription's notification endpoint failed to receive events due to insufficient quota or reaching rate limiting.Default value.An unidentified error has occurred.The target resource for the subscription no longer exists.The user that authorized the creation of the subscription no longer has access to the subscription's target resource.The authorizing user has revoked the grant of one or more OAuth scopes. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe subscription's notification endpoint doesn't exist, or the endpoint can't be found in the Google Cloud project where you created the subscription.static final intThe Google Workspace application doesn't have access to deliver events to your subscription's notification endpoint.static final intThe subscription's notification endpoint failed to receive events due to insufficient quota or reaching rate limiting.static final intDefault value.static final intAn unidentified error has occurred.static final intThe target resource for the subscription no longer exists.static final intThe user that authorized the creation of the subscription no longer has access to the subscription's target resource.static final intThe authorizing user has revoked the grant of one or more OAuth scopes. -
Method Summary
Modifier and TypeMethodDescriptionstatic Subscription.ErrorTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Subscription.ErrorType>static Subscription.ErrorTypevalueOf(int value) Deprecated.static Subscription.ErrorTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Subscription.ErrorTypeReturns the enum constant of this type with the specified name.static Subscription.ErrorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ERROR_TYPE_UNSPECIFIED
Default value. This value is unused.
ERROR_TYPE_UNSPECIFIED = 0; -
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
The target resource for the subscription no longer exists.
RESOURCE_DELETED = 2; -
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
The Google Workspace application doesn't have access to deliver events to your subscription's notification endpoint.
ENDPOINT_PERMISSION_DENIED = 4; -
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
The subscription's notification endpoint failed to receive events due to insufficient quota or reaching rate limiting.
ENDPOINT_RESOURCE_EXHAUSTED = 7; -
OTHER
An unidentified error has occurred.
OTHER = 5; -
UNRECOGNIZED
-
-
Field Details
-
ERROR_TYPE_UNSPECIFIED_VALUE
public static final int ERROR_TYPE_UNSPECIFIED_VALUEDefault value. This value is unused.
ERROR_TYPE_UNSPECIFIED = 0;- See Also:
-
USER_SCOPE_REVOKED_VALUE
public static final int USER_SCOPE_REVOKED_VALUEThe 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_VALUEThe target resource for the subscription no longer exists.
RESOURCE_DELETED = 2;- See Also:
-
USER_AUTHORIZATION_FAILURE_VALUE
public static final int USER_AUTHORIZATION_FAILURE_VALUEThe 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_VALUEThe 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_VALUEThe 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_VALUEThe 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_VALUEAn unidentified error has occurred.
OTHER = 5;- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-