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 2020 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

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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StreamingAnnotateVideoResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.rpc.Status.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 18: { com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder subBuilder = null; if (annotationResults_ != null) { subBuilder = annotationResults_.toBuilder(); } annotationResults_ = input.readMessage( com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults .parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(annotationResults_); annotationResults_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); annotationResultsUri_ = s; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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); } 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 error_ != null; } /** * * *
   * 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 getError(); } 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 annotationResults_ != null; } /** * * *
   * 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 getAnnotationResults(); } public static final int ANNOTATION_RESULTS_URI_FIELD_NUMBER = 3; 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 (error_ != null) { output.writeMessage(1, getError()); } if (annotationResults_ != null) { output.writeMessage(2, getAnnotationResults()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationResultsUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, annotationResultsUri_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (error_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError()); } if (annotationResults_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnnotationResults()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationResultsUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, annotationResultsUri_); } size += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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) {} } @java.lang.Override public Builder clear() { super.clear(); if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } if (annotationResultsBuilder_ == null) { annotationResults_ = null; } else { annotationResults_ = null; 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 (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } if (annotationResultsBuilder_ == null) { result.annotationResults_ = annotationResults_; } else { result.annotationResults_ = annotationResultsBuilder_.build(); } result.annotationResultsUri_ = annotationResultsUri_; onBuilt(); return result; } @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_; onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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 errorBuilder_ != null || error_ != null; } /** * * *
     * 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; onChanged(); } else { errorBuilder_.setMessage(value); } 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(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } 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 (error_ != null) { error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } 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() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } 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() { 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 annotationResultsBuilder_ != null || annotationResults_ != null; } /** * * *
     * 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; onChanged(); } else { annotationResultsBuilder_.setMessage(value); } 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(); onChanged(); } else { annotationResultsBuilder_.setMessage(builderForValue.build()); } 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 (annotationResults_ != null) { annotationResults_ = com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults .newBuilder(annotationResults_) .mergeFrom(value) .buildPartial(); } else { annotationResults_ = value; } onChanged(); } else { annotationResultsBuilder_.mergeFrom(value); } return this; } /** * * *
     * Streaming annotation results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * */ public Builder clearAnnotationResults() { if (annotationResultsBuilder_ == null) { annotationResults_ = null; onChanged(); } else { annotationResults_ = null; annotationResultsBuilder_ = null; } return this; } /** * * *
     * Streaming annotation results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder getAnnotationResultsBuilder() { 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; 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(); 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; 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 { return new StreamingAnnotateVideoResponse(input, extensionRegistry); } }; 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