Package com.google.genai.proto
Enum SentencepieceModel.TrainerSpec.ModelType
-
- All Implemented Interfaces:
-
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum
public enum SentencepieceModel.TrainerSpec.ModelType implements ProtocolMessageEnum
Protobuf enumModel type. only have UNIGRAM now.com.google.genai.proto.TrainerSpec.ModelType
-
-
Field Summary
Fields Modifier and Type Field Description public final static intUNIGRAM_VALUEpublic final static intBPE_VALUEpublic final static intWORD_VALUEpublic final static intCHAR_VALUE
-
Method Summary
Modifier and Type Method Description final intgetNumber()static SentencepieceModel.TrainerSpec.ModelTypevalueOf(int value)static SentencepieceModel.TrainerSpec.ModelTypeforNumber(int value)static Internal.EnumLiteMap<SentencepieceModel.TrainerSpec.ModelType>internalGetValueMap()final Descriptors.EnumValueDescriptorgetValueDescriptor()final Descriptors.EnumDescriptorgetDescriptorForType()final static Descriptors.EnumDescriptorgetDescriptor()static SentencepieceModel.TrainerSpec.ModelTypevalueOf(Descriptors.EnumValueDescriptor desc)static Array<SentencepieceModel.TrainerSpec.ModelType>values()Returns an array containing the constants of this enum type, in the order they're declared. static SentencepieceModel.TrainerSpec.ModelTypevalueOf(String name)Returns the enum constant of this type with the specified name. -
-
Method Detail
-
getNumber
final int getNumber()
-
valueOf
@Deprecated() static SentencepieceModel.TrainerSpec.ModelType valueOf(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
The enum associated with the given numeric wire value.
-
forNumber
static SentencepieceModel.TrainerSpec.ModelType 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
static Internal.EnumLiteMap<SentencepieceModel.TrainerSpec.ModelType> internalGetValueMap()
-
getValueDescriptor
final Descriptors.EnumValueDescriptor getValueDescriptor()
-
getDescriptorForType
final Descriptors.EnumDescriptor getDescriptorForType()
-
getDescriptor
final static Descriptors.EnumDescriptor getDescriptor()
-
valueOf
static SentencepieceModel.TrainerSpec.ModelType valueOf(Descriptors.EnumValueDescriptor desc)
-
values
static Array<SentencepieceModel.TrainerSpec.ModelType> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static SentencepieceModel.TrainerSpec.ModelType 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.)
- Returns:
the enum constant with the specified name
-
-
-
-