public static enum TranslateRpc.Option extends Enum<TranslateRpc.Option>
Enum Constant and Description |
---|
FORMAT |
MODEL |
SOURCE_LANGUAGE |
TARGET_LANGUAGE |
Modifier and Type | Method and Description |
---|---|
String |
value() |
static TranslateRpc.Option |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TranslateRpc.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TranslateRpc.Option SOURCE_LANGUAGE
public static final TranslateRpc.Option TARGET_LANGUAGE
public static final TranslateRpc.Option MODEL
public static final TranslateRpc.Option FORMAT
public static TranslateRpc.Option[] values()
for (TranslateRpc.Option c : TranslateRpc.Option.values()) System.out.println(c);
public static TranslateRpc.Option 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 String value()
Copyright © 2022 Google LLC. All rights reserved.