Class LongRunningRecognizeMetadata.Builder

  • All Implemented Interfaces:
    LongRunningRecognizeMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    LongRunningRecognizeMetadata

    public static final class LongRunningRecognizeMetadata.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<LongRunningRecognizeMetadata.Builder>
    implements LongRunningRecognizeMetadataOrBuilder
     Describes the progress of a long-running `LongRunningRecognize` call. It is
     included in the `metadata` field of the `Operation` returned by the
     `GetOperation` call of the `google::longrunning::Operations` service.
     
    Protobuf type google.cloud.speech.v1.LongRunningRecognizeMetadata
    • 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<LongRunningRecognizeMetadata.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<LongRunningRecognizeMetadata.Builder>
      • getDefaultInstanceForType

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

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

        public LongRunningRecognizeMetadata 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<LongRunningRecognizeMetadata.Builder>
      • mergeFrom

        public LongRunningRecognizeMetadata.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LongRunningRecognizeMetadata.Builder>
        Throws:
        IOException
      • getProgressPercent

        public int getProgressPercent()
         Approximate percentage of audio processed thus far. Guaranteed to be 100
         when the audio is fully processed and the results are available.
         
        int32 progress_percent = 1;
        Specified by:
        getProgressPercent in interface LongRunningRecognizeMetadataOrBuilder
        Returns:
        The progressPercent.
      • setProgressPercent

        public LongRunningRecognizeMetadata.Builder setProgressPercent​(int value)
         Approximate percentage of audio processed thus far. Guaranteed to be 100
         when the audio is fully processed and the results are available.
         
        int32 progress_percent = 1;
        Parameters:
        value - The progressPercent to set.
        Returns:
        This builder for chaining.
      • clearProgressPercent

        public LongRunningRecognizeMetadata.Builder clearProgressPercent()
         Approximate percentage of audio processed thus far. Guaranteed to be 100
         when the audio is fully processed and the results are available.
         
        int32 progress_percent = 1;
        Returns:
        This builder for chaining.
      • hasStartTime

        public boolean hasStartTime()
         Time when the request was received.
         
        .google.protobuf.Timestamp start_time = 2;
        Specified by:
        hasStartTime in interface LongRunningRecognizeMetadataOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         Time when the request was received.
         
        .google.protobuf.Timestamp start_time = 2;
        Specified by:
        getStartTime in interface LongRunningRecognizeMetadataOrBuilder
        Returns:
        The startTime.
      • setStartTime

        public LongRunningRecognizeMetadata.Builder setStartTime​(com.google.protobuf.Timestamp value)
         Time when the request was received.
         
        .google.protobuf.Timestamp start_time = 2;
      • setStartTime

        public LongRunningRecognizeMetadata.Builder setStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Time when the request was received.
         
        .google.protobuf.Timestamp start_time = 2;
      • mergeStartTime

        public LongRunningRecognizeMetadata.Builder mergeStartTime​(com.google.protobuf.Timestamp value)
         Time when the request was received.
         
        .google.protobuf.Timestamp start_time = 2;
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
         Time when the request was received.
         
        .google.protobuf.Timestamp start_time = 2;
      • hasLastUpdateTime

        public boolean hasLastUpdateTime()
         Time of the most recent processing update.
         
        .google.protobuf.Timestamp last_update_time = 3;
        Specified by:
        hasLastUpdateTime in interface LongRunningRecognizeMetadataOrBuilder
        Returns:
        Whether the lastUpdateTime field is set.
      • getLastUpdateTime

        public com.google.protobuf.Timestamp getLastUpdateTime()
         Time of the most recent processing update.
         
        .google.protobuf.Timestamp last_update_time = 3;
        Specified by:
        getLastUpdateTime in interface LongRunningRecognizeMetadataOrBuilder
        Returns:
        The lastUpdateTime.
      • setLastUpdateTime

        public LongRunningRecognizeMetadata.Builder setLastUpdateTime​(com.google.protobuf.Timestamp value)
         Time of the most recent processing update.
         
        .google.protobuf.Timestamp last_update_time = 3;
      • setLastUpdateTime

        public LongRunningRecognizeMetadata.Builder setLastUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Time of the most recent processing update.
         
        .google.protobuf.Timestamp last_update_time = 3;
      • mergeLastUpdateTime

        public LongRunningRecognizeMetadata.Builder mergeLastUpdateTime​(com.google.protobuf.Timestamp value)
         Time of the most recent processing update.
         
        .google.protobuf.Timestamp last_update_time = 3;
      • clearLastUpdateTime

        public LongRunningRecognizeMetadata.Builder clearLastUpdateTime()
         Time of the most recent processing update.
         
        .google.protobuf.Timestamp last_update_time = 3;
      • getLastUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder()
         Time of the most recent processing update.
         
        .google.protobuf.Timestamp last_update_time = 3;
      • getUri

        public String getUri()
         Output only. The URI of the audio file being transcribed. Empty if the
         audio was sent as byte content.
         
        string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUri in interface LongRunningRecognizeMetadataOrBuilder
        Returns:
        The uri.
      • getUriBytes

        public com.google.protobuf.ByteString getUriBytes()
         Output only. The URI of the audio file being transcribed. Empty if the
         audio was sent as byte content.
         
        string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUriBytes in interface LongRunningRecognizeMetadataOrBuilder
        Returns:
        The bytes for uri.
      • setUri

        public LongRunningRecognizeMetadata.Builder setUri​(String value)
         Output only. The URI of the audio file being transcribed. Empty if the
         audio was sent as byte content.
         
        string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The uri to set.
        Returns:
        This builder for chaining.
      • clearUri

        public LongRunningRecognizeMetadata.Builder clearUri()
         Output only. The URI of the audio file being transcribed. Empty if the
         audio was sent as byte content.
         
        string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUriBytes

        public LongRunningRecognizeMetadata.Builder setUriBytes​(com.google.protobuf.ByteString value)
         Output only. The URI of the audio file being transcribed. Empty if the
         audio was sent as byte content.
         
        string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for uri to set.
        Returns:
        This builder for chaining.