-
- All Implemented Interfaces:
-
ai.basemind.grpc.StreamingPromptResponseOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,java.lang.Cloneable
public final class StreamingPromptResponse.Builder extends GeneratedMessageLite.Builder<StreamingPromptResponse, StreamingPromptResponse.Builder> implements StreamingPromptResponseOrBuilder
Protobuf typeAn Streaming Prompt Response Message{@code gateway.v1.StreamingPromptResponse}
-
-
Method Summary
Modifier and Type Method Description StringgetContent()Prompt Contentstring content = 1;ByteStringgetContentBytes()Prompt Contentstring content = 1;StreamingPromptResponse.BuildersetContent(String value)Prompt Contentstring content = 1;StreamingPromptResponse.BuilderclearContent()Prompt Contentstring content = 1;StreamingPromptResponse.BuildersetContentBytes(ByteString value)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;StreamingPromptResponse.BuildersetFinishReason(String value)Finish reason, given when the stream endsoptional string finish_reason = 2;StreamingPromptResponse.BuilderclearFinishReason()Finish reason, given when the stream endsoptional string finish_reason = 2;StreamingPromptResponse.BuildersetFinishReasonBytes(ByteString value)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;StreamingPromptResponse.BuildersetRequestTokens(int value)Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;StreamingPromptResponse.BuilderclearRequestTokens()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;StreamingPromptResponse.BuildersetResponseTokens(int value)Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;StreamingPromptResponse.BuilderclearResponseTokens()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;StreamingPromptResponse.BuildersetStreamDuration(int value)Stream duration, given when the stream endsoptional uint32 stream_duration = 5;StreamingPromptResponse.BuilderclearStreamDuration()Stream duration, given when the stream endsoptional uint32 stream_duration = 5;-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, getDefaultInstanceForType, isInitialized, mergeFrom -
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
mergeDelimitedFrom -
Methods inherited from class com.google.protobuf.MessageLite.Builder
build, buildPartial, clear, clone, mergeFrom -
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;
-
setContent
StreamingPromptResponse.Builder setContent(String value)
Prompt Contentstring content = 1;- Parameters:
value- The content to set.
-
clearContent
StreamingPromptResponse.Builder clearContent()
Prompt Contentstring content = 1;
-
setContentBytes
StreamingPromptResponse.Builder setContentBytes(ByteString value)
Prompt Contentstring content = 1;- Parameters:
value- The bytes for content to set.
-
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;
-
setFinishReason
StreamingPromptResponse.Builder setFinishReason(String value)
Finish reason, given when the stream endsoptional string finish_reason = 2;- Parameters:
value- The finishReason to set.
-
clearFinishReason
StreamingPromptResponse.Builder clearFinishReason()
Finish reason, given when the stream endsoptional string finish_reason = 2;
-
setFinishReasonBytes
StreamingPromptResponse.Builder setFinishReasonBytes(ByteString value)
Finish reason, given when the stream endsoptional string finish_reason = 2;- Parameters:
value- The bytes for finishReason to set.
-
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;
-
setRequestTokens
StreamingPromptResponse.Builder setRequestTokens(int value)
Number of tokens used for the prompt request, given when the stream endsoptional uint32 request_tokens = 3;- Parameters:
value- The requestTokens to set.
-
clearRequestTokens
StreamingPromptResponse.Builder clearRequestTokens()
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;
-
setResponseTokens
StreamingPromptResponse.Builder setResponseTokens(int value)
Number of tokens used for the prompt response, given when the stream endsoptional uint32 response_tokens = 4;- Parameters:
value- The responseTokens to set.
-
clearResponseTokens
StreamingPromptResponse.Builder clearResponseTokens()
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;
-
setStreamDuration
StreamingPromptResponse.Builder setStreamDuration(int value)
Stream duration, given when the stream endsoptional uint32 stream_duration = 5;- Parameters:
value- The streamDuration to set.
-
clearStreamDuration
StreamingPromptResponse.Builder clearStreamDuration()
Stream duration, given when the stream endsoptional uint32 stream_duration = 5;
-
-
-
-