-
- All Implemented Interfaces:
-
ai.basemind.grpc.StreamingPromptResponseOrBuilder,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder
public final class StreamingPromptResponse extends GeneratedMessageLite<StreamingPromptResponse, StreamingPromptResponse.Builder> implements StreamingPromptResponseOrBuilder
Protobuf typeAn Streaming Prompt Response Message{@code gateway.v1.StreamingPromptResponse}
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classStreamingPromptResponse.Builder
Protobuf typeAn Streaming Prompt Response Message{@code gateway.v1.StreamingPromptResponse}
-
Field Summary
Fields Modifier and Type Field Description public final static intCONTENT_FIELD_NUMBERpublic final static intFINISH_REASON_FIELD_NUMBERpublic final static intREQUEST_TOKENS_FIELD_NUMBERpublic final static intRESPONSE_TOKENS_FIELD_NUMBERpublic final static intSTREAM_DURATION_FIELD_NUMBER
-
Method Summary
Modifier and Type Method Description StringgetContent()Prompt Contentstring content = 1;ByteStringgetContentBytes()Prompt Contentstring content = 1;booleanhasFinishReason()Finish reason, given when the stream endsoptional string finish_reason = 2;StringgetFinishReason()Finish reason, given when the stream endsoptional string finish_reason = 2;ByteStringgetFinishReasonBytes()Finish reason, given when the stream endsoptional string finish_reason = 2;booleanhasRequestTokens()Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;intgetRequestTokens()Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;booleanhasResponseTokens()Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;intgetResponseTokens()Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;booleanhasStreamDuration()Stream duration, given when the stream endsoptional uint32 stream_duration = 5;intgetStreamDuration()Stream duration, given when the stream endsoptional uint32 stream_duration = 5;static StreamingPromptResponseparseFrom(ByteBuffer data)static StreamingPromptResponseparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)static StreamingPromptResponseparseFrom(ByteString data)static StreamingPromptResponseparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)static StreamingPromptResponseparseFrom(Array<byte> data)static StreamingPromptResponseparseFrom(Array<byte> data, ExtensionRegistryLite extensionRegistry)static StreamingPromptResponseparseFrom(InputStream input)static StreamingPromptResponseparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)static StreamingPromptResponseparseDelimitedFrom(InputStream input)static StreamingPromptResponseparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)static StreamingPromptResponseparseFrom(CodedInputStream input)static StreamingPromptResponseparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)static StreamingPromptResponse.BuildernewBuilder()static StreamingPromptResponse.BuildernewBuilder(StreamingPromptResponse prototype)static StreamingPromptResponsegetDefaultInstance()static Parser<StreamingPromptResponse>parser()-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
equals, getDefaultInstanceForType, getParserForType, hashCode, isInitialized, newBuilderForType, newRepeatedGeneratedExtension, newSingularGeneratedExtension, toBuilder, toString, writeTo -
Methods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo -
Methods inherited from class com.google.protobuf.MessageLite
getParserForType, newBuilderForType, toBuilder -
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
-
getContent
String getContent()
Prompt Contentstring content = 1;
-
getContentBytes
ByteString getContentBytes()
Prompt Contentstring content = 1;
-
hasFinishReason
boolean hasFinishReason()
Finish reason, given when the stream endsoptional string finish_reason = 2;
-
getFinishReason
String getFinishReason()
Finish reason, given when the stream endsoptional string finish_reason = 2;
-
getFinishReasonBytes
ByteString getFinishReasonBytes()
Finish reason, given when the stream endsoptional string finish_reason = 2;
-
hasRequestTokens
boolean hasRequestTokens()
Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;
-
getRequestTokens
int getRequestTokens()
Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;
-
hasResponseTokens
boolean hasResponseTokens()
Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;
-
getResponseTokens
int getResponseTokens()
Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;
-
hasStreamDuration
boolean hasStreamDuration()
Stream duration, given when the stream endsoptional uint32 stream_duration = 5;
-
getStreamDuration
int getStreamDuration()
Stream duration, given when the stream endsoptional uint32 stream_duration = 5;
-
parseFrom
static StreamingPromptResponse parseFrom(ByteBuffer data)
-
parseFrom
static StreamingPromptResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static StreamingPromptResponse parseFrom(ByteString data)
-
parseFrom
static StreamingPromptResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static StreamingPromptResponse parseFrom(Array<byte> data)
-
parseFrom
static StreamingPromptResponse parseFrom(Array<byte> data, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static StreamingPromptResponse parseFrom(InputStream input)
-
parseFrom
static StreamingPromptResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
-
parseDelimitedFrom
static StreamingPromptResponse parseDelimitedFrom(InputStream input)
-
parseDelimitedFrom
static StreamingPromptResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static StreamingPromptResponse parseFrom(CodedInputStream input)
-
parseFrom
static StreamingPromptResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
-
newBuilder
static StreamingPromptResponse.Builder newBuilder()
-
newBuilder
static StreamingPromptResponse.Builder newBuilder(StreamingPromptResponse prototype)
-
getDefaultInstance
static StreamingPromptResponse getDefaultInstance()
-
parser
static Parser<StreamingPromptResponse> parser()
-
-
-
-