Class StreamingAnnotateVideoResponse.Builder (2.53.0)

public static final class StreamingAnnotateVideoResponse.Builder extends GeneratedMessageV3.Builder<StreamingAnnotateVideoResponse.Builder> implements StreamingAnnotateVideoResponseOrBuilder

StreamingAnnotateVideoResponse is the only message returned to the client by StreamingAnnotateVideo. A series of zero or more StreamingAnnotateVideoResponse messages are streamed back to the client.

Protobuf type google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamingAnnotateVideoResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamingAnnotateVideoResponse.Builder
Overrides

build()

public StreamingAnnotateVideoResponse build()
Returns
Type Description
StreamingAnnotateVideoResponse

buildPartial()

public StreamingAnnotateVideoResponse buildPartial()
Returns
Type Description
StreamingAnnotateVideoResponse

clear()

public StreamingAnnotateVideoResponse.Builder clear()
Returns
Type Description
StreamingAnnotateVideoResponse.Builder
Overrides

clearAnnotationResults()

public StreamingAnnotateVideoResponse.Builder clearAnnotationResults()

Streaming annotation results.

.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;

Returns
Type Description
StreamingAnnotateVideoResponse.Builder

clearAnnotationResultsUri()

public StreamingAnnotateVideoResponse.Builder clearAnnotationResultsUri()

Google Cloud Storage(GCS) URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by '/cloud_project_number-session_id'.

string annotation_results_uri = 3;

Returns
Type Description
StreamingAnnotateVideoResponse.Builder

This builder for chaining.

clearError()

public StreamingAnnotateVideoResponse.Builder clearError()

If set, returns a google.rpc.Status message that specifies the error for the operation.

.google.rpc.Status error = 1;

Returns
Type Description
StreamingAnnotateVideoResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public StreamingAnnotateVideoResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StreamingAnnotateVideoResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamingAnnotateVideoResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StreamingAnnotateVideoResponse.Builder
Overrides

clone()

public StreamingAnnotateVideoResponse.Builder clone()
Returns
Type Description
StreamingAnnotateVideoResponse.Builder
Overrides

getAnnotationResults()

public StreamingVideoAnnotationResults getAnnotationResults()

Streaming annotation results.

.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;

Returns
Type Description
StreamingVideoAnnotationResults

The annotationResults.

getAnnotationResultsBuilder()

public StreamingVideoAnnotationResults.Builder getAnnotationResultsBuilder()

Streaming annotation results.

.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;

Returns
Type Description
StreamingVideoAnnotationResults.Builder

getAnnotationResultsOrBuilder()

public StreamingVideoAnnotationResultsOrBuilder getAnnotationResultsOrBuilder()

Streaming annotation results.

.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;

Returns
Type Description
StreamingVideoAnnotationResultsOrBuilder

getAnnotationResultsUri()

public String getAnnotationResultsUri()

Google Cloud Storage(GCS) URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by '/cloud_project_number-session_id'.

string annotation_results_uri = 3;

Returns
Type Description
String

The annotationResultsUri.

getAnnotationResultsUriBytes()

public ByteString getAnnotationResultsUriBytes()

Google Cloud Storage(GCS) URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by '/cloud_project_number-session_id'.

string annotation_results_uri = 3;

Returns
Type Description
ByteString

The bytes for annotationResultsUri.

getDefaultInstanceForType()

public StreamingAnnotateVideoResponse getDefaultInstanceForType()
Returns
Type Description
StreamingAnnotateVideoResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getError()

public Status getError()

If set, returns a google.rpc.Status message that specifies the error for the operation.

.google.rpc.Status error = 1;

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

If set, returns a google.rpc.Status message that specifies the error for the operation.

.google.rpc.Status error = 1;

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

If set, returns a google.rpc.Status message that specifies the error for the operation.

.google.rpc.Status error = 1;

Returns
Type Description
com.google.rpc.StatusOrBuilder

