Package com.google.genai.proto
Interface SentencepieceModel.ModelProto.SentencePieceOrBuilder
-
- All Implemented Interfaces:
-
com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
public interface SentencepieceModel.ModelProto.SentencePieceOrBuilder implements GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT>
-
-
Method Summary
Modifier and Type Method Description abstract booleanhasPiece()piece must not be empty.optional string piece = 1;abstract StringgetPiece()piece must not be empty.optional string piece = 1;abstract ByteStringgetPieceBytes()piece must not be empty.optional string piece = 1;abstract booleanhasScore()optional float score = 2;abstract floatgetScore()optional float score = 2;abstract booleanhasType()optional .com.google.genai.proto.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];abstract SentencepieceModel.ModelProto.SentencePiece.TypegetType()optional .com.google.genai.proto.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder
getDefaultInstanceForType, getExtension, getExtensionCount, hasExtension -
Methods inherited from class com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof -
Methods inherited from class com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
hasPiece
abstract boolean hasPiece()
piece must not be empty.optional string piece = 1;- Returns:
Whether the piece field is set.
-
getPiece
abstract String getPiece()
piece must not be empty.optional string piece = 1;- Returns:
The piece.
-
getPieceBytes
abstract ByteString getPieceBytes()
piece must not be empty.optional string piece = 1;- Returns:
The bytes for piece.
-
hasScore
abstract boolean hasScore()
optional float score = 2;- Returns:
Whether the score field is set.
-
getScore
abstract float getScore()
optional float score = 2;- Returns:
The score.
-
hasType
abstract boolean hasType()
optional .com.google.genai.proto.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];- Returns:
Whether the type field is set.
-
getType
abstract SentencepieceModel.ModelProto.SentencePiece.Type getType()
optional .com.google.genai.proto.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];- Returns:
The type.
-
-
-
-