Enum Class OperationResponseMapping

java.lang.Object
java.lang.Enum<OperationResponseMapping>
com.google.cloud.OperationResponseMapping
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<OperationResponseMapping>, Constable

public enum OperationResponseMapping extends Enum<OperationResponseMapping> implements com.google.protobuf.ProtocolMessageEnum
 An enum to be used to mark the essential (for polling) fields in an
 API-specific Operation object. A custom Operation object may contain many
 different fields, but only few of them are essential to conduct a successful
 polling process.
 
Protobuf enum google.cloud.OperationResponseMapping
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.code.
    A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.message.
    A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.name.
    A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.done.
    Do not use.
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.code.
    static final int
    A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.message.
    static final int
    A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.name.
    static final int
    A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.done.
    static final int
    Do not use.
  • Method Summary

    Modifier and Type
    Method
    Description
    forNumber(int value)
     
    static final com.google.protobuf.Descriptors.EnumDescriptor
     
    final com.google.protobuf.Descriptors.EnumDescriptor
     
    final int
     
    final com.google.protobuf.Descriptors.EnumValueDescriptor
     
    static com.google.protobuf.Internal.EnumLiteMap<OperationResponseMapping>
     
    valueOf(int value)
    Deprecated.
    valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
    Returns the enum constant of this class with the specified name.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • UNDEFINED

      public static final OperationResponseMapping UNDEFINED
       Do not use.
       
      UNDEFINED = 0;
    • NAME

      public static final OperationResponseMapping NAME
       A field in an API-specific (custom) Operation object which carries the same
       meaning as google.longrunning.Operation.name.
       
      NAME = 1;
    • STATUS

      public static final OperationResponseMapping STATUS
       A field in an API-specific (custom) Operation object which carries the same
       meaning as google.longrunning.Operation.done. If the annotated field is of
       an enum type, `annotated_field_name == EnumType.DONE` semantics should be
       equivalent to `Operation.done == true`. If the annotated field is of type
       boolean, then it should follow the same semantics as Operation.done.
       Otherwise, a non-empty value should be treated as `Operation.done == true`.
       
      STATUS = 2;
    • ERROR_CODE

      public static final OperationResponseMapping ERROR_CODE
       A field in an API-specific (custom) Operation object which carries the same
       meaning as google.longrunning.Operation.error.code.
       
      ERROR_CODE = 3;
    • ERROR_MESSAGE

      public static final OperationResponseMapping ERROR_MESSAGE
       A field in an API-specific (custom) Operation object which carries the same
       meaning as google.longrunning.Operation.error.message.
       
      ERROR_MESSAGE = 4;
    • UNRECOGNIZED

      public static final OperationResponseMapping UNRECOGNIZED
  • Field Details

    • UNDEFINED_VALUE

      public static final int UNDEFINED_VALUE
       Do not use.
       
      UNDEFINED = 0;
      See Also:
    • NAME_VALUE

      public static final int NAME_VALUE
       A field in an API-specific (custom) Operation object which carries the same
       meaning as google.longrunning.Operation.name.
       
      NAME = 1;
      See Also:
    • STATUS_VALUE

      public static final int STATUS_VALUE
       A field in an API-specific (custom) Operation object which carries the same
       meaning as google.longrunning.Operation.done. If the annotated field is of
       an enum type, `annotated_field_name == EnumType.DONE` semantics should be
       equivalent to `Operation.done == true`. If the annotated field is of type
       boolean, then it should follow the same semantics as Operation.done.
       Otherwise, a non-empty value should be treated as `Operation.done == true`.
       
      STATUS = 2;
      See Also:
    • ERROR_CODE_VALUE

      public static final int ERROR_CODE_VALUE
       A field in an API-specific (custom) Operation object which carries the same
       meaning as google.longrunning.Operation.error.code.
       
      ERROR_CODE = 3;
      See Also:
    • ERROR_MESSAGE_VALUE

      public static final int ERROR_MESSAGE_VALUE
       A field in an API-specific (custom) Operation object which carries the same
       meaning as google.longrunning.Operation.error.message.
       
      ERROR_MESSAGE = 4;
      See Also:
  • Method Details

    • values

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

      public static OperationResponseMapping valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 OperationResponseMapping valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static OperationResponseMapping 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<OperationResponseMapping> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static OperationResponseMapping valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null