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

lightstep.com.google.rpc.PreconditionFailure Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/rpc/error_details.proto

package lightstep.lightstep.lightstep.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 lightstep.com.lightstep.lightstep.lightstep.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(lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PreconditionFailure() { violations_ = java.util.Collections.emptyList(); } @Override public final lightstep.com.lightstep.lightstep.lightstep.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PreconditionFailure( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.CodedInputStream input, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new NullPointerException(); } int mutable_bitField0_ = 0; lightstep.com.lightstep.lightstep.lightstep.google.protobuf.UnknownFieldSet.Builder unknownFields = lightstep.com.lightstep.lightstep.lightstep.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(Violation.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new lightstep.com.lightstep.lightstep.lightstep.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 lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.Descriptor getDescriptor() { return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_descriptor; } @Override protected FieldAccessorTable internalGetFieldAccessorTable() { return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_fieldAccessorTable .ensureFieldAccessorsInitialized( PreconditionFailure.class, Builder.class); } public interface ViolationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.rpc.PreconditionFailure.Violation) lightstep.com.lightstep.lightstep.lightstep.google.protobuf.MessageOrBuilder { /** *
     * The type of PreconditionFailure. We recommend using a service-specific
     * enum type to define the supported precondition violation types. For
     * example, "TOS" for "Terms of Service violation".
     * 
* * string type = 1; */ String getType(); /** *
     * The type of PreconditionFailure. We recommend using a service-specific
     * enum type to define the supported precondition violation types. For
     * example, "TOS" for "Terms of Service violation".
     * 
* * string type = 1; */ lightstep.com.lightstep.lightstep.lightstep.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.
     * 
* * string subject = 2; */ String getSubject(); /** *
     * 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; */ lightstep.com.lightstep.lightstep.lightstep.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".
     * 
* * string description = 3; */ String getDescription(); /** *
     * 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; */ lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString getDescriptionBytes(); } /** *
   * A message type used to describe a single precondition failure.
   * 
* * Protobuf type {@code google.rpc.PreconditionFailure.Violation} */ public static final class Violation extends lightstep.com.lightstep.lightstep.lightstep.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(lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Violation() { type_ = ""; subject_ = ""; description_ = ""; } @Override public final lightstep.com.lightstep.lightstep.lightstep.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Violation( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.CodedInputStream input, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new NullPointerException(); } int mutable_bitField0_ = 0; lightstep.com.lightstep.lightstep.lightstep.google.protobuf.UnknownFieldSet.Builder unknownFields = lightstep.com.lightstep.lightstep.lightstep.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { String s = input.readStringRequireUtf8(); type_ = s; break; } case 18: { String s = input.readStringRequireUtf8(); subject_ = s; break; } case 26: { String s = input.readStringRequireUtf8(); description_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.Descriptor getDescriptor() { return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_Violation_descriptor; } @Override protected FieldAccessorTable internalGetFieldAccessorTable() { return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable .ensureFieldAccessorsInitialized( Violation.class, Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private volatile Object type_; /** *
     * The type of PreconditionFailure. We recommend using a service-specific
     * enum type to define the supported precondition violation types. For
     * example, "TOS" for "Terms of Service violation".
     * 
* * string type = 1; */ public String getType() { Object ref = type_; if (ref instanceof String) { return (String) ref; } else { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString bs = (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); type_ = s; return s; } } /** *
     * The type of PreconditionFailure. We recommend using a service-specific
     * enum type to define the supported precondition violation types. For
     * example, "TOS" for "Terms of Service violation".
     * 
* * string type = 1; */ public lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString getTypeBytes() { Object ref = type_; if (ref instanceof String) { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString b = lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString.copyFromUtf8( (String) ref); type_ = b; return b; } else { return (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString) ref; } } public static final int SUBJECT_FIELD_NUMBER = 2; private volatile 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.
     * 
* * string subject = 2; */ public String getSubject() { Object ref = subject_; if (ref instanceof String) { return (String) ref; } else { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString bs = (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); subject_ = s; return s; } } /** *
     * 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; */ public lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString getSubjectBytes() { Object ref = subject_; if (ref instanceof String) { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString b = lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString.copyFromUtf8( (String) ref); subject_ = b; return b; } else { return (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile 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".
     * 
* * string description = 3; */ public String getDescription() { Object ref = description_; if (ref instanceof String) { return (String) ref; } else { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString bs = (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * 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; */ public lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString getDescriptionBytes() { Object ref = description_; if (ref instanceof String) { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString b = lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString.copyFromUtf8( (String) ref); description_ = b; return b; } else { return (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @Override public void writeTo(lightstep.com.lightstep.lightstep.lightstep.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTypeBytes().isEmpty()) { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (!getSubjectBytes().isEmpty()) { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3.writeString(output, 2, subject_); } if (!getDescriptionBytes().isEmpty()) { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } unknownFields.writeTo(output); } @Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTypeBytes().isEmpty()) { size += lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (!getSubjectBytes().isEmpty()) { size += lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3.computeStringSize(2, subject_); } if (!getDescriptionBytes().isEmpty()) { size += lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof Violation)) { return super.equals(obj); } Violation other = (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; } @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 Violation parseFrom( java.nio.ByteBuffer data) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Violation parseFrom( java.nio.ByteBuffer data, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Violation parseFrom( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString data) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Violation parseFrom( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString data, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Violation parseFrom(byte[] data) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Violation parseFrom( byte[] data, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Violation parseFrom(java.io.InputStream input) throws java.io.IOException { return lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static Violation parseFrom( java.io.InputStream input, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static Violation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static Violation parseDelimitedFrom( java.io.InputStream input, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Violation parseFrom( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.CodedInputStream input) throws java.io.IOException { return lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static Violation parseFrom( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.CodedInputStream input, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(Violation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @Override protected Builder newBuilderForType( 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 lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.rpc.PreconditionFailure.Violation) ViolationOrBuilder { public static final lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.Descriptor getDescriptor() { return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_Violation_descriptor; } @Override protected FieldAccessorTable internalGetFieldAccessorTable() { return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable .ensureFieldAccessorsInitialized( Violation.class, Builder.class); } // Construct using lightstep.lightstep.lightstep.com.google.rpc.PreconditionFailure.Violation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @Override public Builder clear() { super.clear(); type_ = ""; subject_ = ""; description_ = ""; return this; } @Override public lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_Violation_descriptor; } @Override public Violation getDefaultInstanceForType() { return Violation.getDefaultInstance(); } @Override public Violation build() { Violation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @Override public Violation buildPartial() { Violation result = new Violation(this); result.type_ = type_; result.subject_ = subject_; result.description_ = description_; onBuilt(); return result; } @Override public Builder clone() { return super.clone(); } @Override public Builder setField( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return super.setField(field, value); } @Override public Builder clearField( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @Override public Builder clearOneof( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @Override public Builder setRepeatedField( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return super.setRepeatedField(field, index, value); } @Override public Builder addRepeatedField( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return super.addRepeatedField(field, value); } @Override public Builder mergeFrom(lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Message other) { if (other instanceof Violation) { return mergeFrom((Violation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(Violation other) { if (other == 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; } @Override public final boolean isInitialized() { return true; } @Override public Builder mergeFrom( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.CodedInputStream input, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Violation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (Violation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private Object type_ = ""; /** *
       * The type of PreconditionFailure. We recommend using a service-specific
       * enum type to define the supported precondition violation types. For
       * example, "TOS" for "Terms of Service violation".
       * 
* * string type = 1; */ public String getType() { Object ref = type_; if (!(ref instanceof String)) { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString bs = (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); type_ = s; return s; } else { return (String) ref; } } /** *
       * The type of PreconditionFailure. We recommend using a service-specific
       * enum type to define the supported precondition violation types. For
       * example, "TOS" for "Terms of Service violation".
       * 
* * string type = 1; */ public lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString getTypeBytes() { Object ref = type_; if (ref instanceof String) { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString b = lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString.copyFromUtf8( (String) ref); type_ = b; return b; } else { return (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString) ref; } } /** *
       * The type of PreconditionFailure. We recommend using a service-specific
       * enum type to define the supported precondition violation types. For
       * example, "TOS" for "Terms of Service violation".
       * 
* * string type = 1; */ public Builder setType( 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 types. For
       * example, "TOS" for "Terms of Service violation".
       * 
* * string type = 1; */ 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 types. For
       * example, "TOS" for "Terms of Service violation".
       * 
* * string type = 1; */ public Builder setTypeBytes( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; onChanged(); return this; } private 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.
       * 
* * string subject = 2; */ public String getSubject() { Object ref = subject_; if (!(ref instanceof String)) { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString bs = (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); subject_ = s; return s; } else { return (String) 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; */ public lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString getSubjectBytes() { Object ref = subject_; if (ref instanceof String) { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString b = lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString.copyFromUtf8( (String) ref); subject_ = b; return b; } else { return (lightstep.com.lightstep.lightstep.lightstep.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; */ public Builder setSubject( 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; */ 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; */ public Builder setSubjectBytes( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subject_ = value; onChanged(); return this; } private 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".
       * 
* * string description = 3; */ public String getDescription() { Object ref = description_; if (!(ref instanceof String)) { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString bs = (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); description_ = s; return s; } else { return (String) 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; */ public lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString getDescriptionBytes() { Object ref = description_; if (ref instanceof String) { lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString b = lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString.copyFromUtf8( (String) ref); description_ = b; return b; } else { return (lightstep.com.lightstep.lightstep.lightstep.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; */ public Builder setDescription( 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; */ 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; */ public Builder setDescriptionBytes( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } @Override public final Builder setUnknownFields( final lightstep.com.lightstep.lightstep.lightstep.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @Override public final Builder mergeUnknownFields( final lightstep.com.lightstep.lightstep.lightstep.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 Violation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new Violation(); } public static Violation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Parser PARSER = new lightstep.com.lightstep.lightstep.lightstep.google.protobuf.AbstractParser() { @Override public Violation parsePartialFrom( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.CodedInputStream input, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return new Violation(input, extensionRegistry); } }; public static lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Parser parser() { return PARSER; } @Override public lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Parser getParserForType() { return PARSER; } @Override public Violation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int VIOLATIONS_FIELD_NUMBER = 1; private java.util.List violations_; /** *
   * Describes all precondition violations.
   * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public java.util.List getViolationsList() { return violations_; } /** *
   * Describes all precondition violations.
   * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public java.util.List getViolationsOrBuilderList() { return violations_; } /** *
   * Describes all precondition violations.
   * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public int getViolationsCount() { return violations_.size(); } /** *
   * Describes all precondition violations.
   * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Violation getViolations(int index) { return violations_.get(index); } /** *
   * Describes all precondition violations.
   * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public ViolationOrBuilder getViolationsOrBuilder( int index) { return violations_.get(index); } private byte memoizedIsInitialized = -1; @Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @Override public void writeTo(lightstep.com.lightstep.lightstep.lightstep.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); } @Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < violations_.size(); i++) { size += lightstep.com.lightstep.lightstep.lightstep.google.protobuf.CodedOutputStream .computeMessageSize(1, violations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof PreconditionFailure)) { return super.equals(obj); } PreconditionFailure other = (PreconditionFailure) obj; if (!getViolationsList() .equals(other.getViolationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @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 PreconditionFailure parseFrom( java.nio.ByteBuffer data) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static PreconditionFailure parseFrom( java.nio.ByteBuffer data, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static PreconditionFailure parseFrom( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString data) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static PreconditionFailure parseFrom( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ByteString data, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static PreconditionFailure parseFrom(byte[] data) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static PreconditionFailure parseFrom( byte[] data, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static PreconditionFailure parseFrom(java.io.InputStream input) throws java.io.IOException { return lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static PreconditionFailure parseFrom( java.io.InputStream input, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static PreconditionFailure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static PreconditionFailure parseDelimitedFrom( java.io.InputStream input, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static PreconditionFailure parseFrom( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.CodedInputStream input) throws java.io.IOException { return lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static PreconditionFailure parseFrom( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.CodedInputStream input, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(PreconditionFailure prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @Override protected Builder newBuilderForType( 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 lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.rpc.PreconditionFailure) lightstep.lightstep.lightstep.com.google.rpc.PreconditionFailureOrBuilder { public static final lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.Descriptor getDescriptor() { return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_descriptor; } @Override protected FieldAccessorTable internalGetFieldAccessorTable() { return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_fieldAccessorTable .ensureFieldAccessorsInitialized( PreconditionFailure.class, Builder.class); } // Construct using lightstep.lightstep.lightstep.com.google.rpc.PreconditionFailure.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getViolationsFieldBuilder(); } } @Override public Builder clear() { super.clear(); if (violationsBuilder_ == null) { violations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { violationsBuilder_.clear(); } return this; } @Override public lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ErrorDetailsProto.internal_static_google_rpc_PreconditionFailure_descriptor; } @Override public PreconditionFailure getDefaultInstanceForType() { return PreconditionFailure.getDefaultInstance(); } @Override public PreconditionFailure build() { PreconditionFailure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @Override public PreconditionFailure buildPartial() { PreconditionFailure result = new 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; } @Override public Builder clone() { return super.clone(); } @Override public Builder setField( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return super.setField(field, value); } @Override public Builder clearField( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @Override public Builder clearOneof( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @Override public Builder setRepeatedField( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return super.setRepeatedField(field, index, value); } @Override public Builder addRepeatedField( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return super.addRepeatedField(field, value); } @Override public Builder mergeFrom(lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Message other) { if (other instanceof PreconditionFailure) { return mergeFrom((PreconditionFailure)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(PreconditionFailure other) { if (other == 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_ = lightstep.com.lightstep.lightstep.lightstep.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getViolationsFieldBuilder() : null; } else { violationsBuilder_.addAllMessages(other.violations_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @Override public final boolean isInitialized() { return true; } @Override public Builder mergeFrom( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.CodedInputStream input, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { PreconditionFailure parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (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 lightstep.com.lightstep.lightstep.lightstep.google.protobuf.RepeatedFieldBuilderV3< Violation, Violation.Builder, ViolationOrBuilder> violationsBuilder_; /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public java.util.List getViolationsList() { if (violationsBuilder_ == null) { return java.util.Collections.unmodifiableList(violations_); } else { return violationsBuilder_.getMessageList(); } } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public int getViolationsCount() { if (violationsBuilder_ == null) { return violations_.size(); } else { return violationsBuilder_.getCount(); } } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Violation getViolations(int index) { if (violationsBuilder_ == null) { return violations_.get(index); } else { return violationsBuilder_.getMessage(index); } } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Builder setViolations( int index, Violation value) { if (violationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureViolationsIsMutable(); violations_.set(index, value); onChanged(); } else { violationsBuilder_.setMessage(index, value); } return this; } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Builder setViolations( int index, Violation.Builder builderForValue) { if (violationsBuilder_ == null) { ensureViolationsIsMutable(); violations_.set(index, builderForValue.build()); onChanged(); } else { violationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Builder addViolations(Violation value) { if (violationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureViolationsIsMutable(); violations_.add(value); onChanged(); } else { violationsBuilder_.addMessage(value); } return this; } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Builder addViolations( int index, Violation value) { if (violationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureViolationsIsMutable(); violations_.add(index, value); onChanged(); } else { violationsBuilder_.addMessage(index, value); } return this; } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Builder addViolations( Violation.Builder builderForValue) { if (violationsBuilder_ == null) { ensureViolationsIsMutable(); violations_.add(builderForValue.build()); onChanged(); } else { violationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Builder addViolations( int index, Violation.Builder builderForValue) { if (violationsBuilder_ == null) { ensureViolationsIsMutable(); violations_.add(index, builderForValue.build()); onChanged(); } else { violationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Builder addAllViolations( Iterable values) { if (violationsBuilder_ == null) { ensureViolationsIsMutable(); lightstep.com.lightstep.lightstep.lightstep.google.protobuf.AbstractMessageLite.Builder.addAll( values, violations_); onChanged(); } else { violationsBuilder_.addAllMessages(values); } return this; } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Builder clearViolations() { if (violationsBuilder_ == null) { violations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { violationsBuilder_.clear(); } return this; } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Builder removeViolations(int index) { if (violationsBuilder_ == null) { ensureViolationsIsMutable(); violations_.remove(index); onChanged(); } else { violationsBuilder_.remove(index); } return this; } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Violation.Builder getViolationsBuilder( int index) { return getViolationsFieldBuilder().getBuilder(index); } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public ViolationOrBuilder getViolationsOrBuilder( int index) { if (violationsBuilder_ == null) { return violations_.get(index); } else { return violationsBuilder_.getMessageOrBuilder(index); } } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public java.util.List getViolationsOrBuilderList() { if (violationsBuilder_ != null) { return violationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(violations_); } } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Violation.Builder addViolationsBuilder() { return getViolationsFieldBuilder().addBuilder( Violation.getDefaultInstance()); } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public Violation.Builder addViolationsBuilder( int index) { return getViolationsFieldBuilder().addBuilder( index, Violation.getDefaultInstance()); } /** *
     * Describes all precondition violations.
     * 
* * repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ public java.util.List getViolationsBuilderList() { return getViolationsFieldBuilder().getBuilderList(); } private lightstep.com.lightstep.lightstep.lightstep.google.protobuf.RepeatedFieldBuilderV3< Violation, Violation.Builder, ViolationOrBuilder> getViolationsFieldBuilder() { if (violationsBuilder_ == null) { violationsBuilder_ = new lightstep.com.lightstep.lightstep.lightstep.google.protobuf.RepeatedFieldBuilderV3< Violation, Violation.Builder, ViolationOrBuilder>( violations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); violations_ = null; } return violationsBuilder_; } @Override public final Builder setUnknownFields( final lightstep.com.lightstep.lightstep.lightstep.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @Override public final Builder mergeUnknownFields( final lightstep.com.lightstep.lightstep.lightstep.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.rpc.PreconditionFailure) } // @@protoc_insertion_point(class_scope:google.rpc.PreconditionFailure) private static final PreconditionFailure DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new PreconditionFailure(); } public static PreconditionFailure getDefaultInstance() { return DEFAULT_INSTANCE; } private static final lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Parser PARSER = new lightstep.com.lightstep.lightstep.lightstep.google.protobuf.AbstractParser() { @Override public PreconditionFailure parsePartialFrom( lightstep.com.lightstep.lightstep.lightstep.google.protobuf.CodedInputStream input, lightstep.com.lightstep.lightstep.lightstep.google.protobuf.ExtensionRegistryLite extensionRegistry) throws lightstep.com.lightstep.lightstep.lightstep.google.protobuf.InvalidProtocolBufferException { return new PreconditionFailure(input, extensionRegistry); } }; public static lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Parser parser() { return PARSER; } @Override public lightstep.com.lightstep.lightstep.lightstep.google.protobuf.Parser getParserForType() { return PARSER; } @Override public PreconditionFailure getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy