Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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/rpc/error_details.proto
package org.apache.rocketmq.shaded.com.google.rpc;
/**
*
*
*
* Describes what preconditions have failed.
* For example, if an RPC failed because it required the Terms of Service to be
* acknowledged, it could list the terms of service violation in the
* PreconditionFailure message.
*
*
* Protobuf type {@code google.rpc.PreconditionFailure}
*/
public final class PreconditionFailure extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.rpc.PreconditionFailure)
PreconditionFailureOrBuilder {
private static final long serialVersionUID = 0L;
// Use PreconditionFailure.newBuilder() to construct.
private PreconditionFailure(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PreconditionFailure() {
violations_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PreconditionFailure();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private PreconditionFailure(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
violations_ =
new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
violations_.add(
input.readMessage(
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation.parser(), extensionRegistry));
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
violations_ = java.util.Collections.unmodifiableList(violations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_PreconditionFailure_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_PreconditionFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.class,
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Builder.class);
}
public interface ViolationOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.rpc.PreconditionFailure.Violation)
org.apache.rocketmq.shaded.com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The type of PreconditionFailure. We recommend using a service-specific
* enum type to define the supported precondition violation subjects. For
* example, "TOS" for "Terms of Service violation".
*
*
* string type = 1;
*
* @return The type.
*/
java.lang.String getType();
/**
*
*
*
* The type of PreconditionFailure. We recommend using a service-specific
* enum type to define the supported precondition violation subjects. For
* example, "TOS" for "Terms of Service violation".
*
*
* string type = 1;
*
* @return The bytes for type.
*/
org.apache.rocketmq.shaded.com.google.protobuf.ByteString getTypeBytes();
/**
*
*
*
* The subject, relative to the type, that failed.
* For example, "google.com/cloud" relative to the "TOS" type would indicate
* which terms of service is being referenced.
*
* The subject, relative to the type, that failed.
* For example, "google.com/cloud" relative to the "TOS" type would indicate
* which terms of service is being referenced.
*
*
* string subject = 2;
*
* @return The bytes for subject.
*/
org.apache.rocketmq.shaded.com.google.protobuf.ByteString getSubjectBytes();
/**
*
*
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
* For example: "Terms of service not accepted".
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
* For example: "Terms of service not accepted".
*
* A message type used to describe a single precondition failure.
*
*
* Protobuf type {@code google.rpc.PreconditionFailure.Violation}
*/
public static final class Violation extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.rpc.PreconditionFailure.Violation)
ViolationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Violation.newBuilder() to construct.
private Violation(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Violation() {
type_ = "";
subject_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Violation();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Violation(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
case 18:
{
java.lang.String s = input.readStringRequireUtf8();
subject_ = s;
break;
}
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_PreconditionFailure_Violation_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation.class,
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object type_;
/**
*
*
*
* The type of PreconditionFailure. We recommend using a service-specific
* enum type to define the supported precondition violation subjects. For
* example, "TOS" for "Terms of Service violation".
*
* The type of PreconditionFailure. We recommend using a service-specific
* enum type to define the supported precondition violation subjects. For
* example, "TOS" for "Terms of Service violation".
*
*
* string type = 1;
*
* @return The bytes for type.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
type_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int SUBJECT_FIELD_NUMBER = 2;
private volatile java.lang.Object subject_;
/**
*
*
*
* The subject, relative to the type, that failed.
* For example, "google.com/cloud" relative to the "TOS" type would indicate
* which terms of service is being referenced.
*
* The subject, relative to the type, that failed.
* For example, "google.com/cloud" relative to the "TOS" type would indicate
* which terms of service is being referenced.
*
*
* string subject = 2;
*
* @return The bytes for subject.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getSubjectBytes() {
java.lang.Object ref = subject_;
if (ref instanceof java.lang.String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
subject_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
*
*
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
* For example: "Terms of service not accepted".
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
* For example: "Terms of service not accepted".
*
*
* string description = 3;
*
* @return The bytes for description.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.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(org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) {
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subject_);
}
if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subject_);
}
if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
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 org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation)) {
return super.equals(obj);
}
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation other =
(org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation) obj;
if (!getType().equals(other.getType())) return false;
if (!getSubject().equals(other.getSubject())) return false;
if (!getDescription().equals(other.getDescription())) 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();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + SUBJECT_FIELD_NUMBER;
hash = (53 * hash) + getSubject().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation parseFrom(java.nio.ByteBuffer data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation parseFrom(
java.nio.ByteBuffer data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString data,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation parseFrom(byte[] data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation parseFrom(
byte[] data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation parseFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation parseDelimitedFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.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(org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation 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(
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* A message type used to describe a single precondition failure.
*
*
* Protobuf type {@code google.rpc.PreconditionFailure.Violation}
*/
public static final class Builder
extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.rpc.PreconditionFailure.Violation)
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.ViolationOrBuilder {
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_PreconditionFailure_Violation_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation.class,
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation.Builder.class);
}
// Construct using org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = "";
subject_ = "";
description_ = "";
return this;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return org.apache.rocketmq.shaded.com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_PreconditionFailure_Violation_descriptor;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation getDefaultInstanceForType() {
return org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation.getDefaultInstance();
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation build() {
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation buildPartial() {
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation result =
new org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation(this);
result.type_ = type_;
result.subject_ = subject_;
result.description_ = description_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation) {
return mergeFrom((org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation other) {
if (other == org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation.getDefaultInstance()) return this;
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
if (!other.getSubject().isEmpty()) {
subject_ = other.subject_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object type_ = "";
/**
*
*
*
* The type of PreconditionFailure. We recommend using a service-specific
* enum type to define the supported precondition violation subjects. For
* example, "TOS" for "Terms of Service violation".
*
* The type of PreconditionFailure. We recommend using a service-specific
* enum type to define the supported precondition violation subjects. For
* example, "TOS" for "Terms of Service violation".
*
*
* string type = 1;
*
* @return The bytes for type.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
type_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The type of PreconditionFailure. We recommend using a service-specific
* enum type to define the supported precondition violation subjects. For
* example, "TOS" for "Terms of Service violation".
*
*
* string type = 1;
*
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
*
*
*
* The type of PreconditionFailure. We recommend using a service-specific
* enum type to define the supported precondition violation subjects. For
* example, "TOS" for "Terms of Service violation".
*
*
* string type = 1;
*
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
*
*
* The type of PreconditionFailure. We recommend using a service-specific
* enum type to define the supported precondition violation subjects. For
* example, "TOS" for "Terms of Service violation".
*
*
* string type = 1;
*
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private java.lang.Object subject_ = "";
/**
*
*
*
* The subject, relative to the type, that failed.
* For example, "google.com/cloud" relative to the "TOS" type would indicate
* which terms of service is being referenced.
*
* The subject, relative to the type, that failed.
* For example, "google.com/cloud" relative to the "TOS" type would indicate
* which terms of service is being referenced.
*
*
* string subject = 2;
*
* @return The bytes for subject.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getSubjectBytes() {
java.lang.Object ref = subject_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
subject_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The subject, relative to the type, that failed.
* For example, "google.com/cloud" relative to the "TOS" type would indicate
* which terms of service is being referenced.
*
*
* string subject = 2;
*
* @param value The subject to set.
* @return This builder for chaining.
*/
public Builder setSubject(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
subject_ = value;
onChanged();
return this;
}
/**
*
*
*
* The subject, relative to the type, that failed.
* For example, "google.com/cloud" relative to the "TOS" type would indicate
* which terms of service is being referenced.
*
*
* string subject = 2;
*
* @return This builder for chaining.
*/
public Builder clearSubject() {
subject_ = getDefaultInstance().getSubject();
onChanged();
return this;
}
/**
*
*
*
* The subject, relative to the type, that failed.
* For example, "google.com/cloud" relative to the "TOS" type would indicate
* which terms of service is being referenced.
*
*
* string subject = 2;
*
* @param value The bytes for subject to set.
* @return This builder for chaining.
*/
public Builder setSubjectBytes(org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subject_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
* For example: "Terms of service not accepted".
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
* For example: "Terms of service not accepted".
*
*
* string description = 3;
*
* @return The bytes for description.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
* For example: "Terms of service not accepted".
*
*
* string description = 3;
*
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
*
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
* For example: "Terms of service not accepted".
*
*
* string description = 3;
*
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
*
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
* For example: "Terms of service not accepted".
*
*
* string description = 3;
*
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.rpc.PreconditionFailure.Violation)
}
// @@protoc_insertion_point(class_scope:google.rpc.PreconditionFailure.Violation)
private static final org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation();
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.apache.rocketmq.shaded.com.google.protobuf.Parser PARSER =
new org.apache.rocketmq.shaded.com.google.protobuf.AbstractParser() {
@java.lang.Override
public Violation parsePartialFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new Violation(input, extensionRegistry);
}
};
public static org.apache.rocketmq.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int VIOLATIONS_FIELD_NUMBER = 1;
private java.util.List violations_;
/**
*
*
*
*
* repeated .google.rpc.PreconditionFailure.Violation violations = 1;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder(int index) {
return violations_.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(org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < violations_.size(); i++) {
output.writeMessage(1, violations_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < violations_.size(); i++) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(1, violations_.get(i));
}
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 org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure)) {
return super.equals(obj);
}
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure other = (org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure) obj;
if (!getViolationsList().equals(other.getViolationsList())) 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 (getViolationsCount() > 0) {
hash = (37 * hash) + VIOLATIONS_FIELD_NUMBER;
hash = (53 * hash) + getViolationsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure parseFrom(java.nio.ByteBuffer data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure parseFrom(
java.nio.ByteBuffer data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure parseFrom(org.apache.rocketmq.shaded.com.google.protobuf.ByteString data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString data,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure parseFrom(byte[] data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure parseFrom(
byte[] data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure parseFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure parseDelimitedFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.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(org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure 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(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Describes what preconditions have failed.
* For example, if an RPC failed because it required the Terms of Service to be
* acknowledged, it could list the terms of service violation in the
* PreconditionFailure message.
*
*
* Protobuf type {@code google.rpc.PreconditionFailure}
*/
public static final class Builder extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.rpc.PreconditionFailure)
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailureOrBuilder {
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_PreconditionFailure_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_PreconditionFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.class,
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Builder.class);
}
// Construct using org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getViolationsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (violationsBuilder_ == null) {
violations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
violationsBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return org.apache.rocketmq.shaded.com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_PreconditionFailure_descriptor;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure getDefaultInstanceForType() {
return org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.getDefaultInstance();
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure build() {
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure buildPartial() {
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure result = new org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure(this);
int from_bitField0_ = bitField0_;
if (violationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
violations_ = java.util.Collections.unmodifiableList(violations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.violations_ = violations_;
} else {
result.violations_ = violationsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure) {
return mergeFrom((org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure other) {
if (other == org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.getDefaultInstance()) return this;
if (violationsBuilder_ == null) {
if (!other.violations_.isEmpty()) {
if (violations_.isEmpty()) {
violations_ = other.violations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureViolationsIsMutable();
violations_.addAll(other.violations_);
}
onChanged();
}
} else {
if (!other.violations_.isEmpty()) {
if (violationsBuilder_.isEmpty()) {
violationsBuilder_.dispose();
violationsBuilder_ = null;
violations_ = other.violations_;
bitField0_ = (bitField0_ & ~0x00000001);
violationsBuilder_ =
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getViolationsFieldBuilder()
: null;
} else {
violationsBuilder_.addAllMessages(other.violations_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List violations_ =
java.util.Collections.emptyList();
private void ensureViolationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
violations_ =
new java.util.ArrayList(violations_);
bitField0_ |= 0x00000001;
}
}
private org.apache.rocketmq.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation,
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.Violation.Builder,
org.apache.rocketmq.shaded.com.google.rpc.PreconditionFailure.ViolationOrBuilder>
violationsBuilder_;
/**
*
*
*