Class AnnotateVideoRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.videointelligence.v1.AnnotateVideoRequest
-
- All Implemented Interfaces:
AnnotateVideoRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class AnnotateVideoRequest extends com.google.protobuf.GeneratedMessageV3 implements AnnotateVideoRequestOrBuilder
Video annotation request.
Protobuf typegoogle.cloud.videointelligence.v1.AnnotateVideoRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotateVideoRequest.BuilderVideo annotation request.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intFEATURES_FIELD_NUMBERstatic intINPUT_CONTENT_FIELD_NUMBERstatic intINPUT_URI_FIELD_NUMBERstatic intLOCATION_ID_FIELD_NUMBERstatic intOUTPUT_URI_FIELD_NUMBERstatic intVIDEO_CONTEXT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static AnnotateVideoRequestgetDefaultInstance()AnnotateVideoRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()FeaturegetFeatures(int index)Required.intgetFeaturesCount()Required.List<Feature>getFeaturesList()Required.intgetFeaturesValue(int index)Required.List<Integer>getFeaturesValueList()Required.com.google.protobuf.ByteStringgetInputContent()The video data bytes.StringgetInputUri()Input video location.com.google.protobuf.ByteStringgetInputUriBytes()Input video location.StringgetLocationId()Optional.com.google.protobuf.ByteStringgetLocationIdBytes()Optional.StringgetOutputUri()Optional.com.google.protobuf.ByteStringgetOutputUriBytes()Optional.com.google.protobuf.Parser<AnnotateVideoRequest>getParserForType()intgetSerializedSize()VideoContextgetVideoContext()Additional video context and/or feature-specific parameters.VideoContextOrBuildergetVideoContextOrBuilder()Additional video context and/or feature-specific parameters.inthashCode()booleanhasVideoContext()Additional video context and/or feature-specific parameters.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AnnotateVideoRequest.BuildernewBuilder()static AnnotateVideoRequest.BuildernewBuilder(AnnotateVideoRequest prototype)AnnotateVideoRequest.BuildernewBuilderForType()protected AnnotateVideoRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AnnotateVideoRequestparseDelimitedFrom(InputStream input)static AnnotateVideoRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotateVideoRequestparseFrom(byte[] data)static AnnotateVideoRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotateVideoRequestparseFrom(com.google.protobuf.ByteString data)static AnnotateVideoRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotateVideoRequestparseFrom(com.google.protobuf.CodedInputStream input)static AnnotateVideoRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotateVideoRequestparseFrom(InputStream input)static AnnotateVideoRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotateVideoRequestparseFrom(ByteBuffer data)static AnnotateVideoRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AnnotateVideoRequest>parser()AnnotateVideoRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
INPUT_URI_FIELD_NUMBER
public static final int INPUT_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INPUT_CONTENT_FIELD_NUMBER
public static final int INPUT_CONTENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FEATURES_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VIDEO_CONTEXT_FIELD_NUMBER
public static final int VIDEO_CONTEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_URI_FIELD_NUMBER
public static final int OUTPUT_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCATION_ID_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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:
getInputUriin interfaceAnnotateVideoRequestOrBuilder- 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:
getInputUriBytesin interfaceAnnotateVideoRequestOrBuilder- Returns:
- The bytes for inputUri.
-
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:
getInputContentin interfaceAnnotateVideoRequestOrBuilder- Returns:
- The inputContent.
-
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:
getFeaturesListin interfaceAnnotateVideoRequestOrBuilder- 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:
getFeaturesCountin interfaceAnnotateVideoRequestOrBuilder- 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:
getFeaturesin interfaceAnnotateVideoRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The features at the given index.
-
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:
getFeaturesValueListin interfaceAnnotateVideoRequestOrBuilder- 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:
getFeaturesValuein interfaceAnnotateVideoRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of features at the given index.
-
hasVideoContext
public boolean hasVideoContext()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1.VideoContext video_context = 3;- Specified by:
hasVideoContextin interfaceAnnotateVideoRequestOrBuilder- 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:
getVideoContextin interfaceAnnotateVideoRequestOrBuilder- Returns:
- The videoContext.
-
getVideoContextOrBuilder
public VideoContextOrBuilder getVideoContextOrBuilder()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1.VideoContext video_context = 3;- Specified by:
getVideoContextOrBuilderin interfaceAnnotateVideoRequestOrBuilder
-
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:
getOutputUriin interfaceAnnotateVideoRequestOrBuilder- 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:
getOutputUriBytesin interfaceAnnotateVideoRequestOrBuilder- Returns:
- The bytes for outputUri.
-
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:
getLocationIdin interfaceAnnotateVideoRequestOrBuilder- 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:
getLocationIdBytesin interfaceAnnotateVideoRequestOrBuilder- Returns:
- The bytes for locationId.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AnnotateVideoRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateVideoRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateVideoRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateVideoRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateVideoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateVideoRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateVideoRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AnnotateVideoRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AnnotateVideoRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AnnotateVideoRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AnnotateVideoRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AnnotateVideoRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AnnotateVideoRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AnnotateVideoRequest.Builder newBuilder()
-
newBuilder
public static AnnotateVideoRequest.Builder newBuilder(AnnotateVideoRequest prototype)
-
toBuilder
public AnnotateVideoRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnnotateVideoRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AnnotateVideoRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AnnotateVideoRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<AnnotateVideoRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AnnotateVideoRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-