com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-retail-v2 Show documentation
Show all versions of proto-google-cloud-retail-v2 Show documentation
Proto library for google-cloud-retail
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;
/**
*
*
*
* Response of the ExportAnalyticsMetricsRequest. If the long running
* operation was successful, then this message is returned by the
* google.longrunning.Operations.response field if the operation was successful.
*
*
* Protobuf type {@code google.cloud.retail.v2.ExportAnalyticsMetricsResponse}
*/
public final class ExportAnalyticsMetricsResponse extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ExportAnalyticsMetricsResponse)
ExportAnalyticsMetricsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExportAnalyticsMetricsResponse.newBuilder() to construct.
private ExportAnalyticsMetricsResponse(
com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExportAnalyticsMetricsResponse() {
errorSamples_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ExportAnalyticsMetricsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.retail.v2.ExportConfigProto
.internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.retail.v2.ExportConfigProto
.internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.class,
com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.Builder.class);
}
private int bitField0_;
public static final int ERROR_SAMPLES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List errorSamples_;
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
@java.lang.Override
public java.util.List getErrorSamplesList() {
return errorSamples_;
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
@java.lang.Override
public java.util.List extends com.google.rpc.StatusOrBuilder> getErrorSamplesOrBuilderList() {
return errorSamples_;
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
@java.lang.Override
public int getErrorSamplesCount() {
return errorSamples_.size();
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
@java.lang.Override
public com.google.rpc.Status getErrorSamples(int index) {
return errorSamples_.get(index);
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) {
return errorSamples_.get(index);
}
public static final int ERRORS_CONFIG_FIELD_NUMBER = 2;
private com.google.cloud.retail.v2.ExportErrorsConfig errorsConfig_;
/**
*
*
*
* This field is never set.
*
*
* .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
*
* @return Whether the errorsConfig field is set.
*/
@java.lang.Override
public boolean hasErrorsConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* This field is never set.
*
*
* .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
*
* @return The errorsConfig.
*/
@java.lang.Override
public com.google.cloud.retail.v2.ExportErrorsConfig getErrorsConfig() {
return errorsConfig_ == null
? com.google.cloud.retail.v2.ExportErrorsConfig.getDefaultInstance()
: errorsConfig_;
}
/**
*
*
*
* This field is never set.
*
*
* .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
*/
@java.lang.Override
public com.google.cloud.retail.v2.ExportErrorsConfigOrBuilder getErrorsConfigOrBuilder() {
return errorsConfig_ == null
? com.google.cloud.retail.v2.ExportErrorsConfig.getDefaultInstance()
: errorsConfig_;
}
public static final int OUTPUT_RESULT_FIELD_NUMBER = 3;
private com.google.cloud.retail.v2.OutputResult outputResult_;
/**
*
*
*
* Output result indicating where the data were exported to.
*
*
* .google.cloud.retail.v2.OutputResult output_result = 3;
*
* @return Whether the outputResult field is set.
*/
@java.lang.Override
public boolean hasOutputResult() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output result indicating where the data were exported to.
*
*
* .google.cloud.retail.v2.OutputResult output_result = 3;
*
* @return The outputResult.
*/
@java.lang.Override
public com.google.cloud.retail.v2.OutputResult getOutputResult() {
return outputResult_ == null
? com.google.cloud.retail.v2.OutputResult.getDefaultInstance()
: outputResult_;
}
/**
*
*
*
* Output result indicating where the data were exported to.
*
*
* .google.cloud.retail.v2.OutputResult output_result = 3;
*/
@java.lang.Override
public com.google.cloud.retail.v2.OutputResultOrBuilder getOutputResultOrBuilder() {
return outputResult_ == null
? com.google.cloud.retail.v2.OutputResult.getDefaultInstance()
: outputResult_;
}
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 < errorSamples_.size(); i++) {
output.writeMessage(1, errorSamples_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getErrorsConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getOutputResult());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < errorSamples_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errorSamples_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorsConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputResult());
}
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.ExportAnalyticsMetricsResponse)) {
return super.equals(obj);
}
com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse other =
(com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse) obj;
if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false;
if (hasErrorsConfig() != other.hasErrorsConfig()) return false;
if (hasErrorsConfig()) {
if (!getErrorsConfig().equals(other.getErrorsConfig())) return false;
}
if (hasOutputResult() != other.hasOutputResult()) return false;
if (hasOutputResult()) {
if (!getOutputResult().equals(other.getOutputResult())) 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 (getErrorSamplesCount() > 0) {
hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER;
hash = (53 * hash) + getErrorSamplesList().hashCode();
}
if (hasErrorsConfig()) {
hash = (37 * hash) + ERRORS_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getErrorsConfig().hashCode();
}
if (hasOutputResult()) {
hash = (37 * hash) + OUTPUT_RESULT_FIELD_NUMBER;
hash = (53 * hash) + getOutputResult().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse 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.ExportAnalyticsMetricsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse 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.ExportAnalyticsMetricsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse 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.ExportAnalyticsMetricsResponse parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse 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.ExportAnalyticsMetricsResponse parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse 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.ExportAnalyticsMetricsResponse 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.ExportAnalyticsMetricsResponse 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.ExportAnalyticsMetricsResponse 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;
}
/**
*
*
*
* Response of the ExportAnalyticsMetricsRequest. If the long running
* operation was successful, then this message is returned by the
* google.longrunning.Operations.response field if the operation was successful.
*
*
* Protobuf type {@code google.cloud.retail.v2.ExportAnalyticsMetricsResponse}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ExportAnalyticsMetricsResponse)
com.google.cloud.retail.v2.ExportAnalyticsMetricsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.retail.v2.ExportConfigProto
.internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.retail.v2.ExportConfigProto
.internal_static_google_cloud_retail_v2_ExportAnalyticsMetricsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.class,
com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.Builder.class);
}
// Construct using com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getErrorSamplesFieldBuilder();
getErrorsConfigFieldBuilder();
getOutputResultFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (errorSamplesBuilder_ == null) {
errorSamples_ = java.util.Collections.emptyList();
} else {
errorSamples_ = null;
errorSamplesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
errorsConfig_ = null;
if (errorsConfigBuilder_ != null) {
errorsConfigBuilder_.dispose();
errorsConfigBuilder_ = null;
}
outputResult_ = null;
if (outputResultBuilder_ != null) {
outputResultBuilder_.dispose();
outputResultBuilder_ = null;
}
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_ExportAnalyticsMetricsResponse_descriptor;
}
@java.lang.Override
public com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse getDefaultInstanceForType() {
return com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse build() {
com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse buildPartial() {
com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse result =
new com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse result) {
if (errorSamplesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.errorSamples_ = errorSamples_;
} else {
result.errorSamples_ = errorSamplesBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.errorsConfig_ =
errorsConfigBuilder_ == null ? errorsConfig_ : errorsConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.outputResult_ =
outputResultBuilder_ == null ? outputResult_ : outputResultBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.retail.v2.ExportAnalyticsMetricsResponse) {
return mergeFrom((com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse other) {
if (other == com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse.getDefaultInstance())
return this;
if (errorSamplesBuilder_ == null) {
if (!other.errorSamples_.isEmpty()) {
if (errorSamples_.isEmpty()) {
errorSamples_ = other.errorSamples_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureErrorSamplesIsMutable();
errorSamples_.addAll(other.errorSamples_);
}
onChanged();
}
} else {
if (!other.errorSamples_.isEmpty()) {
if (errorSamplesBuilder_.isEmpty()) {
errorSamplesBuilder_.dispose();
errorSamplesBuilder_ = null;
errorSamples_ = other.errorSamples_;
bitField0_ = (bitField0_ & ~0x00000001);
errorSamplesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getErrorSamplesFieldBuilder()
: null;
} else {
errorSamplesBuilder_.addAllMessages(other.errorSamples_);
}
}
}
if (other.hasErrorsConfig()) {
mergeErrorsConfig(other.getErrorsConfig());
}
if (other.hasOutputResult()) {
mergeOutputResult(other.getOutputResult());
}
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.rpc.Status m =
input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
if (errorSamplesBuilder_ == null) {
ensureErrorSamplesIsMutable();
errorSamples_.add(m);
} else {
errorSamplesBuilder_.addMessage(m);
}
break;
} // case 10
case 18:
{
input.readMessage(getErrorsConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getOutputResultFieldBuilder().getBuilder(), extensionRegistry);
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 java.util.List errorSamples_ = java.util.Collections.emptyList();
private void ensureErrorSamplesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
errorSamples_ = new java.util.ArrayList(errorSamples_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
errorSamplesBuilder_;
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public java.util.List getErrorSamplesList() {
if (errorSamplesBuilder_ == null) {
return java.util.Collections.unmodifiableList(errorSamples_);
} else {
return errorSamplesBuilder_.getMessageList();
}
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public int getErrorSamplesCount() {
if (errorSamplesBuilder_ == null) {
return errorSamples_.size();
} else {
return errorSamplesBuilder_.getCount();
}
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public com.google.rpc.Status getErrorSamples(int index) {
if (errorSamplesBuilder_ == null) {
return errorSamples_.get(index);
} else {
return errorSamplesBuilder_.getMessage(index);
}
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public Builder setErrorSamples(int index, com.google.rpc.Status value) {
if (errorSamplesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureErrorSamplesIsMutable();
errorSamples_.set(index, value);
onChanged();
} else {
errorSamplesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) {
if (errorSamplesBuilder_ == null) {
ensureErrorSamplesIsMutable();
errorSamples_.set(index, builderForValue.build());
onChanged();
} else {
errorSamplesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public Builder addErrorSamples(com.google.rpc.Status value) {
if (errorSamplesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureErrorSamplesIsMutable();
errorSamples_.add(value);
onChanged();
} else {
errorSamplesBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public Builder addErrorSamples(int index, com.google.rpc.Status value) {
if (errorSamplesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureErrorSamplesIsMutable();
errorSamples_.add(index, value);
onChanged();
} else {
errorSamplesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) {
if (errorSamplesBuilder_ == null) {
ensureErrorSamplesIsMutable();
errorSamples_.add(builderForValue.build());
onChanged();
} else {
errorSamplesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) {
if (errorSamplesBuilder_ == null) {
ensureErrorSamplesIsMutable();
errorSamples_.add(index, builderForValue.build());
onChanged();
} else {
errorSamplesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public Builder addAllErrorSamples(java.lang.Iterable extends com.google.rpc.Status> values) {
if (errorSamplesBuilder_ == null) {
ensureErrorSamplesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_);
onChanged();
} else {
errorSamplesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public Builder clearErrorSamples() {
if (errorSamplesBuilder_ == null) {
errorSamples_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
errorSamplesBuilder_.clear();
}
return this;
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public Builder removeErrorSamples(int index) {
if (errorSamplesBuilder_ == null) {
ensureErrorSamplesIsMutable();
errorSamples_.remove(index);
onChanged();
} else {
errorSamplesBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) {
return getErrorSamplesFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) {
if (errorSamplesBuilder_ == null) {
return errorSamples_.get(index);
} else {
return errorSamplesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public java.util.List extends com.google.rpc.StatusOrBuilder> getErrorSamplesOrBuilderList() {
if (errorSamplesBuilder_ != null) {
return errorSamplesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(errorSamples_);
}
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public com.google.rpc.Status.Builder addErrorSamplesBuilder() {
return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance());
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) {
return getErrorSamplesFieldBuilder()
.addBuilder(index, com.google.rpc.Status.getDefaultInstance());
}
/**
*
*
*
* A sample of errors encountered while processing the request.
*
*
* repeated .google.rpc.Status error_samples = 1;
*/
public java.util.List getErrorSamplesBuilderList() {
return getErrorSamplesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
getErrorSamplesFieldBuilder() {
if (errorSamplesBuilder_ == null) {
errorSamplesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.rpc.Status,
com.google.rpc.Status.Builder,
com.google.rpc.StatusOrBuilder>(
errorSamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
errorSamples_ = null;
}
return errorSamplesBuilder_;
}
private com.google.cloud.retail.v2.ExportErrorsConfig errorsConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.retail.v2.ExportErrorsConfig,
com.google.cloud.retail.v2.ExportErrorsConfig.Builder,
com.google.cloud.retail.v2.ExportErrorsConfigOrBuilder>
errorsConfigBuilder_;
/**
*
*
*
* This field is never set.
*
*
* .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
*
* @return Whether the errorsConfig field is set.
*/
public boolean hasErrorsConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* This field is never set.
*
*
* .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
*
* @return The errorsConfig.
*/
public com.google.cloud.retail.v2.ExportErrorsConfig getErrorsConfig() {
if (errorsConfigBuilder_ == null) {
return errorsConfig_ == null
? com.google.cloud.retail.v2.ExportErrorsConfig.getDefaultInstance()
: errorsConfig_;
} else {
return errorsConfigBuilder_.getMessage();
}
}
/**
*
*
*
* This field is never set.
*
*
* .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
*/
public Builder setErrorsConfig(com.google.cloud.retail.v2.ExportErrorsConfig value) {
if (errorsConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errorsConfig_ = value;
} else {
errorsConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* This field is never set.
*
*
* .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
*/
public Builder setErrorsConfig(
com.google.cloud.retail.v2.ExportErrorsConfig.Builder builderForValue) {
if (errorsConfigBuilder_ == null) {
errorsConfig_ = builderForValue.build();
} else {
errorsConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* This field is never set.
*
*
* .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
*/
public Builder mergeErrorsConfig(com.google.cloud.retail.v2.ExportErrorsConfig value) {
if (errorsConfigBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& errorsConfig_ != null
&& errorsConfig_
!= com.google.cloud.retail.v2.ExportErrorsConfig.getDefaultInstance()) {
getErrorsConfigBuilder().mergeFrom(value);
} else {
errorsConfig_ = value;
}
} else {
errorsConfigBuilder_.mergeFrom(value);
}
if (errorsConfig_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* This field is never set.
*
*
* .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
*/
public Builder clearErrorsConfig() {
bitField0_ = (bitField0_ & ~0x00000002);
errorsConfig_ = null;
if (errorsConfigBuilder_ != null) {
errorsConfigBuilder_.dispose();
errorsConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* This field is never set.
*
*
* .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
*/
public com.google.cloud.retail.v2.ExportErrorsConfig.Builder getErrorsConfigBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getErrorsConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* This field is never set.
*
*
* .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
*/
public com.google.cloud.retail.v2.ExportErrorsConfigOrBuilder getErrorsConfigOrBuilder() {
if (errorsConfigBuilder_ != null) {
return errorsConfigBuilder_.getMessageOrBuilder();
} else {
return errorsConfig_ == null
? com.google.cloud.retail.v2.ExportErrorsConfig.getDefaultInstance()
: errorsConfig_;
}
}
/**
*
*
*
* This field is never set.
*
*
* .google.cloud.retail.v2.ExportErrorsConfig errors_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.retail.v2.ExportErrorsConfig,
com.google.cloud.retail.v2.ExportErrorsConfig.Builder,
com.google.cloud.retail.v2.ExportErrorsConfigOrBuilder>
getErrorsConfigFieldBuilder() {
if (errorsConfigBuilder_ == null) {
errorsConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.retail.v2.ExportErrorsConfig,
com.google.cloud.retail.v2.ExportErrorsConfig.Builder,
com.google.cloud.retail.v2.ExportErrorsConfigOrBuilder>(
getErrorsConfig(), getParentForChildren(), isClean());
errorsConfig_ = null;
}
return errorsConfigBuilder_;
}
private com.google.cloud.retail.v2.OutputResult outputResult_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.retail.v2.OutputResult,
com.google.cloud.retail.v2.OutputResult.Builder,
com.google.cloud.retail.v2.OutputResultOrBuilder>
outputResultBuilder_;
/**
*
*
*
* Output result indicating where the data were exported to.
*
*
* .google.cloud.retail.v2.OutputResult output_result = 3;
*
* @return Whether the outputResult field is set.
*/
public boolean hasOutputResult() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output result indicating where the data were exported to.
*
*
* .google.cloud.retail.v2.OutputResult output_result = 3;
*
* @return The outputResult.
*/
public com.google.cloud.retail.v2.OutputResult getOutputResult() {
if (outputResultBuilder_ == null) {
return outputResult_ == null
? com.google.cloud.retail.v2.OutputResult.getDefaultInstance()
: outputResult_;
} else {
return outputResultBuilder_.getMessage();
}
}
/**
*
*
*
* Output result indicating where the data were exported to.
*
*
* .google.cloud.retail.v2.OutputResult output_result = 3;
*/
public Builder setOutputResult(com.google.cloud.retail.v2.OutputResult value) {
if (outputResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outputResult_ = value;
} else {
outputResultBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output result indicating where the data were exported to.
*
*
* .google.cloud.retail.v2.OutputResult output_result = 3;
*/
public Builder setOutputResult(
com.google.cloud.retail.v2.OutputResult.Builder builderForValue) {
if (outputResultBuilder_ == null) {
outputResult_ = builderForValue.build();
} else {
outputResultBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output result indicating where the data were exported to.
*
*
* .google.cloud.retail.v2.OutputResult output_result = 3;
*/
public Builder mergeOutputResult(com.google.cloud.retail.v2.OutputResult value) {
if (outputResultBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& outputResult_ != null
&& outputResult_ != com.google.cloud.retail.v2.OutputResult.getDefaultInstance()) {
getOutputResultBuilder().mergeFrom(value);
} else {
outputResult_ = value;
}
} else {
outputResultBuilder_.mergeFrom(value);
}
if (outputResult_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Output result indicating where the data were exported to.
*
*
* .google.cloud.retail.v2.OutputResult output_result = 3;
*/
public Builder clearOutputResult() {
bitField0_ = (bitField0_ & ~0x00000004);
outputResult_ = null;
if (outputResultBuilder_ != null) {
outputResultBuilder_.dispose();
outputResultBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output result indicating where the data were exported to.
*
*
* .google.cloud.retail.v2.OutputResult output_result = 3;
*/
public com.google.cloud.retail.v2.OutputResult.Builder getOutputResultBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getOutputResultFieldBuilder().getBuilder();
}
/**
*
*
*
* Output result indicating where the data were exported to.
*
*
* .google.cloud.retail.v2.OutputResult output_result = 3;
*/
public com.google.cloud.retail.v2.OutputResultOrBuilder getOutputResultOrBuilder() {
if (outputResultBuilder_ != null) {
return outputResultBuilder_.getMessageOrBuilder();
} else {
return outputResult_ == null
? com.google.cloud.retail.v2.OutputResult.getDefaultInstance()
: outputResult_;
}
}
/**
*
*
*
* Output result indicating where the data were exported to.
*
*
* .google.cloud.retail.v2.OutputResult output_result = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.retail.v2.OutputResult,
com.google.cloud.retail.v2.OutputResult.Builder,
com.google.cloud.retail.v2.OutputResultOrBuilder>
getOutputResultFieldBuilder() {
if (outputResultBuilder_ == null) {
outputResultBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.retail.v2.OutputResult,
com.google.cloud.retail.v2.OutputResult.Builder,
com.google.cloud.retail.v2.OutputResultOrBuilder>(
getOutputResult(), getParentForChildren(), isClean());
outputResult_ = null;
}
return outputResultBuilder_;
}
@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.ExportAnalyticsMetricsResponse)
}
// @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ExportAnalyticsMetricsResponse)
private static final com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse();
}
public static com.google.cloud.retail.v2.ExportAnalyticsMetricsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExportAnalyticsMetricsResponse 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.ExportAnalyticsMetricsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy