public static enum CreateGlossaryMetadata.State extends Enum<CreateGlossaryMetadata.State> implements ProtocolMessageEnum
Enumerates the possible states that the creation request can be in.Protobuf enum
google.cloud.translation.v3beta1.CreateGlossaryMetadata.State
Enum Constant and Description |
---|
CANCELLED
The glossary creation request was successfully canceled.
|
CANCELLING
Request is in the process of being canceled after caller invoked
longrunning.Operations.CancelOperation on the request id.
|
FAILED
Failed to create the glossary.
|
RUNNING
Request is being processed.
|
STATE_UNSPECIFIED
Invalid.
|
SUCCEEDED
The glossary was successfully created.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CANCELLED_VALUE
The glossary creation request was successfully canceled.
|
static int |
CANCELLING_VALUE
Request is in the process of being canceled after caller invoked
longrunning.Operations.CancelOperation on the request id.
|
static int |
FAILED_VALUE
Failed to create the glossary.
|
static int |
RUNNING_VALUE
Request is being processed.
|
static int |
STATE_UNSPECIFIED_VALUE
Invalid.
|
static int |
SUCCEEDED_VALUE
The glossary was successfully created.
|
Modifier and Type | Method and Description |
---|---|
static CreateGlossaryMetadata.State |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<CreateGlossaryMetadata.State> |
internalGetValueMap() |
static CreateGlossaryMetadata.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static CreateGlossaryMetadata.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CreateGlossaryMetadata.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CreateGlossaryMetadata.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreateGlossaryMetadata.State STATE_UNSPECIFIED
Invalid.
STATE_UNSPECIFIED = 0;
public static final CreateGlossaryMetadata.State RUNNING
Request is being processed.
RUNNING = 1;
public static final CreateGlossaryMetadata.State SUCCEEDED
The glossary was successfully created.
SUCCEEDED = 2;
public static final CreateGlossaryMetadata.State FAILED
Failed to create the glossary.
FAILED = 3;
public static final CreateGlossaryMetadata.State CANCELLING
Request is in the process of being canceled after caller invoked longrunning.Operations.CancelOperation on the request id.
CANCELLING = 4;
public static final CreateGlossaryMetadata.State CANCELLED
The glossary creation request was successfully canceled.
CANCELLED = 5;
public static final CreateGlossaryMetadata.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Invalid.
STATE_UNSPECIFIED = 0;
public static final int RUNNING_VALUE
Request is being processed.
RUNNING = 1;
public static final int SUCCEEDED_VALUE
The glossary was successfully created.
SUCCEEDED = 2;
public static final int FAILED_VALUE
Failed to create the glossary.
FAILED = 3;
public static final int CANCELLING_VALUE
Request is in the process of being canceled after caller invoked longrunning.Operations.CancelOperation on the request id.
CANCELLING = 4;
public static final int CANCELLED_VALUE
The glossary creation request was successfully canceled.
CANCELLED = 5;
public static CreateGlossaryMetadata.State[] values()
for (CreateGlossaryMetadata.State c : CreateGlossaryMetadata.State.values()) System.out.println(c);
public static CreateGlossaryMetadata.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static CreateGlossaryMetadata.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static CreateGlossaryMetadata.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<CreateGlossaryMetadata.State> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static CreateGlossaryMetadata.State valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.