Class StreamingAnnotateVideoResponse.Builder (2.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamingAnnotateVideoResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder
Overrides

build()

public StreamingAnnotateVideoResponse build()
Returns
TypeDescription
StreamingAnnotateVideoResponse

buildPartial()

public StreamingAnnotateVideoResponse buildPartial()
Returns
TypeDescription
StreamingAnnotateVideoResponse

clear()

public StreamingAnnotateVideoResponse.Builder clear()
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder
Overrides

clearAnnotationResults()

public StreamingAnnotateVideoResponse.Builder clearAnnotationResults()

Streaming annotation results.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
StreamingAnnotateVideoResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public StreamingAnnotateVideoResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamingAnnotateVideoResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder
Overrides

clone()

public StreamingAnnotateVideoResponse.Builder clone()
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder
Overrides

getAnnotationResults()

public StreamingVideoAnnotationResults getAnnotationResults()

Streaming annotation results.

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

Returns
TypeDescription
StreamingVideoAnnotationResults

The annotationResults.

getAnnotationResultsBuilder()

public StreamingVideoAnnotationResults.Builder getAnnotationResultsBuilder()

Streaming annotation results.

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

Returns
TypeDescription
StreamingVideoAnnotationResults.Builder

getAnnotationResultsOrBuilder()

public StreamingVideoAnnotationResultsOrBuilder getAnnotationResultsOrBuilder()

Streaming annotation results.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for annotationResultsUri.

getDefaultInstanceForType()

public StreamingAnnotateVideoResponse getDefaultInstanceForType()
Returns
TypeDescription
StreamingAnnotateVideoResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.rpc.StatusOrBuilder

hasAnnotationResults()

public boolean hasAnnotationResults()

Streaming annotation results.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the error field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAnnotationResults(StreamingVideoAnnotationResults value)

public StreamingAnnotateVideoResponse.Builder mergeAnnotationResults(StreamingVideoAnnotationResults value)

Streaming annotation results.

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

Parameter
NameDescription
valueStreamingVideoAnnotationResults
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder

mergeFrom(StreamingAnnotateVideoResponse other)

public StreamingAnnotateVideoResponse.Builder mergeFrom(StreamingAnnotateVideoResponse other)
Parameter
NameDescription
otherStreamingAnnotateVideoResponse
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamingAnnotateVideoResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StreamingAnnotateVideoResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingAnnotateVideoResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder
Overrides

setAnnotationResults(StreamingVideoAnnotationResults value)

public StreamingAnnotateVideoResponse.Builder setAnnotationResults(StreamingVideoAnnotationResults value)

Streaming annotation results.

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

Parameter
NameDescription
valueStreamingVideoAnnotationResults
Returns
TypeDescription
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
NameDescription
builderForValueStreamingVideoAnnotationResults.Builder
Returns
TypeDescription
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
NameDescription
valueString

The annotationResultsUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for annotationResultsUri to set.

Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StreamingAnnotateVideoResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder
Overrides

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

public StreamingAnnotateVideoResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamingAnnotateVideoResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StreamingAnnotateVideoResponse.Builder
Overrides