Class StreamingTranslateSpeechResponse.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResponse.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResponse.Builder>
      • getDefaultInstanceForType

        public StreamingTranslateSpeechResponse getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public StreamingTranslateSpeechResponse build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public StreamingTranslateSpeechResponse buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResponse.Builder>
      • hasError

        public boolean hasError()
         Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
         specifies the error for the operation.
         
        .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasError in interface StreamingTranslateSpeechResponseOrBuilder
        Returns:
        Whether the error field is set.
      • getError

        public com.google.rpc.Status getError()
         Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
         specifies the error for the operation.
         
        .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getError in interface StreamingTranslateSpeechResponseOrBuilder
        Returns:
        The error.
      • setError

        public StreamingTranslateSpeechResponse.Builder setError​(com.google.rpc.Status value)
         Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
         specifies the error for the operation.
         
        .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setError

        public StreamingTranslateSpeechResponse.Builder setError​(com.google.rpc.Status.Builder builderForValue)
         Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
         specifies the error for the operation.
         
        .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeError

        public StreamingTranslateSpeechResponse.Builder mergeError​(com.google.rpc.Status value)
         Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
         specifies the error for the operation.
         
        .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearError

        public StreamingTranslateSpeechResponse.Builder clearError()
         Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
         specifies the error for the operation.
         
        .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getErrorBuilder

        public com.google.rpc.Status.Builder getErrorBuilder()
         Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
         specifies the error for the operation.
         
        .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getErrorOrBuilder

        public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
         Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
         specifies the error for the operation.
         
        .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrorOrBuilder in interface StreamingTranslateSpeechResponseOrBuilder
      • hasResult

        public boolean hasResult()
         Output only. The translation result that is currently being processed (is_final could be
         true or false).
         
        .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult result = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasResult in interface StreamingTranslateSpeechResponseOrBuilder
        Returns:
        Whether the result field is set.
      • clearResult

        public StreamingTranslateSpeechResponse.Builder clearResult()
         Output only. The translation result that is currently being processed (is_final could be
         true or false).
         
        .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult result = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getResultBuilder

        public StreamingTranslateSpeechResult.Builder getResultBuilder()
         Output only. The translation result that is currently being processed (is_final could be
         true or false).
         
        .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult result = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getSpeechEventTypeValue

        public int getSpeechEventTypeValue()
         Output only. Indicates the type of speech event.
         
        .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType speech_event_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSpeechEventTypeValue in interface StreamingTranslateSpeechResponseOrBuilder
        Returns:
        The enum numeric value on the wire for speechEventType.
      • setSpeechEventTypeValue

        public StreamingTranslateSpeechResponse.Builder setSpeechEventTypeValue​(int value)
         Output only. Indicates the type of speech event.
         
        .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType speech_event_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for speechEventType to set.
        Returns:
        This builder for chaining.
      • clearSpeechEventType

        public StreamingTranslateSpeechResponse.Builder clearSpeechEventType()
         Output only. Indicates the type of speech event.
         
        .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType speech_event_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.