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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllViolations(Iterable<? extends PreconditionFailure.Violation> values)
public PreconditionFailure.Builder addAllViolations(Iterable<? extends PreconditionFailure.Violation> values)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.rpc.PreconditionFailure.Violation>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PreconditionFailure.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addViolations(PreconditionFailure.Violation value)
public PreconditionFailure.Builder addViolations(PreconditionFailure.Violation value)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameter
Returns
addViolations(PreconditionFailure.Violation.Builder builderForValue)
public PreconditionFailure.Builder addViolations(PreconditionFailure.Violation.Builder builderForValue)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameter
Returns
addViolations(int index, PreconditionFailure.Violation value)
public PreconditionFailure.Builder addViolations(int index, PreconditionFailure.Violation value)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameters
Returns
addViolations(int index, PreconditionFailure.Violation.Builder builderForValue)
public PreconditionFailure.Builder addViolations(int index, PreconditionFailure.Violation.Builder builderForValue)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameters
Returns
addViolationsBuilder()
public PreconditionFailure.Violation.Builder addViolationsBuilder()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Returns
addViolationsBuilder(int index)
public PreconditionFailure.Violation.Builder addViolationsBuilder(int index)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameter
Returns
build()
public PreconditionFailure build()
Returns
buildPartial()
public PreconditionFailure buildPartial()
Returns
clear()
public PreconditionFailure.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public PreconditionFailure.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PreconditionFailure.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearViolations()
public PreconditionFailure.Builder clearViolations()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Returns
clone()
public PreconditionFailure.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PreconditionFailure getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getViolations(int index)
public PreconditionFailure.Violation getViolations(int index)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameter
Returns
getViolationsBuilder(int index)
public PreconditionFailure.Violation.Builder getViolationsBuilder(int index)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameter
Returns
getViolationsBuilderList()
public List<PreconditionFailure.Violation.Builder> getViolationsBuilderList()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Returns
getViolationsCount()
public int getViolationsCount()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Returns
getViolationsList()
public List<PreconditionFailure.Violation> getViolationsList()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Returns
getViolationsOrBuilder(int index)
public PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder(int index)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameter
Returns
getViolationsOrBuilderList()
public List<? extends PreconditionFailure.ViolationOrBuilder> getViolationsOrBuilderList()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Returns
Type | Description |
List<? extends com.google.rpc.PreconditionFailure.ViolationOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public PreconditionFailure.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PreconditionFailure.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(PreconditionFailure other)
public PreconditionFailure.Builder mergeFrom(PreconditionFailure other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PreconditionFailure.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeViolations(int index)
public PreconditionFailure.Builder removeViolations(int index)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public PreconditionFailure.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PreconditionFailure.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PreconditionFailure.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setViolations(int index, PreconditionFailure.Violation value)
public PreconditionFailure.Builder setViolations(int index, PreconditionFailure.Violation value)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameters
Returns
setViolations(int index, PreconditionFailure.Violation.Builder builderForValue)
public PreconditionFailure.Builder setViolations(int index, PreconditionFailure.Violation.Builder builderForValue)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameters
Returns