public static final class AnnotateVideoRequest.Builder extends GeneratedMessageV3.Builder<AnnotateVideoRequest.Builder> implements AnnotateVideoRequestOrBuilder
Video annotation request.Protobuf type
google.cloud.videointelligence.v1beta2.AnnotateVideoRequest
Modifier and Type | Method and Description |
---|---|
AnnotateVideoRequest.Builder |
addAllFeatures(java.lang.Iterable<? extends Feature> values)
Requested video annotation features.
|
AnnotateVideoRequest.Builder |
addAllFeaturesValue(java.lang.Iterable<java.lang.Integer> values)
Requested video annotation features.
|
AnnotateVideoRequest.Builder |
addFeatures(Feature value)
Requested video annotation features.
|
AnnotateVideoRequest.Builder |
addFeaturesValue(int value)
Requested video annotation features.
|
AnnotateVideoRequest.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
AnnotateVideoRequest |
build() |
AnnotateVideoRequest |
buildPartial() |
AnnotateVideoRequest.Builder |
clear() |
AnnotateVideoRequest.Builder |
clearFeatures()
Requested video annotation features.
|
AnnotateVideoRequest.Builder |
clearField(Descriptors.FieldDescriptor field) |
AnnotateVideoRequest.Builder |
clearInputContent()
The video data bytes.
|
AnnotateVideoRequest.Builder |
clearInputUri()
Input video location.
|
AnnotateVideoRequest.Builder |
clearLocationId()
Optional cloud region where annotation should take place.
|
AnnotateVideoRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
AnnotateVideoRequest.Builder |
clearOutputUri()
Optional location where the output (in JSON format) should be stored.
|
AnnotateVideoRequest.Builder |
clearVideoContext()
Additional video context and/or feature-specific parameters.
|
AnnotateVideoRequest.Builder |
clone() |
AnnotateVideoRequest |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Feature |
getFeatures(int index)
Requested video annotation features.
|
int |
getFeaturesCount()
Requested video annotation features.
|
java.util.List<Feature> |
getFeaturesList()
Requested video annotation features.
|
int |
getFeaturesValue(int index)
Requested video annotation features.
|
java.util.List<java.lang.Integer> |
getFeaturesValueList()
Requested video annotation features.
|
ByteString |
getInputContent()
The video data bytes.
|
java.lang.String |
getInputUri()
Input video location.
|
ByteString |
getInputUriBytes()
Input video location.
|
java.lang.String |
getLocationId()
Optional cloud region where annotation should take place.
|
ByteString |
getLocationIdBytes()
Optional cloud region where annotation should take place.
|
java.lang.String |
getOutputUri()
Optional location where the output (in JSON format) should be stored.
|
ByteString |
getOutputUriBytes()
Optional location where the output (in JSON format) should be stored.
|
VideoContext |
getVideoContext()
Additional video context and/or feature-specific parameters.
|
VideoContext.Builder |
getVideoContextBuilder()
Additional video context and/or feature-specific parameters.
|
VideoContextOrBuilder |
getVideoContextOrBuilder()
Additional video context and/or feature-specific parameters.
|
boolean |
hasVideoContext()
Additional video context and/or feature-specific parameters.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AnnotateVideoRequest.Builder |
mergeFrom(AnnotateVideoRequest other) |
AnnotateVideoRequest.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
AnnotateVideoRequest.Builder |
mergeFrom(Message other) |
AnnotateVideoRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
AnnotateVideoRequest.Builder |
mergeVideoContext(VideoContext value)
Additional video context and/or feature-specific parameters.
|
AnnotateVideoRequest.Builder |
setFeatures(int index,
Feature value)
Requested video annotation features.
|
AnnotateVideoRequest.Builder |
setFeaturesValue(int index,
int value)
Requested video annotation features.
|
AnnotateVideoRequest.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
AnnotateVideoRequest.Builder |
setInputContent(ByteString value)
The video data bytes.
|
AnnotateVideoRequest.Builder |
setInputUri(java.lang.String value)
Input video location.
|
AnnotateVideoRequest.Builder |
setInputUriBytes(ByteString value)
Input video location.
|
AnnotateVideoRequest.Builder |
setLocationId(java.lang.String value)
Optional cloud region where annotation should take place.
|
AnnotateVideoRequest.Builder |
setLocationIdBytes(ByteString value)
Optional cloud region where annotation should take place.
|
AnnotateVideoRequest.Builder |
setOutputUri(java.lang.String value)
Optional location where the output (in JSON format) should be stored.
|
AnnotateVideoRequest.Builder |
setOutputUriBytes(ByteString value)
Optional location where the output (in JSON format) should be stored.
|
AnnotateVideoRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
AnnotateVideoRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
AnnotateVideoRequest.Builder |
setVideoContext(VideoContext.Builder builderForValue)
Additional video context and/or feature-specific parameters.
|
AnnotateVideoRequest.Builder |
setVideoContext(VideoContext value)
Additional video context and/or feature-specific parameters.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<AnnotateVideoRequest.Builder>
public AnnotateVideoRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<AnnotateVideoRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<AnnotateVideoRequest.Builder>
public AnnotateVideoRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public AnnotateVideoRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public AnnotateVideoRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public AnnotateVideoRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<AnnotateVideoRequest.Builder>
public AnnotateVideoRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<AnnotateVideoRequest.Builder>
public AnnotateVideoRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<AnnotateVideoRequest.Builder>
public AnnotateVideoRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<AnnotateVideoRequest.Builder>
public AnnotateVideoRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<AnnotateVideoRequest.Builder>
public AnnotateVideoRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<AnnotateVideoRequest.Builder>
public AnnotateVideoRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<AnnotateVideoRequest.Builder>
public AnnotateVideoRequest.Builder mergeFrom(AnnotateVideoRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<AnnotateVideoRequest.Builder>
public AnnotateVideoRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<AnnotateVideoRequest.Builder>
java.io.IOException
public java.lang.String getInputUri()
Input video location. Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) URIs are supported, which 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](/storage/docs/reference-uris). A video URI may include wildcards in `object-id`, and thus identify multiple videos. 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` should be unset.
string input_uri = 1;
getInputUri
in interface AnnotateVideoRequestOrBuilder
public ByteString getInputUriBytes()
Input video location. Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) URIs are supported, which 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](/storage/docs/reference-uris). A video URI may include wildcards in `object-id`, and thus identify multiple videos. 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` should be unset.
string input_uri = 1;
getInputUriBytes
in interface AnnotateVideoRequestOrBuilder
public AnnotateVideoRequest.Builder setInputUri(java.lang.String value)
Input video location. Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) URIs are supported, which 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](/storage/docs/reference-uris). A video URI may include wildcards in `object-id`, and thus identify multiple videos. 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` should be unset.
string input_uri = 1;
public AnnotateVideoRequest.Builder clearInputUri()
Input video location. Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) URIs are supported, which 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](/storage/docs/reference-uris). A video URI may include wildcards in `object-id`, and thus identify multiple videos. 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` should be unset.
string input_uri = 1;
public AnnotateVideoRequest.Builder setInputUriBytes(ByteString value)
Input video location. Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) URIs are supported, which 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](/storage/docs/reference-uris). A video URI may include wildcards in `object-id`, and thus identify multiple videos. 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` should be unset.
string input_uri = 1;
public ByteString getInputContent()
The video data bytes. If unset, the input video(s) should be specified via `input_uri`. If set, `input_uri` should be unset.
bytes input_content = 6;
getInputContent
in interface AnnotateVideoRequestOrBuilder
public AnnotateVideoRequest.Builder setInputContent(ByteString value)
The video data bytes. If unset, the input video(s) should be specified via `input_uri`. If set, `input_uri` should be unset.
bytes input_content = 6;
public AnnotateVideoRequest.Builder clearInputContent()
The video data bytes. If unset, the input video(s) should be specified via `input_uri`. If set, `input_uri` should be unset.
bytes input_content = 6;
public java.util.List<Feature> getFeaturesList()
Requested video annotation features.
repeated .google.cloud.videointelligence.v1beta2.Feature features = 2;
getFeaturesList
in interface AnnotateVideoRequestOrBuilder
public int getFeaturesCount()
Requested video annotation features.
repeated .google.cloud.videointelligence.v1beta2.Feature features = 2;
getFeaturesCount
in interface AnnotateVideoRequestOrBuilder
public Feature getFeatures(int index)
Requested video annotation features.
repeated .google.cloud.videointelligence.v1beta2.Feature features = 2;
getFeatures
in interface AnnotateVideoRequestOrBuilder
public AnnotateVideoRequest.Builder setFeatures(int index, Feature value)
Requested video annotation features.
repeated .google.cloud.videointelligence.v1beta2.Feature features = 2;
public AnnotateVideoRequest.Builder addFeatures(Feature value)
Requested video annotation features.
repeated .google.cloud.videointelligence.v1beta2.Feature features = 2;
public AnnotateVideoRequest.Builder addAllFeatures(java.lang.Iterable<? extends Feature> values)
Requested video annotation features.
repeated .google.cloud.videointelligence.v1beta2.Feature features = 2;
public AnnotateVideoRequest.Builder clearFeatures()
Requested video annotation features.
repeated .google.cloud.videointelligence.v1beta2.Feature features = 2;
public java.util.List<java.lang.Integer> getFeaturesValueList()
Requested video annotation features.
repeated .google.cloud.videointelligence.v1beta2.Feature features = 2;
getFeaturesValueList
in interface AnnotateVideoRequestOrBuilder
public int getFeaturesValue(int index)
Requested video annotation features.
repeated .google.cloud.videointelligence.v1beta2.Feature features = 2;
getFeaturesValue
in interface AnnotateVideoRequestOrBuilder
public AnnotateVideoRequest.Builder setFeaturesValue(int index, int value)
Requested video annotation features.
repeated .google.cloud.videointelligence.v1beta2.Feature features = 2;
public AnnotateVideoRequest.Builder addFeaturesValue(int value)
Requested video annotation features.
repeated .google.cloud.videointelligence.v1beta2.Feature features = 2;
public AnnotateVideoRequest.Builder addAllFeaturesValue(java.lang.Iterable<java.lang.Integer> values)
Requested video annotation features.
repeated .google.cloud.videointelligence.v1beta2.Feature features = 2;
public boolean hasVideoContext()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1beta2.VideoContext video_context = 3;
hasVideoContext
in interface AnnotateVideoRequestOrBuilder
public VideoContext getVideoContext()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1beta2.VideoContext video_context = 3;
getVideoContext
in interface AnnotateVideoRequestOrBuilder
public AnnotateVideoRequest.Builder setVideoContext(VideoContext value)
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1beta2.VideoContext video_context = 3;
public AnnotateVideoRequest.Builder setVideoContext(VideoContext.Builder builderForValue)
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1beta2.VideoContext video_context = 3;
public AnnotateVideoRequest.Builder mergeVideoContext(VideoContext value)
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1beta2.VideoContext video_context = 3;
public AnnotateVideoRequest.Builder clearVideoContext()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1beta2.VideoContext video_context = 3;
public VideoContext.Builder getVideoContextBuilder()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1beta2.VideoContext video_context = 3;
public VideoContextOrBuilder getVideoContextOrBuilder()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1beta2.VideoContext video_context = 3;
getVideoContextOrBuilder
in interface AnnotateVideoRequestOrBuilder
public java.lang.String getOutputUri()
Optional location where the output (in JSON format) should be stored. Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) URIs are supported, which 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](/storage/docs/reference-uris).
string output_uri = 4;
getOutputUri
in interface AnnotateVideoRequestOrBuilder
public ByteString getOutputUriBytes()
Optional location where the output (in JSON format) should be stored. Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) URIs are supported, which 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](/storage/docs/reference-uris).
string output_uri = 4;
getOutputUriBytes
in interface AnnotateVideoRequestOrBuilder
public AnnotateVideoRequest.Builder setOutputUri(java.lang.String value)
Optional location where the output (in JSON format) should be stored. Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) URIs are supported, which 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](/storage/docs/reference-uris).
string output_uri = 4;
public AnnotateVideoRequest.Builder clearOutputUri()
Optional location where the output (in JSON format) should be stored. Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) URIs are supported, which 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](/storage/docs/reference-uris).
string output_uri = 4;
public AnnotateVideoRequest.Builder setOutputUriBytes(ByteString value)
Optional location where the output (in JSON format) should be stored. Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) URIs are supported, which 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](/storage/docs/reference-uris).
string output_uri = 4;
public java.lang.String getLocationId()
Optional cloud region where annotation should take place. Supported cloud regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region is specified, a region will be determined based on video file location.
string location_id = 5;
getLocationId
in interface AnnotateVideoRequestOrBuilder
public ByteString getLocationIdBytes()
Optional cloud region where annotation should take place. Supported cloud regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region is specified, a region will be determined based on video file location.
string location_id = 5;
getLocationIdBytes
in interface AnnotateVideoRequestOrBuilder
public AnnotateVideoRequest.Builder setLocationId(java.lang.String value)
Optional cloud region where annotation should take place. Supported cloud regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region is specified, a region will be determined based on video file location.
string location_id = 5;
public AnnotateVideoRequest.Builder clearLocationId()
Optional cloud region where annotation should take place. Supported cloud regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region is specified, a region will be determined based on video file location.
string location_id = 5;
public AnnotateVideoRequest.Builder setLocationIdBytes(ByteString value)
Optional cloud region where annotation should take place. Supported cloud regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region is specified, a region will be determined based on video file location.
string location_id = 5;
public final AnnotateVideoRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<AnnotateVideoRequest.Builder>
public final AnnotateVideoRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<AnnotateVideoRequest.Builder>