Package 

Interface StreamingPromptResponseOrBuilder

    • Method Summary

      Modifier and Type Method Description
      abstract String getContent()
      Prompt Content
      
      string content = 1;
      abstract ByteString getContentBytes()
      Prompt Content
      
      string content = 1;
      abstract boolean hasFinishReason()
      Finish reason, given when the stream ends
      
      optional string finish_reason = 2;
      abstract String getFinishReason()
      Finish reason, given when the stream ends
      
      optional string finish_reason = 2;
      abstract ByteString getFinishReasonBytes()
      Finish reason, given when the stream ends
      
      optional string finish_reason = 2;
      abstract boolean hasRequestTokens()
      Number of tokens used for the prompt request, given when the stream ends
      
      optional uint32 request_tokens = 3;
      abstract int getRequestTokens()
      Number of tokens used for the prompt request, given when the stream ends
      
      optional uint32 request_tokens = 3;
      abstract boolean hasResponseTokens()
      Number of tokens used for the prompt response, given when the stream ends
      
      optional uint32 response_tokens = 4;
      abstract int getResponseTokens()
      Number of tokens used for the prompt response, given when the stream ends
      
      optional uint32 response_tokens = 4;
      abstract boolean hasStreamDuration()
      Stream duration, given when the stream ends
      
      optional uint32 stream_duration = 5;
      abstract int getStreamDuration()
      Stream duration, given when the stream ends
      
      optional uint32 stream_duration = 5;
      • 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

      • getContentBytes

         abstract ByteString getContentBytes()
        Prompt Content
        
        string content = 1;
      • hasFinishReason

         abstract boolean hasFinishReason()
        Finish reason, given when the stream ends
        
        optional string finish_reason = 2;
      • getFinishReason

         abstract String getFinishReason()
        Finish reason, given when the stream ends
        
        optional string finish_reason = 2;
      • getFinishReasonBytes

         abstract ByteString getFinishReasonBytes()
        Finish reason, given when the stream ends
        
        optional string finish_reason = 2;
      • hasRequestTokens

         abstract boolean hasRequestTokens()
        Number of tokens used for the prompt request, given when the stream ends
        
        optional uint32 request_tokens = 3;
      • getRequestTokens

         abstract int getRequestTokens()
        Number of tokens used for the prompt request, given when the stream ends
        
        optional uint32 request_tokens = 3;
      • hasResponseTokens

         abstract boolean hasResponseTokens()
        Number of tokens used for the prompt response, given when the stream ends
        
        optional uint32 response_tokens = 4;
      • getResponseTokens

         abstract int getResponseTokens()
        Number of tokens used for the prompt response, given when the stream ends
        
        optional uint32 response_tokens = 4;
      • hasStreamDuration

         abstract boolean hasStreamDuration()
        Stream duration, given when the stream ends
        
        optional uint32 stream_duration = 5;
      • getStreamDuration

         abstract int getStreamDuration()
        Stream duration, given when the stream ends
        
        optional uint32 stream_duration = 5;