public static final class PreconditionFailure.Builder extends GeneratedMessageV3.Builder<PreconditionFailure.Builder> implements PreconditionFailureOrBuilder
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
google.rpc.PreconditionFailure
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<PreconditionFailure.Builder>
public PreconditionFailure.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<PreconditionFailure.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<PreconditionFailure.Builder>
public PreconditionFailure getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public PreconditionFailure build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public PreconditionFailure buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public PreconditionFailure.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<PreconditionFailure.Builder>
public PreconditionFailure.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<PreconditionFailure.Builder>
public PreconditionFailure.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<PreconditionFailure.Builder>
public PreconditionFailure.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<PreconditionFailure.Builder>
public PreconditionFailure.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<PreconditionFailure.Builder>
public PreconditionFailure.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<PreconditionFailure.Builder>
public PreconditionFailure.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<PreconditionFailure.Builder>
public PreconditionFailure.Builder mergeFrom(PreconditionFailure other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<PreconditionFailure.Builder>
public PreconditionFailure.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<PreconditionFailure.Builder>
java.io.IOException
public java.util.List<PreconditionFailure.Violation> getViolationsList()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
getViolationsList
in interface PreconditionFailureOrBuilder
public int getViolationsCount()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
getViolationsCount
in interface PreconditionFailureOrBuilder
public PreconditionFailure.Violation getViolations(int index)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
getViolations
in interface PreconditionFailureOrBuilder
public PreconditionFailure.Builder setViolations(int index, PreconditionFailure.Violation value)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
public PreconditionFailure.Builder setViolations(int index, PreconditionFailure.Violation.Builder builderForValue)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
public PreconditionFailure.Builder addViolations(PreconditionFailure.Violation value)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
public PreconditionFailure.Builder addViolations(int index, PreconditionFailure.Violation value)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
public PreconditionFailure.Builder addViolations(PreconditionFailure.Violation.Builder builderForValue)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
public PreconditionFailure.Builder addViolations(int index, PreconditionFailure.Violation.Builder builderForValue)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
public PreconditionFailure.Builder addAllViolations(java.lang.Iterable<? extends PreconditionFailure.Violation> values)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
public PreconditionFailure.Builder clearViolations()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
public PreconditionFailure.Builder removeViolations(int index)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
public PreconditionFailure.Violation.Builder getViolationsBuilder(int index)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
public PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder(int index)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
getViolationsOrBuilder
in interface PreconditionFailureOrBuilder
public java.util.List<? extends PreconditionFailure.ViolationOrBuilder> getViolationsOrBuilderList()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
getViolationsOrBuilderList
in interface PreconditionFailureOrBuilder
public PreconditionFailure.Violation.Builder addViolationsBuilder()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
public PreconditionFailure.Violation.Builder addViolationsBuilder(int index)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
public java.util.List<PreconditionFailure.Violation.Builder> getViolationsBuilderList()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
public final PreconditionFailure.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<PreconditionFailure.Builder>
public final PreconditionFailure.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<PreconditionFailure.Builder>