All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse Maven / Gradle / Ivy

There is a newer version: 0.144.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto

// Protobuf Java Version: 3.25.2
package com.google.cloud.videointelligence.v1p3beta1;

/**
 *
 *
 * 
 * `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 {@code google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse} */ public final class StreamingAnnotateVideoResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) StreamingAnnotateVideoResponseOrBuilder { private static final long serialVersionUID = 0L; // Use StreamingAnnotateVideoResponse.newBuilder() to construct. private StreamingAnnotateVideoResponse( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamingAnnotateVideoResponse() { annotationResultsUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamingAnnotateVideoResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse.class, com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse.Builder .class); } private int bitField0_; public static final int ERROR_FIELD_NUMBER = 1; private com.google.rpc.Status error_; /** * * *
   * If set, returns a [google.rpc.Status][google.rpc.Status] message that
   * specifies the error for the operation.
   * 
* * .google.rpc.Status error = 1; * * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * If set, returns a [google.rpc.Status][google.rpc.Status] message that
   * specifies the error for the operation.
   * 
* * .google.rpc.Status error = 1; * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** * * *
   * If set, returns a [google.rpc.Status][google.rpc.Status] message that
   * specifies the error for the operation.
   * 
* * .google.rpc.Status error = 1; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int ANNOTATION_RESULTS_FIELD_NUMBER = 2; private com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotationResults_; /** * * *
   * Streaming annotation results.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * * * @return Whether the annotationResults field is set. */ @java.lang.Override public boolean hasAnnotationResults() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Streaming annotation results.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * * * @return The annotationResults. */ @java.lang.Override public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults getAnnotationResults() { return annotationResults_ == null ? com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults .getDefaultInstance() : annotationResults_; } /** * * *
   * Streaming annotation results.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * */ @java.lang.Override public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder getAnnotationResultsOrBuilder() { return annotationResults_ == null ? com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults .getDefaultInstance() : annotationResults_; } public static final int ANNOTATION_RESULTS_URI_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object annotationResultsUri_ = ""; /** * * *
   * 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; * * @return The annotationResultsUri. */ @java.lang.Override public java.lang.String getAnnotationResultsUri() { java.lang.Object ref = annotationResultsUri_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationResultsUri_ = s; return s; } } /** * * *
   * 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; * * @return The bytes for annotationResultsUri. */ @java.lang.Override public com.google.protobuf.ByteString getAnnotationResultsUriBytes() { java.lang.Object ref = annotationResultsUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationResultsUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getError()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getAnnotationResults()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationResultsUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, annotationResultsUri_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnnotationResults()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationResultsUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, annotationResultsUri_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse)) { return super.equals(obj); } com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse other = (com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) obj; if (hasError() != other.hasError()) return false; if (hasError()) { if (!getError().equals(other.getError())) return false; } if (hasAnnotationResults() != other.hasAnnotationResults()) return false; if (hasAnnotationResults()) { if (!getAnnotationResults().equals(other.getAnnotationResults())) return false; } if (!getAnnotationResultsUri().equals(other.getAnnotationResultsUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } if (hasAnnotationResults()) { hash = (37 * hash) + ANNOTATION_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getAnnotationResults().hashCode(); } hash = (37 * hash) + ANNOTATION_RESULTS_URI_FIELD_NUMBER; hash = (53 * hash) + getAnnotationResultsUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * `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 {@code google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse.class, com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse.Builder .class); } // Construct using // com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorFieldBuilder(); getAnnotationResultsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); errorBuilder_ = null; } annotationResults_ = null; if (annotationResultsBuilder_ != null) { annotationResultsBuilder_.dispose(); annotationResultsBuilder_ = null; } annotationResultsUri_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_descriptor; } @java.lang.Override public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse getDefaultInstanceForType() { return com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse .getDefaultInstance(); } @java.lang.Override public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse build() { com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse buildPartial() { com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse result = new com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.annotationResults_ = annotationResultsBuilder_ == null ? annotationResults_ : annotationResultsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.annotationResultsUri_ = annotationResultsUri_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) { return mergeFrom( (com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse other) { if (other == com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse .getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } if (other.hasAnnotationResults()) { mergeAnnotationResults(other.getAnnotationResults()); } if (!other.getAnnotationResultsUri().isEmpty()) { annotationResultsUri_ = other.annotationResultsUri_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getAnnotationResultsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { annotationResultsUri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** * * *
     * If set, returns a [google.rpc.Status][google.rpc.Status] message that
     * specifies the error for the operation.
     * 
* * .google.rpc.Status error = 1; * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * If set, returns a [google.rpc.Status][google.rpc.Status] message that
     * specifies the error for the operation.
     * 
* * .google.rpc.Status error = 1; * * @return The error. */ public com.google.rpc.Status getError() { if (errorBuilder_ == null) { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * * *
     * If set, returns a [google.rpc.Status][google.rpc.Status] message that
     * specifies the error for the operation.
     * 
* * .google.rpc.Status error = 1; */ public Builder setError(com.google.rpc.Status value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; } else { errorBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * If set, returns a [google.rpc.Status][google.rpc.Status] message that
     * specifies the error for the operation.
     * 
* * .google.rpc.Status error = 1; */ public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { errorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * If set, returns a [google.rpc.Status][google.rpc.Status] message that
     * specifies the error for the operation.
     * 
* * .google.rpc.Status error = 1; */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && error_ != null && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; } } else { errorBuilder_.mergeFrom(value); } if (error_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
     * If set, returns a [google.rpc.Status][google.rpc.Status] message that
     * specifies the error for the operation.
     * 
* * .google.rpc.Status error = 1; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000001); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); errorBuilder_ = null; } onChanged(); return this; } /** * * *
     * If set, returns a [google.rpc.Status][google.rpc.Status] message that
     * specifies the error for the operation.
     * 
* * .google.rpc.Status error = 1; */ public com.google.rpc.Status.Builder getErrorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * * *
     * If set, returns a [google.rpc.Status][google.rpc.Status] message that
     * specifies the error for the operation.
     * 
* * .google.rpc.Status error = 1; */ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } } /** * * *
     * If set, returns a [google.rpc.Status][google.rpc.Status] message that
     * specifies the error for the operation.
     * 
* * .google.rpc.Status error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotationResults_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults, com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder, com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder> annotationResultsBuilder_; /** * * *
     * Streaming annotation results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * * * @return Whether the annotationResults field is set. */ public boolean hasAnnotationResults() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Streaming annotation results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * * * @return The annotationResults. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults getAnnotationResults() { if (annotationResultsBuilder_ == null) { return annotationResults_ == null ? com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults .getDefaultInstance() : annotationResults_; } else { return annotationResultsBuilder_.getMessage(); } } /** * * *
     * Streaming annotation results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * */ public Builder setAnnotationResults( com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults value) { if (annotationResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } annotationResults_ = value; } else { annotationResultsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Streaming annotation results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * */ public Builder setAnnotationResults( com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder builderForValue) { if (annotationResultsBuilder_ == null) { annotationResults_ = builderForValue.build(); } else { annotationResultsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Streaming annotation results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * */ public Builder mergeAnnotationResults( com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults value) { if (annotationResultsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && annotationResults_ != null && annotationResults_ != com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults .getDefaultInstance()) { getAnnotationResultsBuilder().mergeFrom(value); } else { annotationResults_ = value; } } else { annotationResultsBuilder_.mergeFrom(value); } if (annotationResults_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Streaming annotation results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * */ public Builder clearAnnotationResults() { bitField0_ = (bitField0_ & ~0x00000002); annotationResults_ = null; if (annotationResultsBuilder_ != null) { annotationResultsBuilder_.dispose(); annotationResultsBuilder_ = null; } onChanged(); return this; } /** * * *
     * Streaming annotation results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder getAnnotationResultsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAnnotationResultsFieldBuilder().getBuilder(); } /** * * *
     * Streaming annotation results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder getAnnotationResultsOrBuilder() { if (annotationResultsBuilder_ != null) { return annotationResultsBuilder_.getMessageOrBuilder(); } else { return annotationResults_ == null ? com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults .getDefaultInstance() : annotationResults_; } } /** * * *
     * Streaming annotation results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults, com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder, com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder> getAnnotationResultsFieldBuilder() { if (annotationResultsBuilder_ == null) { annotationResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults, com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults .Builder, com.google.cloud.videointelligence.v1p3beta1 .StreamingVideoAnnotationResultsOrBuilder>( getAnnotationResults(), getParentForChildren(), isClean()); annotationResults_ = null; } return annotationResultsBuilder_; } private java.lang.Object annotationResultsUri_ = ""; /** * * *
     * 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; * * @return The annotationResultsUri. */ public java.lang.String getAnnotationResultsUri() { java.lang.Object ref = annotationResultsUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationResultsUri_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * 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; * * @return The bytes for annotationResultsUri. */ public com.google.protobuf.ByteString getAnnotationResultsUriBytes() { java.lang.Object ref = annotationResultsUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationResultsUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * 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; * * @param value The annotationResultsUri to set. * @return This builder for chaining. */ public Builder setAnnotationResultsUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } annotationResultsUri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * 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; * * @return This builder for chaining. */ public Builder clearAnnotationResultsUri() { annotationResultsUri_ = getDefaultInstance().getAnnotationResultsUri(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * 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; * * @param value The bytes for annotationResultsUri to set. * @return This builder for chaining. */ public Builder setAnnotationResultsUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); annotationResultsUri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) } // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) private static final com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse(); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamingAnnotateVideoResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy