public final class AnnotateVideoRequest extends GeneratedMessageV3 implements AnnotateVideoRequestOrBuilder
Video annotation request.
Protobuf type google.cloud.videointelligence.v1.AnnotateVideoRequest
Static Fields
FEATURES_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER
Field Value
INPUT_CONTENT_FIELD_NUMBER
public static final int INPUT_CONTENT_FIELD_NUMBER
Field Value
public static final int INPUT_URI_FIELD_NUMBER
Field Value
LOCATION_ID_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER
Field Value
OUTPUT_URI_FIELD_NUMBER
public static final int OUTPUT_URI_FIELD_NUMBER
Field Value
VIDEO_CONTEXT_FIELD_NUMBER
public static final int VIDEO_CONTEXT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AnnotateVideoRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AnnotateVideoRequest.Builder newBuilder()
Returns
newBuilder(AnnotateVideoRequest prototype)
public static AnnotateVideoRequest.Builder newBuilder(AnnotateVideoRequest prototype)
Parameter
Returns
public static AnnotateVideoRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnnotateVideoRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AnnotateVideoRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnnotateVideoRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AnnotateVideoRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnnotateVideoRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnnotateVideoRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AnnotateVideoRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnnotateVideoRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnnotateVideoRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AnnotateVideoRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AnnotateVideoRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AnnotateVideoRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public AnnotateVideoRequest getDefaultInstanceForType()
Returns
getFeatures(int index)
public Feature getFeatures(int index)
Required. Requested video annotation features.
repeated .google.cloud.videointelligence.v1.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.v1.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.v1.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.v1.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.v1.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 the input_uri
.
If set, input_uri
must be unset.
bytes input_content = 6;
Returns
public String getInputUri()
Input video location. Currently, only
Cloud 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). For
more information, see Request
URIs. 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;
Returns
Type | Description |
String | The inputUri.
|
public ByteString getInputUriBytes()
Input video location. Currently, only
Cloud 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). For
more information, see Request
URIs. 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;
Returns
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];
Returns
Type | Description |
String | The locationId.
|
getLocationIdBytes()
public 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];
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 Cloud 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). 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 Cloud 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). For
more information, see Request
URIs.
string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
getParserForType()
public Parser<AnnotateVideoRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getVideoContext()
public VideoContext getVideoContext()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1.VideoContext video_context = 3;
Returns
getVideoContextOrBuilder()
public VideoContextOrBuilder getVideoContextOrBuilder()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1.VideoContext video_context = 3;
Returns
hasVideoContext()
public boolean hasVideoContext()
Additional video context and/or feature-specific parameters.
.google.cloud.videointelligence.v1.VideoContext video_context = 3;
Returns
Type | Description |
boolean | Whether the videoContext field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AnnotateVideoRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AnnotateVideoRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AnnotateVideoRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions