public final class AnnotateVideoRequest extends GeneratedMessageV3 implements AnnotateVideoRequestOrBuilder
Video annotation request.Protobuf type
google.cloud.videointelligence.v1.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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 java.util.List<Feature> getFeaturesList()
Requested video annotation features.
repeated .google.cloud.videointelligence.v1.Feature features = 2;
getFeaturesList
in interface AnnotateVideoRequestOrBuilder
public int getFeaturesCount()
Requested video annotation features.
repeated .google.cloud.videointelligence.v1.Feature features = 2;
getFeaturesCount
in interface AnnotateVideoRequestOrBuilder
public Feature getFeatures(int index)
Requested video annotation features.
repeated .google.cloud.videointelligence.v1.Feature features = 2;
getFeatures
in interface AnnotateVideoRequestOrBuilder
public java.util.List<java.lang.Integer> getFeaturesValueList()
Requested video annotation features.
repeated .google.cloud.videointelligence.v1.Feature features = 2;
getFeaturesValueList
in interface AnnotateVideoRequestOrBuilder
public int getFeaturesValue(int index)
Requested video annotation features.
repeated .google.cloud.videointelligence.v1.Feature features = 2;
getFeaturesValue
in interface AnnotateVideoRequestOrBuilder
public boolean hasVideoContext()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1.VideoContext video_context = 3;
hasVideoContext
in interface AnnotateVideoRequestOrBuilder
public VideoContext getVideoContext()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1.VideoContext video_context = 3;
getVideoContext
in interface AnnotateVideoRequestOrBuilder
public VideoContextOrBuilder getVideoContextOrBuilder()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1.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 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 final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static AnnotateVideoRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateVideoRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateVideoRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateVideoRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateVideoRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateVideoRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateVideoRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static AnnotateVideoRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static AnnotateVideoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static AnnotateVideoRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static AnnotateVideoRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static AnnotateVideoRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public AnnotateVideoRequest.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static AnnotateVideoRequest.Builder newBuilder()
public static AnnotateVideoRequest.Builder newBuilder(AnnotateVideoRequest prototype)
public AnnotateVideoRequest.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected AnnotateVideoRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static AnnotateVideoRequest getDefaultInstance()
public static Parser<AnnotateVideoRequest> parser()
public Parser<AnnotateVideoRequest> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public AnnotateVideoRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder