Class RecognitionResponseMetadata

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.speech.v2.RecognitionResponseMetadata
All Implemented Interfaces:
RecognitionResponseMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RecognitionResponseMetadata extends com.google.protobuf.GeneratedMessage implements RecognitionResponseMetadataOrBuilder
 Metadata about the recognition request and response.
 
Protobuf type google.cloud.speech.v2.RecognitionResponseMetadata
See Also:
  • Field Details

    • REQUEST_ID_FIELD_NUMBER

      public static final int REQUEST_ID_FIELD_NUMBER
      See Also:
    • TOTAL_BILLED_DURATION_FIELD_NUMBER

      public static final int TOTAL_BILLED_DURATION_FIELD_NUMBER
      See Also:
    • PROMPT_FIELD_NUMBER

      public static final int PROMPT_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getRequestId

      public String getRequestId()
       Global request identifier auto-generated by the API.
       
      string request_id = 9 [(.google.api.field_info) = { ... }
      Specified by:
      getRequestId in interface RecognitionResponseMetadataOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       Global request identifier auto-generated by the API.
       
      string request_id = 9 [(.google.api.field_info) = { ... }
      Specified by:
      getRequestIdBytes in interface RecognitionResponseMetadataOrBuilder
      Returns:
      The bytes for requestId.
    • hasTotalBilledDuration

      public boolean hasTotalBilledDuration()
       When available, billed audio seconds for the corresponding request.
       
      .google.protobuf.Duration total_billed_duration = 6;
      Specified by:
      hasTotalBilledDuration in interface RecognitionResponseMetadataOrBuilder
      Returns:
      Whether the totalBilledDuration field is set.
    • getTotalBilledDuration

      public com.google.protobuf.Duration getTotalBilledDuration()
       When available, billed audio seconds for the corresponding request.
       
      .google.protobuf.Duration total_billed_duration = 6;
      Specified by:
      getTotalBilledDuration in interface RecognitionResponseMetadataOrBuilder
      Returns:
      The totalBilledDuration.
    • getTotalBilledDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder()
       When available, billed audio seconds for the corresponding request.
       
      .google.protobuf.Duration total_billed_duration = 6;
      Specified by:
      getTotalBilledDurationOrBuilder in interface RecognitionResponseMetadataOrBuilder
    • hasPrompt

      public boolean hasPrompt()
       Optional. Output only. Provides the prompt used for the recognition
       request.
       
      optional string prompt = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPrompt in interface RecognitionResponseMetadataOrBuilder
      Returns:
      Whether the prompt field is set.
    • getPrompt

      public String getPrompt()
       Optional. Output only. Provides the prompt used for the recognition
       request.
       
      optional string prompt = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPrompt in interface RecognitionResponseMetadataOrBuilder
      Returns:
      The prompt.
    • getPromptBytes

      public com.google.protobuf.ByteString getPromptBytes()
       Optional. Output only. Provides the prompt used for the recognition
       request.
       
      optional string prompt = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPromptBytes in interface RecognitionResponseMetadataOrBuilder
      Returns:
      The bytes for prompt.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RecognitionResponseMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RecognitionResponseMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RecognitionResponseMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RecognitionResponseMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RecognitionResponseMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RecognitionResponseMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RecognitionResponseMetadata parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RecognitionResponseMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RecognitionResponseMetadata parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RecognitionResponseMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RecognitionResponseMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RecognitionResponseMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RecognitionResponseMetadata.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RecognitionResponseMetadata.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RecognitionResponseMetadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RecognitionResponseMetadata getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RecognitionResponseMetadata> parser()
    • getParserForType

      public com.google.protobuf.Parser<RecognitionResponseMetadata> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RecognitionResponseMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder