public final class AnnotateVideoRequest extends GeneratedMessageV3 implements AnnotateVideoRequestOrBuilder
Video annotation request.Protobuf type
google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotateVideoRequest.Builder
Video annotation request.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
FEATURES_FIELD_NUMBER |
static int |
INPUT_CONTENT_FIELD_NUMBER |
static int |
INPUT_URI_FIELD_NUMBER |
static int |
LOCATION_ID_FIELD_NUMBER |
static int |
OUTPUT_URI_FIELD_NUMBER |
static int |
VIDEO_CONTEXT_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static AnnotateVideoRequest |
getDefaultInstance() |
AnnotateVideoRequest |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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.
|
Parser<AnnotateVideoRequest> |
getParserForType() |
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
VideoContext |
getVideoContext()
Additional video context and/or feature-specific parameters.
|
VideoContextOrBuilder |
getVideoContextOrBuilder()
Additional video context and/or feature-specific parameters.
|
int |
hashCode() |
boolean |
hasVideoContext()
Additional video context and/or feature-specific parameters.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AnnotateVideoRequest.Builder |
newBuilder() |
static AnnotateVideoRequest.Builder |
newBuilder(AnnotateVideoRequest prototype) |
AnnotateVideoRequest.Builder |
newBuilderForType() |
protected AnnotateVideoRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static AnnotateVideoRequest |
parseDelimitedFrom(java.io.InputStream input) |
static AnnotateVideoRequest |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static AnnotateVideoRequest |
parseFrom(byte[] data) |
static AnnotateVideoRequest |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static AnnotateVideoRequest |
parseFrom(java.nio.ByteBuffer data) |
static AnnotateVideoRequest |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static AnnotateVideoRequest |
parseFrom(ByteString data) |
static AnnotateVideoRequest |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static AnnotateVideoRequest |
parseFrom(CodedInputStream input) |
static AnnotateVideoRequest |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static AnnotateVideoRequest |
parseFrom(java.io.InputStream input) |
static AnnotateVideoRequest |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<AnnotateVideoRequest> |
parser() |
AnnotateVideoRequest.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int INPUT_URI_FIELD_NUMBER
public static final int INPUT_CONTENT_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER
public static final int VIDEO_CONTEXT_FIELD_NUMBER
public static final int OUTPUT_URI_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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 AnnotateVideoRequestOrBuilderpublic 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 AnnotateVideoRequestOrBuilderpublic 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 AnnotateVideoRequestOrBuilderpublic java.util.List<Feature> getFeaturesList()
Requested video annotation features.
repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2;getFeaturesList in interface AnnotateVideoRequestOrBuilderpublic int getFeaturesCount()
Requested video annotation features.
repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2;getFeaturesCount in interface AnnotateVideoRequestOrBuilderpublic Feature getFeatures(int index)
Requested video annotation features.
repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2;getFeatures in interface AnnotateVideoRequestOrBuilderpublic java.util.List<java.lang.Integer> getFeaturesValueList()
Requested video annotation features.
repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2;getFeaturesValueList in interface AnnotateVideoRequestOrBuilderpublic int getFeaturesValue(int index)
Requested video annotation features.
repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2;getFeaturesValue in interface AnnotateVideoRequestOrBuilderpublic boolean hasVideoContext()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1p1beta1.VideoContext video_context = 3;hasVideoContext in interface AnnotateVideoRequestOrBuilderpublic VideoContext getVideoContext()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1p1beta1.VideoContext video_context = 3;getVideoContext in interface AnnotateVideoRequestOrBuilderpublic VideoContextOrBuilder getVideoContextOrBuilder()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1p1beta1.VideoContext video_context = 3;getVideoContextOrBuilder in interface AnnotateVideoRequestOrBuilderpublic 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 AnnotateVideoRequestOrBuilderpublic 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 AnnotateVideoRequestOrBuilderpublic 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 AnnotateVideoRequestOrBuilderpublic 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 AnnotateVideoRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static AnnotateVideoRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnnotateVideoRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnnotateVideoRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnnotateVideoRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnnotateVideoRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnnotateVideoRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnnotateVideoRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateVideoRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateVideoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateVideoRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateVideoRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateVideoRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic AnnotateVideoRequest.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static AnnotateVideoRequest.Builder newBuilder()
public static AnnotateVideoRequest.Builder newBuilder(AnnotateVideoRequest prototype)
public AnnotateVideoRequest.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected AnnotateVideoRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static AnnotateVideoRequest getDefaultInstance()
public static Parser<AnnotateVideoRequest> parser()
public Parser<AnnotateVideoRequest> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public AnnotateVideoRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder