Class StreamingAnnotateVideoResponse.Builder

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

    public static final class StreamingAnnotateVideoResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<StreamingAnnotateVideoResponse.Builder>
    implements StreamingAnnotateVideoResponseOrBuilder
     `StreamingAnnotateVideoResponse` is the only message returned to the client
     by `StreamingAnnotateVideo`. A series of zero or more
     `StreamingAnnotateVideoResponse` messages are streamed back to the client.
     
    Protobuf type google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
    • 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<StreamingAnnotateVideoResponse.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<StreamingAnnotateVideoResponse.Builder>
      • getDefaultInstanceForType

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

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

        public StreamingAnnotateVideoResponse 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<StreamingAnnotateVideoResponse.Builder>
      • hasError

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

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

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

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

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

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

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

        public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
         If set, returns a [google.rpc.Status][google.rpc.Status] message that
         specifies the error for the operation.
         
        .google.rpc.Status error = 1;
        Specified by:
        getErrorOrBuilder in interface StreamingAnnotateVideoResponseOrBuilder
      • hasAnnotationResults

        public boolean hasAnnotationResults()
         Streaming annotation results.
         
        .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
        Specified by:
        hasAnnotationResults in interface StreamingAnnotateVideoResponseOrBuilder
        Returns:
        Whether the annotationResults field is set.
      • clearAnnotationResults

        public StreamingAnnotateVideoResponse.Builder clearAnnotationResults()
         Streaming annotation results.
         
        .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
      • getAnnotationResultsBuilder

        public StreamingVideoAnnotationResults.Builder getAnnotationResultsBuilder()
         Streaming annotation results.
         
        .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
      • getAnnotationResultsUri

        public String getAnnotationResultsUri()
         Google Cloud Storage(GCS) URI that stores annotation results of one
         streaming session in JSON format.
         It is the annotation_result_storage_directory
         from the request followed by '/cloud_project_number-session_id'.
         
        string annotation_results_uri = 3;
        Specified by:
        getAnnotationResultsUri in interface StreamingAnnotateVideoResponseOrBuilder
        Returns:
        The annotationResultsUri.
      • getAnnotationResultsUriBytes

        public com.google.protobuf.ByteString getAnnotationResultsUriBytes()
         Google Cloud Storage(GCS) URI that stores annotation results of one
         streaming session in JSON format.
         It is the annotation_result_storage_directory
         from the request followed by '/cloud_project_number-session_id'.
         
        string annotation_results_uri = 3;
        Specified by:
        getAnnotationResultsUriBytes in interface StreamingAnnotateVideoResponseOrBuilder
        Returns:
        The bytes for annotationResultsUri.
      • setAnnotationResultsUri

        public StreamingAnnotateVideoResponse.Builder setAnnotationResultsUri​(String value)
         Google Cloud Storage(GCS) URI that stores annotation results of one
         streaming session in JSON format.
         It is the annotation_result_storage_directory
         from the request followed by '/cloud_project_number-session_id'.
         
        string annotation_results_uri = 3;
        Parameters:
        value - The annotationResultsUri to set.
        Returns:
        This builder for chaining.
      • clearAnnotationResultsUri

        public StreamingAnnotateVideoResponse.Builder clearAnnotationResultsUri()
         Google Cloud Storage(GCS) URI that stores annotation results of one
         streaming session in JSON format.
         It is the annotation_result_storage_directory
         from the request followed by '/cloud_project_number-session_id'.
         
        string annotation_results_uri = 3;
        Returns:
        This builder for chaining.
      • setAnnotationResultsUriBytes

        public StreamingAnnotateVideoResponse.Builder setAnnotationResultsUriBytes​(com.google.protobuf.ByteString value)
         Google Cloud Storage(GCS) URI that stores annotation results of one
         streaming session in JSON format.
         It is the annotation_result_storage_directory
         from the request followed by '/cloud_project_number-session_id'.
         
        string annotation_results_uri = 3;
        Parameters:
        value - The bytes for annotationResultsUri to set.
        Returns:
        This builder for chaining.