Send feedback
Class PreconditionFailure.Builder (2.15.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.15.0 keyboard_arrow_down
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 ()
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 >
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PreconditionFailure . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
addViolations(PreconditionFailure.Violation value)
public PreconditionFailure . Builder addViolations ( PreconditionFailure . Violation value )
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
addViolations(PreconditionFailure.Violation.Builder builderForValue)
public PreconditionFailure . Builder addViolations ( PreconditionFailure . Violation . Builder builderForValue )
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
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;
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;
addViolationsBuilder()
public PreconditionFailure . Violation . Builder addViolationsBuilder ()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
addViolationsBuilder(int index)
public PreconditionFailure . Violation . Builder addViolationsBuilder ( int index )
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameter Name Description index
int
build()
public PreconditionFailure build ()
buildPartial()
public PreconditionFailure buildPartial ()
clear()
public PreconditionFailure . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public PreconditionFailure . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PreconditionFailure . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearViolations()
public PreconditionFailure . Builder clearViolations ()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
clone()
public PreconditionFailure . Builder clone ()
Overrides
getDefaultInstanceForType()
public PreconditionFailure getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getViolations(int index)
public PreconditionFailure . Violation getViolations ( int index )
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameter Name Description index
int
getViolationsBuilder(int index)
public PreconditionFailure . Violation . Builder getViolationsBuilder ( int index )
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameter Name Description index
int
getViolationsBuilderList()
public List<PreconditionFailure . Violation . Builder > getViolationsBuilderList ()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
getViolationsCount()
public int getViolationsCount ()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Returns Type Description int
getViolationsList()
public List<PreconditionFailure . Violation > getViolationsList ()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
getViolationsOrBuilder(int index)
public PreconditionFailure . ViolationOrBuilder getViolationsOrBuilder ( int index )
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameter Name Description index
int
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
public PreconditionFailure . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public PreconditionFailure . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeFrom(PreconditionFailure other)
public PreconditionFailure . Builder mergeFrom ( PreconditionFailure other )
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PreconditionFailure . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
removeViolations(int index)
public PreconditionFailure . Builder removeViolations ( int index )
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Parameter Name Description index
int
setField(Descriptors.FieldDescriptor field, Object value)
public PreconditionFailure . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PreconditionFailure . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PreconditionFailure . Builder setUnknownFields ( UnknownFieldSet unknownFields )
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;
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;
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]