public final class AnnotateVideoRequest extends GeneratedMessageV3 implements AnnotateVideoRequestOrBuilder
Video annotation request.
Protobuf type google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
FEATURES_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INPUT_CONTENT_FIELD_NUMBER
public static final int INPUT_CONTENT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int INPUT_URI_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LOCATION_ID_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
OUTPUT_URI_FIELD_NUMBER
public static final int OUTPUT_URI_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
VIDEO_CONTEXT_FIELD_NUMBER
public static final int VIDEO_CONTEXT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static AnnotateVideoRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AnnotateVideoRequest.Builder newBuilder()
newBuilder(AnnotateVideoRequest prototype)
public static AnnotateVideoRequest.Builder newBuilder(AnnotateVideoRequest prototype)
public static AnnotateVideoRequest parseDelimitedFrom(InputStream input)
public static AnnotateVideoRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AnnotateVideoRequest parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnnotateVideoRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AnnotateVideoRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnnotateVideoRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnnotateVideoRequest parseFrom(CodedInputStream input)
public static AnnotateVideoRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AnnotateVideoRequest parseFrom(InputStream input)
public static AnnotateVideoRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AnnotateVideoRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AnnotateVideoRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AnnotateVideoRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public AnnotateVideoRequest getDefaultInstanceForType()
getFeatures(int index)
public Feature getFeatures(int index)
Required. Requested video annotation features.
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
Feature | The features at the given index.
|
getFeaturesCount()
public int getFeaturesCount()
Required. Requested video annotation features.
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
int | The count of features.
|
getFeaturesList()
public List<Feature> getFeaturesList()
Required. Requested video annotation features.
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
List<Feature> | A list containing the features.
|
getFeaturesValue(int index)
public int getFeaturesValue(int index)
Required. Requested video annotation features.
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
int | The enum numeric value on the wire of features at the given index.
|
getFeaturesValueList()
public List<Integer> getFeaturesValueList()
Required. Requested video annotation features.
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
List<Integer> | A list containing the enum numeric values on the wire for features.
|
getInputContent()
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;
public String getInputUri()
Input video location. Currently, only
Google Cloud 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). For more information, see
Request 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;
Returns |
---|
Type | Description |
String | The inputUri.
|
public ByteString getInputUriBytes()
Input video location. Currently, only
Google Cloud 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). For more information, see
Request 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;
Returns |
---|
Type | Description |
ByteString | The bytes for inputUri.
|
getLocationId()
public 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 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
String | The locationId.
|
getLocationIdBytes()
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 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
ByteString | The bytes for locationId.
|
getOutputUri()
public String getOutputUri()
Optional. Location where the output (in JSON format) should be stored.
Currently, only Google Cloud 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). For more information, see
Request URIs.
string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
String | The outputUri.
|
getOutputUriBytes()
public ByteString getOutputUriBytes()
Optional. Location where the output (in JSON format) should be stored.
Currently, only Google Cloud 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). For more information, see
Request URIs.
string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
ByteString | The bytes for outputUri.
|
getParserForType()
public Parser<AnnotateVideoRequest> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getVideoContext()
public VideoContext getVideoContext()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
getVideoContextOrBuilder()
public VideoContextOrBuilder getVideoContextOrBuilder()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
hasVideoContext()
public boolean hasVideoContext()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
Returns |
---|
Type | Description |
boolean | Whether the videoContext field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AnnotateVideoRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AnnotateVideoRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public AnnotateVideoRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides