Class AnnotateVideoRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnnotateVideoRequest.Builder>
com.google.cloud.videointelligence.v1.AnnotateVideoRequest.Builder
All Implemented Interfaces:
AnnotateVideoRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AnnotateVideoRequest

public static final class AnnotateVideoRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<AnnotateVideoRequest.Builder> implements AnnotateVideoRequestOrBuilder
 Video annotation request.
 
Protobuf type google.cloud.videointelligence.v1.AnnotateVideoRequest
  • 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<AnnotateVideoRequest.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<AnnotateVideoRequest.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<AnnotateVideoRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getInputUri()
       Input video location. Currently, only
       [Cloud Storage](https://cloud.google.com/storage/) URIs are
       supported. URIs must be specified in the following format:
       `gs://bucket-id/object-id` (other URI formats return
       [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
       more information, see [Request
       URIs](https://cloud.google.com/storage/docs/request-endpoints). To identify
       multiple videos, a video URI may include wildcards in the `object-id`.
       Supported wildcards: '*' to match 0 or more characters;
       '?' to match 1 character. If unset, the input video should be embedded
       in the request as `input_content`. If set, `input_content` must be unset.
       
      string input_uri = 1;
      Specified by:
      getInputUri in interface AnnotateVideoRequestOrBuilder
      Returns:
      The inputUri.
    • getInputUriBytes

      public com.google.protobuf.ByteString getInputUriBytes()
       Input video location. Currently, only
       [Cloud Storage](https://cloud.google.com/storage/) URIs are
       supported. URIs must be specified in the following format:
       `gs://bucket-id/object-id` (other URI formats return
       [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
       more information, see [Request
       URIs](https://cloud.google.com/storage/docs/request-endpoints). To identify
       multiple videos, a video URI may include wildcards in the `object-id`.
       Supported wildcards: '*' to match 0 or more characters;
       '?' to match 1 character. If unset, the input video should be embedded
       in the request as `input_content`. If set, `input_content` must be unset.
       
      string input_uri = 1;
      Specified by:
      getInputUriBytes in interface AnnotateVideoRequestOrBuilder
      Returns:
      The bytes for inputUri.
    • setInputUri

      public AnnotateVideoRequest.Builder setInputUri(String value)
       Input video location. Currently, only
       [Cloud Storage](https://cloud.google.com/storage/) URIs are
       supported. URIs must be specified in the following format:
       `gs://bucket-id/object-id` (other URI formats return
       [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
       more information, see [Request
       URIs](https://cloud.google.com/storage/docs/request-endpoints). To identify
       multiple videos, a video URI may include wildcards in the `object-id`.
       Supported wildcards: '*' to match 0 or more characters;
       '?' to match 1 character. If unset, the input video should be embedded
       in the request as `input_content`. If set, `input_content` must be unset.
       
      string input_uri = 1;
      Parameters:
      value - The inputUri to set.
      Returns:
      This builder for chaining.
    • clearInputUri

      public AnnotateVideoRequest.Builder clearInputUri()
       Input video location. Currently, only
       [Cloud Storage](https://cloud.google.com/storage/) URIs are
       supported. URIs must be specified in the following format:
       `gs://bucket-id/object-id` (other URI formats return
       [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
       more information, see [Request
       URIs](https://cloud.google.com/storage/docs/request-endpoints). To identify
       multiple videos, a video URI may include wildcards in the `object-id`.
       Supported wildcards: '*' to match 0 or more characters;
       '?' to match 1 character. If unset, the input video should be embedded
       in the request as `input_content`. If set, `input_content` must be unset.
       
      string input_uri = 1;
      Returns:
      This builder for chaining.
    • setInputUriBytes

      public AnnotateVideoRequest.Builder setInputUriBytes(com.google.protobuf.ByteString value)
       Input video location. Currently, only
       [Cloud Storage](https://cloud.google.com/storage/) URIs are
       supported. URIs must be specified in the following format:
       `gs://bucket-id/object-id` (other URI formats return
       [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
       more information, see [Request
       URIs](https://cloud.google.com/storage/docs/request-endpoints). To identify
       multiple videos, a video URI may include wildcards in the `object-id`.
       Supported wildcards: '*' to match 0 or more characters;
       '?' to match 1 character. If unset, the input video should be embedded
       in the request as `input_content`. If set, `input_content` must be unset.
       
      string input_uri = 1;
      Parameters:
      value - The bytes for inputUri to set.
      Returns:
      This builder for chaining.
    • getInputContent

      public com.google.protobuf.ByteString getInputContent()
       The video data bytes.
       If unset, the input video(s) should be specified via the `input_uri`.
       If set, `input_uri` must be unset.
       
      bytes input_content = 6;
      Specified by:
      getInputContent in interface AnnotateVideoRequestOrBuilder
      Returns:
      The inputContent.
    • setInputContent

      public AnnotateVideoRequest.Builder setInputContent(com.google.protobuf.ByteString value)
       The video data bytes.
       If unset, the input video(s) should be specified via the `input_uri`.
       If set, `input_uri` must be unset.
       
      bytes input_content = 6;
      Parameters:
      value - The inputContent to set.
      Returns:
      This builder for chaining.
    • clearInputContent

      public AnnotateVideoRequest.Builder clearInputContent()
       The video data bytes.
       If unset, the input video(s) should be specified via the `input_uri`.
       If set, `input_uri` must be unset.
       
      bytes input_content = 6;
      Returns:
      This builder for chaining.
    • getFeaturesList

      public List<Feature> getFeaturesList()
       Required. Requested video annotation features.
       
      repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFeaturesList in interface AnnotateVideoRequestOrBuilder
      Returns:
      A list containing the features.
    • getFeaturesCount

      public int getFeaturesCount()
       Required. Requested video annotation features.
       
      repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFeaturesCount in interface AnnotateVideoRequestOrBuilder
      Returns:
      The count of features.
    • getFeatures

      public Feature getFeatures(int index)
       Required. Requested video annotation features.
       
      repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFeatures in interface AnnotateVideoRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The features at the given index.
    • setFeatures

      public AnnotateVideoRequest.Builder setFeatures(int index, Feature value)
       Required. Requested video annotation features.
       
      repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The features to set.
      Returns:
      This builder for chaining.
    • addFeatures

      public AnnotateVideoRequest.Builder addFeatures(Feature value)
       Required. Requested video annotation features.
       
      repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The features to add.
      Returns:
      This builder for chaining.
    • addAllFeatures

      public AnnotateVideoRequest.Builder addAllFeatures(Iterable<? extends Feature> values)
       Required. Requested video annotation features.
       
      repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The features to add.
      Returns:
      This builder for chaining.
    • clearFeatures

      public AnnotateVideoRequest.Builder clearFeatures()
       Required. Requested video annotation features.
       
      repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getFeaturesValueList

      public List<Integer> getFeaturesValueList()
       Required. Requested video annotation features.
       
      repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFeaturesValueList in interface AnnotateVideoRequestOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for features.
    • getFeaturesValue

      public int getFeaturesValue(int index)
       Required. Requested video annotation features.
       
      repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFeaturesValue in interface AnnotateVideoRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of features at the given index.
    • setFeaturesValue

      public AnnotateVideoRequest.Builder setFeaturesValue(int index, int value)
       Required. Requested video annotation features.
       
      repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for features to set.
      Returns:
      This builder for chaining.
    • addFeaturesValue

      public AnnotateVideoRequest.Builder addFeaturesValue(int value)
       Required. Requested video annotation features.
       
      repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for features to add.
      Returns:
      This builder for chaining.
    • addAllFeaturesValue

      public AnnotateVideoRequest.Builder addAllFeaturesValue(Iterable<Integer> values)
       Required. Requested video annotation features.
       
      repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The enum numeric values on the wire for features to add.
      Returns:
      This builder for chaining.
    • hasVideoContext

      public boolean hasVideoContext()
       Additional video context and/or feature-specific parameters.
       
      .google.cloud.videointelligence.v1.VideoContext video_context = 3;
      Specified by:
      hasVideoContext in interface AnnotateVideoRequestOrBuilder
      Returns:
      Whether the videoContext field is set.
    • getVideoContext

      public VideoContext getVideoContext()
       Additional video context and/or feature-specific parameters.
       
      .google.cloud.videointelligence.v1.VideoContext video_context = 3;
      Specified by:
      getVideoContext in interface AnnotateVideoRequestOrBuilder
      Returns:
      The videoContext.
    • setVideoContext

      public AnnotateVideoRequest.Builder setVideoContext(VideoContext value)
       Additional video context and/or feature-specific parameters.
       
      .google.cloud.videointelligence.v1.VideoContext video_context = 3;
    • setVideoContext

      public AnnotateVideoRequest.Builder setVideoContext(VideoContext.Builder builderForValue)
       Additional video context and/or feature-specific parameters.
       
      .google.cloud.videointelligence.v1.VideoContext video_context = 3;
    • mergeVideoContext

      public AnnotateVideoRequest.Builder mergeVideoContext(VideoContext value)
       Additional video context and/or feature-specific parameters.
       
      .google.cloud.videointelligence.v1.VideoContext video_context = 3;
    • clearVideoContext

      public AnnotateVideoRequest.Builder clearVideoContext()
       Additional video context and/or feature-specific parameters.
       
      .google.cloud.videointelligence.v1.VideoContext video_context = 3;
    • getVideoContextBuilder

      public VideoContext.Builder getVideoContextBuilder()
       Additional video context and/or feature-specific parameters.
       
      .google.cloud.videointelligence.v1.VideoContext video_context = 3;
    • getVideoContextOrBuilder

      public VideoContextOrBuilder getVideoContextOrBuilder()
       Additional video context and/or feature-specific parameters.
       
      .google.cloud.videointelligence.v1.VideoContext video_context = 3;
      Specified by:
      getVideoContextOrBuilder in interface AnnotateVideoRequestOrBuilder
    • getOutputUri

      public String getOutputUri()
       Optional. Location where the output (in JSON format) should be stored.
       Currently, only [Cloud Storage](https://cloud.google.com/storage/)
       URIs are supported. These must be specified in the following format:
       `gs://bucket-id/object-id` (other URI formats return
       [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
       more information, see [Request
       URIs](https://cloud.google.com/storage/docs/request-endpoints).
       
      string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOutputUri in interface AnnotateVideoRequestOrBuilder
      Returns:
      The outputUri.
    • getOutputUriBytes

      public com.google.protobuf.ByteString getOutputUriBytes()
       Optional. Location where the output (in JSON format) should be stored.
       Currently, only [Cloud Storage](https://cloud.google.com/storage/)
       URIs are supported. These must be specified in the following format:
       `gs://bucket-id/object-id` (other URI formats return
       [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
       more information, see [Request
       URIs](https://cloud.google.com/storage/docs/request-endpoints).
       
      string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOutputUriBytes in interface AnnotateVideoRequestOrBuilder
      Returns:
      The bytes for outputUri.
    • setOutputUri

      public AnnotateVideoRequest.Builder setOutputUri(String value)
       Optional. Location where the output (in JSON format) should be stored.
       Currently, only [Cloud Storage](https://cloud.google.com/storage/)
       URIs are supported. These must be specified in the following format:
       `gs://bucket-id/object-id` (other URI formats return
       [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
       more information, see [Request
       URIs](https://cloud.google.com/storage/docs/request-endpoints).
       
      string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The outputUri to set.
      Returns:
      This builder for chaining.
    • clearOutputUri

      public AnnotateVideoRequest.Builder clearOutputUri()
       Optional. Location where the output (in JSON format) should be stored.
       Currently, only [Cloud Storage](https://cloud.google.com/storage/)
       URIs are supported. These must be specified in the following format:
       `gs://bucket-id/object-id` (other URI formats return
       [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
       more information, see [Request
       URIs](https://cloud.google.com/storage/docs/request-endpoints).
       
      string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setOutputUriBytes

      public AnnotateVideoRequest.Builder setOutputUriBytes(com.google.protobuf.ByteString value)
       Optional. Location where the output (in JSON format) should be stored.
       Currently, only [Cloud Storage](https://cloud.google.com/storage/)
       URIs are supported. These must be specified in the following format:
       `gs://bucket-id/object-id` (other URI formats return
       [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
       more information, see [Request
       URIs](https://cloud.google.com/storage/docs/request-endpoints).
       
      string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for outputUri to set.
      Returns:
      This builder for chaining.
    • getLocationId

      public String getLocationId()
       Optional. Cloud region where annotation should take place. Supported cloud
       regions are: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no
       region is specified, the region will be determined based on video file
       location.
       
      string location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLocationId in interface AnnotateVideoRequestOrBuilder
      Returns:
      The locationId.
    • getLocationIdBytes

      public com.google.protobuf.ByteString getLocationIdBytes()
       Optional. Cloud region where annotation should take place. Supported cloud
       regions are: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no
       region is specified, the region will be determined based on video file
       location.
       
      string location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLocationIdBytes in interface AnnotateVideoRequestOrBuilder
      Returns:
      The bytes for locationId.
    • setLocationId

      public AnnotateVideoRequest.Builder setLocationId(String value)
       Optional. Cloud region where annotation should take place. Supported cloud
       regions are: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no
       region is specified, the region will be determined based on video file
       location.
       
      string location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The locationId to set.
      Returns:
      This builder for chaining.
    • clearLocationId

      public AnnotateVideoRequest.Builder clearLocationId()
       Optional. Cloud region where annotation should take place. Supported cloud
       regions are: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no
       region is specified, the region will be determined based on video file
       location.
       
      string location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLocationIdBytes

      public AnnotateVideoRequest.Builder setLocationIdBytes(com.google.protobuf.ByteString value)
       Optional. Cloud region where annotation should take place. Supported cloud
       regions are: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no
       region is specified, the region will be determined based on video file
       location.
       
      string location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for locationId to set.
      Returns:
      This builder for chaining.