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

com.google.cloud.retail.v2.OutputResult Maven / Gradle / Ivy

The 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/retail/v2/export_config.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.retail.v2;

/**
 *
 *
 * 
 * Output result that stores the information about where the exported data is
 * stored.
 * 
* * Protobuf type {@code google.cloud.retail.v2.OutputResult} */ public final class OutputResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.OutputResult) OutputResultOrBuilder { private static final long serialVersionUID = 0L; // Use OutputResult.newBuilder() to construct. private OutputResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OutputResult() { bigqueryResult_ = java.util.Collections.emptyList(); gcsResult_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.retail.v2.ExportConfigProto .internal_static_google_cloud_retail_v2_OutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.retail.v2.ExportConfigProto .internal_static_google_cloud_retail_v2_OutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.retail.v2.OutputResult.class, com.google.cloud.retail.v2.OutputResult.Builder.class); } public static final int BIGQUERY_RESULT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List bigqueryResult_; /** * * *
   * The BigQuery location where the result is stored.
   * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ @java.lang.Override public java.util.List getBigqueryResultList() { return bigqueryResult_; } /** * * *
   * The BigQuery location where the result is stored.
   * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ @java.lang.Override public java.util.List getBigqueryResultOrBuilderList() { return bigqueryResult_; } /** * * *
   * The BigQuery location where the result is stored.
   * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ @java.lang.Override public int getBigqueryResultCount() { return bigqueryResult_.size(); } /** * * *
   * The BigQuery location where the result is stored.
   * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ @java.lang.Override public com.google.cloud.retail.v2.BigQueryOutputResult getBigqueryResult(int index) { return bigqueryResult_.get(index); } /** * * *
   * The BigQuery location where the result is stored.
   * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ @java.lang.Override public com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder getBigqueryResultOrBuilder( int index) { return bigqueryResult_.get(index); } public static final int GCS_RESULT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List gcsResult_; /** * * *
   * The Google Cloud Storage location where the result is stored.
   * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ @java.lang.Override public java.util.List getGcsResultList() { return gcsResult_; } /** * * *
   * The Google Cloud Storage location where the result is stored.
   * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ @java.lang.Override public java.util.List getGcsResultOrBuilderList() { return gcsResult_; } /** * * *
   * The Google Cloud Storage location where the result is stored.
   * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ @java.lang.Override public int getGcsResultCount() { return gcsResult_.size(); } /** * * *
   * The Google Cloud Storage location where the result is stored.
   * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ @java.lang.Override public com.google.cloud.retail.v2.GcsOutputResult getGcsResult(int index) { return gcsResult_.get(index); } /** * * *
   * The Google Cloud Storage location where the result is stored.
   * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ @java.lang.Override public com.google.cloud.retail.v2.GcsOutputResultOrBuilder getGcsResultOrBuilder(int index) { return gcsResult_.get(index); } 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 { for (int i = 0; i < bigqueryResult_.size(); i++) { output.writeMessage(1, bigqueryResult_.get(i)); } for (int i = 0; i < gcsResult_.size(); i++) { output.writeMessage(2, gcsResult_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < bigqueryResult_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bigqueryResult_.get(i)); } for (int i = 0; i < gcsResult_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, gcsResult_.get(i)); } 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.retail.v2.OutputResult)) { return super.equals(obj); } com.google.cloud.retail.v2.OutputResult other = (com.google.cloud.retail.v2.OutputResult) obj; if (!getBigqueryResultList().equals(other.getBigqueryResultList())) return false; if (!getGcsResultList().equals(other.getGcsResultList())) 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 (getBigqueryResultCount() > 0) { hash = (37 * hash) + BIGQUERY_RESULT_FIELD_NUMBER; hash = (53 * hash) + getBigqueryResultList().hashCode(); } if (getGcsResultCount() > 0) { hash = (37 * hash) + GCS_RESULT_FIELD_NUMBER; hash = (53 * hash) + getGcsResultList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.retail.v2.OutputResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.retail.v2.OutputResult 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.retail.v2.OutputResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.retail.v2.OutputResult 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.retail.v2.OutputResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.retail.v2.OutputResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.retail.v2.OutputResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.retail.v2.OutputResult 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.retail.v2.OutputResult parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.retail.v2.OutputResult 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.retail.v2.OutputResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.retail.v2.OutputResult 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.retail.v2.OutputResult 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; } /** * * *
   * Output result that stores the information about where the exported data is
   * stored.
   * 
* * Protobuf type {@code google.cloud.retail.v2.OutputResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.OutputResult) com.google.cloud.retail.v2.OutputResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.retail.v2.ExportConfigProto .internal_static_google_cloud_retail_v2_OutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.retail.v2.ExportConfigProto .internal_static_google_cloud_retail_v2_OutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.retail.v2.OutputResult.class, com.google.cloud.retail.v2.OutputResult.Builder.class); } // Construct using com.google.cloud.retail.v2.OutputResult.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (bigqueryResultBuilder_ == null) { bigqueryResult_ = java.util.Collections.emptyList(); } else { bigqueryResult_ = null; bigqueryResultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (gcsResultBuilder_ == null) { gcsResult_ = java.util.Collections.emptyList(); } else { gcsResult_ = null; gcsResultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.retail.v2.ExportConfigProto .internal_static_google_cloud_retail_v2_OutputResult_descriptor; } @java.lang.Override public com.google.cloud.retail.v2.OutputResult getDefaultInstanceForType() { return com.google.cloud.retail.v2.OutputResult.getDefaultInstance(); } @java.lang.Override public com.google.cloud.retail.v2.OutputResult build() { com.google.cloud.retail.v2.OutputResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.retail.v2.OutputResult buildPartial() { com.google.cloud.retail.v2.OutputResult result = new com.google.cloud.retail.v2.OutputResult(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.cloud.retail.v2.OutputResult result) { if (bigqueryResultBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { bigqueryResult_ = java.util.Collections.unmodifiableList(bigqueryResult_); bitField0_ = (bitField0_ & ~0x00000001); } result.bigqueryResult_ = bigqueryResult_; } else { result.bigqueryResult_ = bigqueryResultBuilder_.build(); } if (gcsResultBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { gcsResult_ = java.util.Collections.unmodifiableList(gcsResult_); bitField0_ = (bitField0_ & ~0x00000002); } result.gcsResult_ = gcsResult_; } else { result.gcsResult_ = gcsResultBuilder_.build(); } } private void buildPartial0(com.google.cloud.retail.v2.OutputResult result) { int from_bitField0_ = 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.retail.v2.OutputResult) { return mergeFrom((com.google.cloud.retail.v2.OutputResult) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.retail.v2.OutputResult other) { if (other == com.google.cloud.retail.v2.OutputResult.getDefaultInstance()) return this; if (bigqueryResultBuilder_ == null) { if (!other.bigqueryResult_.isEmpty()) { if (bigqueryResult_.isEmpty()) { bigqueryResult_ = other.bigqueryResult_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBigqueryResultIsMutable(); bigqueryResult_.addAll(other.bigqueryResult_); } onChanged(); } } else { if (!other.bigqueryResult_.isEmpty()) { if (bigqueryResultBuilder_.isEmpty()) { bigqueryResultBuilder_.dispose(); bigqueryResultBuilder_ = null; bigqueryResult_ = other.bigqueryResult_; bitField0_ = (bitField0_ & ~0x00000001); bigqueryResultBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBigqueryResultFieldBuilder() : null; } else { bigqueryResultBuilder_.addAllMessages(other.bigqueryResult_); } } } if (gcsResultBuilder_ == null) { if (!other.gcsResult_.isEmpty()) { if (gcsResult_.isEmpty()) { gcsResult_ = other.gcsResult_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureGcsResultIsMutable(); gcsResult_.addAll(other.gcsResult_); } onChanged(); } } else { if (!other.gcsResult_.isEmpty()) { if (gcsResultBuilder_.isEmpty()) { gcsResultBuilder_.dispose(); gcsResultBuilder_ = null; gcsResult_ = other.gcsResult_; bitField0_ = (bitField0_ & ~0x00000002); gcsResultBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGcsResultFieldBuilder() : null; } else { gcsResultBuilder_.addAllMessages(other.gcsResult_); } } } 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: { com.google.cloud.retail.v2.BigQueryOutputResult m = input.readMessage( com.google.cloud.retail.v2.BigQueryOutputResult.parser(), extensionRegistry); if (bigqueryResultBuilder_ == null) { ensureBigqueryResultIsMutable(); bigqueryResult_.add(m); } else { bigqueryResultBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.cloud.retail.v2.GcsOutputResult m = input.readMessage( com.google.cloud.retail.v2.GcsOutputResult.parser(), extensionRegistry); if (gcsResultBuilder_ == null) { ensureGcsResultIsMutable(); gcsResult_.add(m); } else { gcsResultBuilder_.addMessage(m); } break; } // case 18 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 java.util.List bigqueryResult_ = java.util.Collections.emptyList(); private void ensureBigqueryResultIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { bigqueryResult_ = new java.util.ArrayList( bigqueryResult_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.retail.v2.BigQueryOutputResult, com.google.cloud.retail.v2.BigQueryOutputResult.Builder, com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder> bigqueryResultBuilder_; /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public java.util.List getBigqueryResultList() { if (bigqueryResultBuilder_ == null) { return java.util.Collections.unmodifiableList(bigqueryResult_); } else { return bigqueryResultBuilder_.getMessageList(); } } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public int getBigqueryResultCount() { if (bigqueryResultBuilder_ == null) { return bigqueryResult_.size(); } else { return bigqueryResultBuilder_.getCount(); } } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public com.google.cloud.retail.v2.BigQueryOutputResult getBigqueryResult(int index) { if (bigqueryResultBuilder_ == null) { return bigqueryResult_.get(index); } else { return bigqueryResultBuilder_.getMessage(index); } } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public Builder setBigqueryResult( int index, com.google.cloud.retail.v2.BigQueryOutputResult value) { if (bigqueryResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBigqueryResultIsMutable(); bigqueryResult_.set(index, value); onChanged(); } else { bigqueryResultBuilder_.setMessage(index, value); } return this; } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public Builder setBigqueryResult( int index, com.google.cloud.retail.v2.BigQueryOutputResult.Builder builderForValue) { if (bigqueryResultBuilder_ == null) { ensureBigqueryResultIsMutable(); bigqueryResult_.set(index, builderForValue.build()); onChanged(); } else { bigqueryResultBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public Builder addBigqueryResult(com.google.cloud.retail.v2.BigQueryOutputResult value) { if (bigqueryResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBigqueryResultIsMutable(); bigqueryResult_.add(value); onChanged(); } else { bigqueryResultBuilder_.addMessage(value); } return this; } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public Builder addBigqueryResult( int index, com.google.cloud.retail.v2.BigQueryOutputResult value) { if (bigqueryResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBigqueryResultIsMutable(); bigqueryResult_.add(index, value); onChanged(); } else { bigqueryResultBuilder_.addMessage(index, value); } return this; } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public Builder addBigqueryResult( com.google.cloud.retail.v2.BigQueryOutputResult.Builder builderForValue) { if (bigqueryResultBuilder_ == null) { ensureBigqueryResultIsMutable(); bigqueryResult_.add(builderForValue.build()); onChanged(); } else { bigqueryResultBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public Builder addBigqueryResult( int index, com.google.cloud.retail.v2.BigQueryOutputResult.Builder builderForValue) { if (bigqueryResultBuilder_ == null) { ensureBigqueryResultIsMutable(); bigqueryResult_.add(index, builderForValue.build()); onChanged(); } else { bigqueryResultBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public Builder addAllBigqueryResult( java.lang.Iterable values) { if (bigqueryResultBuilder_ == null) { ensureBigqueryResultIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bigqueryResult_); onChanged(); } else { bigqueryResultBuilder_.addAllMessages(values); } return this; } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public Builder clearBigqueryResult() { if (bigqueryResultBuilder_ == null) { bigqueryResult_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { bigqueryResultBuilder_.clear(); } return this; } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public Builder removeBigqueryResult(int index) { if (bigqueryResultBuilder_ == null) { ensureBigqueryResultIsMutable(); bigqueryResult_.remove(index); onChanged(); } else { bigqueryResultBuilder_.remove(index); } return this; } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public com.google.cloud.retail.v2.BigQueryOutputResult.Builder getBigqueryResultBuilder( int index) { return getBigqueryResultFieldBuilder().getBuilder(index); } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder getBigqueryResultOrBuilder( int index) { if (bigqueryResultBuilder_ == null) { return bigqueryResult_.get(index); } else { return bigqueryResultBuilder_.getMessageOrBuilder(index); } } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public java.util.List getBigqueryResultOrBuilderList() { if (bigqueryResultBuilder_ != null) { return bigqueryResultBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(bigqueryResult_); } } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public com.google.cloud.retail.v2.BigQueryOutputResult.Builder addBigqueryResultBuilder() { return getBigqueryResultFieldBuilder() .addBuilder(com.google.cloud.retail.v2.BigQueryOutputResult.getDefaultInstance()); } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public com.google.cloud.retail.v2.BigQueryOutputResult.Builder addBigqueryResultBuilder( int index) { return getBigqueryResultFieldBuilder() .addBuilder(index, com.google.cloud.retail.v2.BigQueryOutputResult.getDefaultInstance()); } /** * * *
     * The BigQuery location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.BigQueryOutputResult bigquery_result = 1; */ public java.util.List getBigqueryResultBuilderList() { return getBigqueryResultFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.retail.v2.BigQueryOutputResult, com.google.cloud.retail.v2.BigQueryOutputResult.Builder, com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder> getBigqueryResultFieldBuilder() { if (bigqueryResultBuilder_ == null) { bigqueryResultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.retail.v2.BigQueryOutputResult, com.google.cloud.retail.v2.BigQueryOutputResult.Builder, com.google.cloud.retail.v2.BigQueryOutputResultOrBuilder>( bigqueryResult_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); bigqueryResult_ = null; } return bigqueryResultBuilder_; } private java.util.List gcsResult_ = java.util.Collections.emptyList(); private void ensureGcsResultIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { gcsResult_ = new java.util.ArrayList(gcsResult_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.retail.v2.GcsOutputResult, com.google.cloud.retail.v2.GcsOutputResult.Builder, com.google.cloud.retail.v2.GcsOutputResultOrBuilder> gcsResultBuilder_; /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public java.util.List getGcsResultList() { if (gcsResultBuilder_ == null) { return java.util.Collections.unmodifiableList(gcsResult_); } else { return gcsResultBuilder_.getMessageList(); } } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public int getGcsResultCount() { if (gcsResultBuilder_ == null) { return gcsResult_.size(); } else { return gcsResultBuilder_.getCount(); } } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public com.google.cloud.retail.v2.GcsOutputResult getGcsResult(int index) { if (gcsResultBuilder_ == null) { return gcsResult_.get(index); } else { return gcsResultBuilder_.getMessage(index); } } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public Builder setGcsResult(int index, com.google.cloud.retail.v2.GcsOutputResult value) { if (gcsResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGcsResultIsMutable(); gcsResult_.set(index, value); onChanged(); } else { gcsResultBuilder_.setMessage(index, value); } return this; } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public Builder setGcsResult( int index, com.google.cloud.retail.v2.GcsOutputResult.Builder builderForValue) { if (gcsResultBuilder_ == null) { ensureGcsResultIsMutable(); gcsResult_.set(index, builderForValue.build()); onChanged(); } else { gcsResultBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public Builder addGcsResult(com.google.cloud.retail.v2.GcsOutputResult value) { if (gcsResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGcsResultIsMutable(); gcsResult_.add(value); onChanged(); } else { gcsResultBuilder_.addMessage(value); } return this; } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public Builder addGcsResult(int index, com.google.cloud.retail.v2.GcsOutputResult value) { if (gcsResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGcsResultIsMutable(); gcsResult_.add(index, value); onChanged(); } else { gcsResultBuilder_.addMessage(index, value); } return this; } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public Builder addGcsResult( com.google.cloud.retail.v2.GcsOutputResult.Builder builderForValue) { if (gcsResultBuilder_ == null) { ensureGcsResultIsMutable(); gcsResult_.add(builderForValue.build()); onChanged(); } else { gcsResultBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public Builder addGcsResult( int index, com.google.cloud.retail.v2.GcsOutputResult.Builder builderForValue) { if (gcsResultBuilder_ == null) { ensureGcsResultIsMutable(); gcsResult_.add(index, builderForValue.build()); onChanged(); } else { gcsResultBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public Builder addAllGcsResult( java.lang.Iterable values) { if (gcsResultBuilder_ == null) { ensureGcsResultIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gcsResult_); onChanged(); } else { gcsResultBuilder_.addAllMessages(values); } return this; } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public Builder clearGcsResult() { if (gcsResultBuilder_ == null) { gcsResult_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { gcsResultBuilder_.clear(); } return this; } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public Builder removeGcsResult(int index) { if (gcsResultBuilder_ == null) { ensureGcsResultIsMutable(); gcsResult_.remove(index); onChanged(); } else { gcsResultBuilder_.remove(index); } return this; } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public com.google.cloud.retail.v2.GcsOutputResult.Builder getGcsResultBuilder(int index) { return getGcsResultFieldBuilder().getBuilder(index); } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public com.google.cloud.retail.v2.GcsOutputResultOrBuilder getGcsResultOrBuilder(int index) { if (gcsResultBuilder_ == null) { return gcsResult_.get(index); } else { return gcsResultBuilder_.getMessageOrBuilder(index); } } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public java.util.List getGcsResultOrBuilderList() { if (gcsResultBuilder_ != null) { return gcsResultBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(gcsResult_); } } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public com.google.cloud.retail.v2.GcsOutputResult.Builder addGcsResultBuilder() { return getGcsResultFieldBuilder() .addBuilder(com.google.cloud.retail.v2.GcsOutputResult.getDefaultInstance()); } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public com.google.cloud.retail.v2.GcsOutputResult.Builder addGcsResultBuilder(int index) { return getGcsResultFieldBuilder() .addBuilder(index, com.google.cloud.retail.v2.GcsOutputResult.getDefaultInstance()); } /** * * *
     * The Google Cloud Storage location where the result is stored.
     * 
* * repeated .google.cloud.retail.v2.GcsOutputResult gcs_result = 2; */ public java.util.List getGcsResultBuilderList() { return getGcsResultFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.retail.v2.GcsOutputResult, com.google.cloud.retail.v2.GcsOutputResult.Builder, com.google.cloud.retail.v2.GcsOutputResultOrBuilder> getGcsResultFieldBuilder() { if (gcsResultBuilder_ == null) { gcsResultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.retail.v2.GcsOutputResult, com.google.cloud.retail.v2.GcsOutputResult.Builder, com.google.cloud.retail.v2.GcsOutputResultOrBuilder>( gcsResult_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); gcsResult_ = null; } return gcsResultBuilder_; } @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.retail.v2.OutputResult) } // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.OutputResult) private static final com.google.cloud.retail.v2.OutputResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.retail.v2.OutputResult(); } public static com.google.cloud.retail.v2.OutputResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OutputResult 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.retail.v2.OutputResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy