Class AnnotateVideoRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class AnnotateVideoRequest
extends com.google.protobuf.GeneratedMessage
implements AnnotateVideoRequestOrBuilder
Video annotation request.Protobuf type
google.cloud.videointelligence.v1.AnnotateVideoRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classVideo annotation request.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AnnotateVideoRequeststatic final com.google.protobuf.Descriptors.DescriptorgetFeatures(int index) Required.intRequired.Required.intgetFeaturesValue(int index) Required.Required.com.google.protobuf.ByteStringThe video data bytes.Input video location.com.google.protobuf.ByteStringInput video location.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.Parser<AnnotateVideoRequest>intAdditional video context and/or feature-specific parameters.Additional video context and/or feature-specific parameters.inthashCode()booleanAdditional video context and/or feature-specific parameters.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic AnnotateVideoRequest.Builderstatic AnnotateVideoRequest.BuildernewBuilder(AnnotateVideoRequest prototype) protected AnnotateVideoRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
INPUT_URI_FIELD_NUMBER
public static final int INPUT_URI_FIELD_NUMBER- See Also:
-
INPUT_CONTENT_FIELD_NUMBER
public static final int INPUT_CONTENT_FIELD_NUMBER- See Also:
-
FEATURES_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER- See Also:
-
VIDEO_CONTEXT_FIELD_NUMBER
public static final int VIDEO_CONTEXT_FIELD_NUMBER- See Also:
-
OUTPUT_URI_FIELD_NUMBER
public static final int OUTPUT_URI_FIELD_NUMBER- See Also:
-
LOCATION_ID_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
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
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
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
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1.VideoContext video_context = 3;- Specified by:
getVideoContextin interfaceAnnotateVideoRequestOrBuilder- Returns:
- The videoContext.
-
getVideoContextOrBuilder
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1.VideoContext video_context = 3;- Specified by:
getVideoContextOrBuilderin interfaceAnnotateVideoRequestOrBuilder
-
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
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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static AnnotateVideoRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnnotateVideoRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-