Class StreamingAnnotateVideoResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamingAnnotateVideoResponse.Builder>
com.google.cloud.videointelligence.v1p3beta1.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.GeneratedMessage.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 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.Builder<StreamingAnnotateVideoResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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

      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
    • mergeFrom

      public StreamingAnnotateVideoResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingAnnotateVideoResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<StreamingAnnotateVideoResponse.Builder>
    • mergeFrom

      public StreamingAnnotateVideoResponse.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<StreamingAnnotateVideoResponse.Builder>
      Throws:
      IOException
    • 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 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

       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(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

       If set, returns a [google.rpc.Status][google.rpc.Status] message that
       specifies the error for the operation.
       
      .google.rpc.Status error = 1;
    • 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 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 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.
    • getAnnotationResults

      public StreamingVideoAnnotationResults getAnnotationResults()
       Streaming annotation results.
       
      .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
      Specified by:
      getAnnotationResults in interface StreamingAnnotateVideoResponseOrBuilder
      Returns:
      The annotationResults.
    • setAnnotationResults

       Streaming annotation results.
       
      .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
    • setAnnotationResults

       Streaming annotation results.
       
      .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
    • mergeAnnotationResults

       Streaming annotation results.
       
      .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
    • 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;
    • getAnnotationResultsOrBuilder

      public StreamingVideoAnnotationResultsOrBuilder getAnnotationResultsOrBuilder()
       Streaming annotation results.
       
      .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
      Specified by:
      getAnnotationResultsOrBuilder in interface StreamingAnnotateVideoResponseOrBuilder
    • 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.