hasAnnotationResults()

public boolean hasAnnotationResults()

Streaming annotation results.

.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;

Returns
Type Description
boolean

Whether the annotationResults field is set.

hasError()

public boolean hasError()

If set, returns a google.rpc.Status message that specifies the error for the operation.

.google.rpc.Status error = 1;

Returns
Type Description
boolean

Whether the error field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAnnotationResults(StreamingVideoAnnotationResults value)

public StreamingAnnotateVideoResponse.Builder mergeAnnotationResults(StreamingVideoAnnotationResults value)

Streaming annotation results.

.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;

Parameter
Name Description
value StreamingVideoAnnotationResults
Returns
Type Description
StreamingAnnotateVideoResponse.Builder

mergeError(Status value)

public StreamingAnnotateVideoResponse.Builder mergeError(Status value)

If set, returns a google.rpc.Status message that specifies the error for the operation.

.google.rpc.Status error = 1;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
StreamingAnnotateVideoResponse.Builder

mergeFrom(StreamingAnnotateVideoResponse other)

public StreamingAnnotateVideoResponse.Builder mergeFrom(StreamingAnnotateVideoResponse other)
Parameter
Name Description
other StreamingAnnotateVideoResponse
Returns
Type Description
StreamingAnnotateVideoResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamingAnnotateVideoResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingAnnotateVideoResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StreamingAnnotateVideoResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StreamingAnnotateVideoResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingAnnotateVideoResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamingAnnotateVideoResponse.Builder
Overrides

setAnnotationResults(StreamingVideoAnnotationResults value)

public StreamingAnnotateVideoResponse.Builder setAnnotationResults(StreamingVideoAnnotationResults value)

Streaming annotation results.

.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;

Parameter
Name Description
value StreamingVideoAnnotationResults
Returns
Type Description
StreamingAnnotateVideoResponse.Builder

setAnnotationResults(StreamingVideoAnnotationResults.Builder builderForValue)

public StreamingAnnotateVideoResponse.Builder setAnnotationResults(StreamingVideoAnnotationResults.Builder builderForValue)

Streaming annotation results.

.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;

Parameter
Name Description
builderForValue StreamingVideoAnnotationResults.Builder
Returns
Type Description
StreamingAnnotateVideoResponse.Builder

setAnnotationResultsUri(String value)

public StreamingAnnotateVideoResponse.Builder setAnnotationResultsUri(String value)

Google Cloud Storage(GCS) URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by '/cloud_project_number-session_id'.

string annotation_results_uri = 3;

Parameter
Name Description
value String

The annotationResultsUri to set.

Returns
Type Description
StreamingAnnotateVideoResponse.Builder

This builder for chaining.

setAnnotationResultsUriBytes(ByteString value)

public StreamingAnnotateVideoResponse.Builder setAnnotationResultsUriBytes(ByteString value)

Google Cloud Storage(GCS) URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by '/cloud_project_number-session_id'.

string annotation_results_uri = 3;

Parameter
Name Description
value ByteString

The bytes for annotationResultsUri to set.

Returns
Type Description
StreamingAnnotateVideoResponse.Builder

This builder for chaining.

setError(Status value)

public StreamingAnnotateVideoResponse.Builder setError(Status value)

If set, returns a google.rpc.Status message that specifies the error for the operation.

.google.rpc.Status error = 1;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
StreamingAnnotateVideoResponse.Builder

setError(Status.Builder builderForValue)

public StreamingAnnotateVideoResponse.Builder setError(Status.Builder builderForValue)

If set, returns a google.rpc.Status message that specifies the error for the operation.

.google.rpc.Status error = 1;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
StreamingAnnotateVideoResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StreamingAnnotateVideoResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamingAnnotateVideoResponse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StreamingAnnotateVideoResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StreamingAnnotateVideoResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamingAnnotateVideoResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamingAnnotateVideoResponse.Builder
Overrides