Package com.google.genai.proto
Class SentencepieceModel.ModelProto.SentencePiece
-
- All Implemented Interfaces:
-
com.google.genai.proto.SentencepieceModel.ModelProto.SentencePieceOrBuilder,com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class SentencepieceModel.ModelProto.SentencePiece extends GeneratedMessageV3.ExtendableMessage<MessageT> implements SentencepieceModel.ModelProto.SentencePieceOrBuilder
Protobuf type
com.google.genai.proto.ModelProto.SentencePiece
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumSentencepieceModel.ModelProto.SentencePiece.TypeProtobuf enum
com.google.genai.proto.ModelProto.SentencePiece.Typepublic final classSentencepieceModel.ModelProto.SentencePiece.BuilderProtobuf type
com.google.genai.proto.ModelProto.SentencePiece
-
Field Summary
Fields Modifier and Type Field Description public final static intPIECE_FIELD_NUMBERpublic final static intSCORE_FIELD_NUMBERpublic final static intTYPE_FIELD_NUMBERpublic final static Parser<SentencepieceModel.ModelProto.SentencePiece>PARSER
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessage
getAllFields, getAllFieldsRaw, getExtension, getExtensionCount, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField -
Methods inherited from class com.google.protobuf.GeneratedMessageV3
getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof -
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, toString -
Methods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo -
Methods inherited from class com.google.protobuf.Message
getParserForType -
Methods inherited from class com.google.protobuf.MessageLite
getParserForType -
Methods inherited from class com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDescriptor
final static Descriptors.Descriptor getDescriptor()
-
hasPiece
boolean hasPiece()
piece must not be empty.optional string piece = 1;- Returns:
Whether the piece field is set.
-
getPieceBytes
ByteString getPieceBytes()
piece must not be empty.optional string piece = 1;- Returns:
The bytes for piece.
-
hasScore
boolean hasScore()
optional float score = 2;- Returns:
Whether the score field is set.
-
getScore
float getScore()
optional float score = 2;- Returns:
The score.
-
hasType
boolean hasType()
optional .com.google.genai.proto.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];- Returns:
Whether the type field is set.
-
getType
SentencepieceModel.ModelProto.SentencePiece.Type getType()
optional .com.google.genai.proto.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];- Returns:
The type.
-
isInitialized
final boolean isInitialized()
-
writeTo
void writeTo(CodedOutputStream output)
-
getSerializedSize
int getSerializedSize()
-
hashCode
int hashCode()
-
parseFrom
static SentencepieceModel.ModelProto.SentencePiece parseFrom(ByteBuffer data)
-
parseFrom
static SentencepieceModel.ModelProto.SentencePiece parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static SentencepieceModel.ModelProto.SentencePiece parseFrom(ByteString data)
-
parseFrom
static SentencepieceModel.ModelProto.SentencePiece parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static SentencepieceModel.ModelProto.SentencePiece parseFrom(Array<byte> data)
-
parseFrom
static SentencepieceModel.ModelProto.SentencePiece parseFrom(Array<byte> data, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static SentencepieceModel.ModelProto.SentencePiece parseFrom(InputStream input)
-
parseFrom
static SentencepieceModel.ModelProto.SentencePiece parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
-
parseDelimitedFrom
static SentencepieceModel.ModelProto.SentencePiece parseDelimitedFrom(InputStream input)
-
parseDelimitedFrom
static SentencepieceModel.ModelProto.SentencePiece parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static SentencepieceModel.ModelProto.SentencePiece parseFrom(CodedInputStream input)
-
parseFrom
static SentencepieceModel.ModelProto.SentencePiece parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
-
newBuilderForType
SentencepieceModel.ModelProto.SentencePiece.Builder newBuilderForType()
-
newBuilder
static SentencepieceModel.ModelProto.SentencePiece.Builder newBuilder()
-
newBuilder
static SentencepieceModel.ModelProto.SentencePiece.Builder newBuilder(SentencepieceModel.ModelProto.SentencePiece prototype)
-
getDefaultInstance
static SentencepieceModel.ModelProto.SentencePiece getDefaultInstance()
-
parser
static Parser<SentencepieceModel.ModelProto.SentencePiece> parser()
-
getParserForType
Parser<SentencepieceModel.ModelProto.SentencePiece> getParserForType()
-
getDefaultInstanceForType
SentencepieceModel.ModelProto.SentencePiece getDefaultInstanceForType()
-
-
-
-