Package com.google.genai.proto
Enum SentencepieceModel.ModelProto.SentencePiece.Type
-
- All Implemented Interfaces:
-
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum
public enum SentencepieceModel.ModelProto.SentencePiece.Type implements ProtocolMessageEnumProtobuf enum
com.google.genai.proto.ModelProto.SentencePiece.Type
-
-
Field Summary
Fields Modifier and Type Field Description public final static intNORMAL_VALUEpublic final static intUNKNOWN_VALUEpublic final static intCONTROL_VALUEpublic final static intUSER_DEFINED_VALUEpublic final static intBYTE_VALUEpublic final static intUNUSED_VALUE
-
Enum Constant Summary
Enum Constants Enum Constant Description NORMALnormal symbolNORMAL = 1;UNKNOWNunknown symbol. only <unk> for now.UNKNOWN = 2;CONTROLcontrol symbols. </s>, <s>, <2ja> etc.CONTROL = 3;USER_DEFINEDuser defined symbols.USER_DEFINED = 4;BYTETypical usage of USER_DEFINED symbol is placeholder.BYTE = 6;UNUSEDthis piece is not used.UNUSED = 5;
-
Method Summary
Modifier and Type Method Description final intgetNumber()static SentencepieceModel.ModelProto.SentencePiece.TypevalueOf(int value)static SentencepieceModel.ModelProto.SentencePiece.TypeforNumber(int value)static Internal.EnumLiteMap<SentencepieceModel.ModelProto.SentencePiece.Type>internalGetValueMap()final Descriptors.EnumValueDescriptorgetValueDescriptor()final Descriptors.EnumDescriptorgetDescriptorForType()final static Descriptors.EnumDescriptorgetDescriptor()static SentencepieceModel.ModelProto.SentencePiece.TypevalueOf(Descriptors.EnumValueDescriptor desc)static Array<SentencepieceModel.ModelProto.SentencePiece.Type>values()Returns an array containing the constants of this enum type, in the order they're declared. static SentencepieceModel.ModelProto.SentencePiece.TypevalueOf(String name)Returns the enum constant of this type with the specified name. -
-
Method Detail
-
getNumber
final int getNumber()
-
valueOf
@Deprecated() static SentencepieceModel.ModelProto.SentencePiece.Type 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.ModelProto.SentencePiece.Type 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.ModelProto.SentencePiece.Type> internalGetValueMap()
-
getValueDescriptor
final Descriptors.EnumValueDescriptor getValueDescriptor()
-
getDescriptorForType
final Descriptors.EnumDescriptor getDescriptorForType()
-
getDescriptor
final static Descriptors.EnumDescriptor getDescriptor()
-
valueOf
static SentencepieceModel.ModelProto.SentencePiece.Type valueOf(Descriptors.EnumValueDescriptor desc)
-
values
static Array<SentencepieceModel.ModelProto.SentencePiece.Type> 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.ModelProto.SentencePiece.Type 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
-
-
-
-