Package com.google.genai.proto
Class SentencepieceModel.ModelProto.SentencePiece
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.ExtendableMessage<SentencepieceModel.ModelProto.SentencePiece>
com.google.genai.proto.SentencepieceModel.ModelProto.SentencePiece
- All Implemented Interfaces:
SentencepieceModel.ModelProto.SentencePieceOrBuilder,com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<SentencepieceModel.ModelProto.SentencePiece>,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- SentencepieceModel.ModelProto
public static final class SentencepieceModel.ModelProto.SentencePiece
extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<SentencepieceModel.ModelProto.SentencePiece>
implements SentencepieceModel.ModelProto.SentencePieceOrBuilder
Protobuf type
com.google.genai.proto.ModelProto.SentencePiece- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typecom.google.genai.proto.ModelProto.SentencePiecestatic enumProtobuf enumcom.google.genai.proto.ModelProto.SentencePiece.TypeNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.protobuf.Parser<SentencepieceModel.ModelProto.SentencePiece>Deprecated.static final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<SentencepieceModel.ModelProto.SentencePiece>getPiece()piece must not be empty.com.google.protobuf.ByteStringpiece must not be empty.floatgetScore()optional float score = 2;intgetType()optional .com.google.genai.proto.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];inthashCode()booleanhasPiece()piece must not be empty.booleanhasScore()optional float score = 2;booleanhasType()optional .com.google.genai.proto.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];final booleanparseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SentencepieceModel.ModelProto.SentencePiece>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessage
getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasFieldMethods inherited from class com.google.protobuf.GeneratedMessageV3
getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneofMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtensionMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
PIECE_FIELD_NUMBER
public static final int PIECE_FIELD_NUMBER- See Also:
-
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<SentencepieceModel.ModelProto.SentencePiece> PARSERDeprecated.
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
hasPiece
public boolean hasPiece()piece must not be empty.
optional string piece = 1;- Specified by:
hasPiecein interfaceSentencepieceModel.ModelProto.SentencePieceOrBuilder- Returns:
- Whether the piece field is set.
-
getPiece
piece must not be empty.
optional string piece = 1;- Specified by:
getPiecein interfaceSentencepieceModel.ModelProto.SentencePieceOrBuilder- Returns:
- The piece.
-
getPieceBytes
public com.google.protobuf.ByteString getPieceBytes()piece must not be empty.
optional string piece = 1;- Specified by:
getPieceBytesin interfaceSentencepieceModel.ModelProto.SentencePieceOrBuilder- Returns:
- The bytes for piece.
-
hasScore
public boolean hasScore()optional float score = 2;- Specified by:
hasScorein interfaceSentencepieceModel.ModelProto.SentencePieceOrBuilder- Returns:
- Whether the score field is set.
-
getScore
public float getScore()optional float score = 2;- Specified by:
getScorein interfaceSentencepieceModel.ModelProto.SentencePieceOrBuilder- Returns:
- The score.
-
hasType
public boolean hasType()optional .com.google.genai.proto.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];- Specified by:
hasTypein interfaceSentencepieceModel.ModelProto.SentencePieceOrBuilder- Returns:
- Whether the type field is set.
-
getType
optional .com.google.genai.proto.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];- Specified by:
getTypein interfaceSentencepieceModel.ModelProto.SentencePieceOrBuilder- Returns:
- The type.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.ExtendableMessage<SentencepieceModel.ModelProto.SentencePiece>
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SentencepieceModel.ModelProto.SentencePiece parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SentencepieceModel.ModelProto.SentencePiece parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SentencepieceModel.ModelProto.SentencePiece parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SentencepieceModel.ModelProto.SentencePiece parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SentencepieceModel.ModelProto.SentencePiece parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SentencepieceModel.ModelProto.SentencePiece parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SentencepieceModel.ModelProto.SentencePiece parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SentencepieceModel.ModelProto.SentencePiece parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static SentencepieceModel.ModelProto.SentencePiece parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static SentencepieceModel.ModelProto.SentencePiece parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SentencepieceModel.ModelProto.SentencePiece parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SentencepieceModel.ModelProto.SentencePiece parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static SentencepieceModel.ModelProto.SentencePiece.Builder newBuilder(SentencepieceModel.ModelProto.SentencePiece prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<SentencepieceModel.ModelProto.SentencePiece>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-