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 class
Protobuf typecom.google.genai.proto.ModelProto.SentencePiece
static enum
Protobuf enumcom.google.genai.proto.ModelProto.SentencePiece.Type
Nested 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 int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Parser<SentencepieceModel.ModelProto.SentencePiece>
getPiece()
piece must not be empty.com.google.protobuf.ByteString
piece must not be empty.float
getScore()
optional float score = 2;
int
getType()
optional .com.google.genai.proto.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];
int
hashCode()
boolean
hasPiece()
piece must not be empty.boolean
hasScore()
optional float score = 2;
boolean
hasType()
optional .com.google.genai.proto.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];
final boolean
parseDelimitedFrom
(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()
void
writeTo
(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, 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, writeTo
Methods inherited from interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods 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:
hasPiece
in interfaceSentencepieceModel.ModelProto.SentencePieceOrBuilder
- Returns:
- Whether the piece field is set.
-
getPiece
piece must not be empty.
optional string piece = 1;
- Specified by:
getPiece
in interfaceSentencepieceModel.ModelProto.SentencePieceOrBuilder
- Returns:
- The piece.
-
getPieceBytes
public com.google.protobuf.ByteString getPieceBytes()piece must not be empty.
optional string piece = 1;
- Specified by:
getPieceBytes
in interfaceSentencepieceModel.ModelProto.SentencePieceOrBuilder
- Returns:
- The bytes for piece.
-
hasScore
public boolean hasScore()optional float score = 2;
- Specified by:
hasScore
in interfaceSentencepieceModel.ModelProto.SentencePieceOrBuilder
- Returns:
- Whether the score field is set.
-
getScore
public float getScore()optional float score = 2;
- Specified by:
getScore
in interfaceSentencepieceModel.ModelProto.SentencePieceOrBuilder
- Returns:
- The score.
-
hasType
public boolean hasType()optional .com.google.genai.proto.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];
- Specified by:
hasType
in 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:
getType
in interfaceSentencepieceModel.ModelProto.SentencePieceOrBuilder
- Returns:
- The type.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.ExtendableMessage<SentencepieceModel.ModelProto.SentencePiece>
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static SentencepieceModel.ModelProto.SentencePiece.Builder newBuilder(SentencepieceModel.ModelProto.SentencePiece prototype) -
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<SentencepieceModel.ModelProto.SentencePiece>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-