Package com.google.rpc
Class PreconditionFailure.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<PreconditionFailure,PreconditionFailure.Builder>
com.google.rpc.PreconditionFailure.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,PreconditionFailureOrBuilder
,Cloneable
- Enclosing class:
- PreconditionFailure
public static final class PreconditionFailure.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<PreconditionFailure,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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllViolations
(Iterable<? extends PreconditionFailure.Violation> values) Describes all precondition violations.addViolations
(int index, PreconditionFailure.Violation value) Describes all precondition violations.addViolations
(int index, PreconditionFailure.Violation.Builder builderForValue) Describes all precondition violations.Describes all precondition violations.addViolations
(PreconditionFailure.Violation.Builder builderForValue) Describes all precondition violations.Describes all precondition violations.getViolations
(int index) Describes all precondition violations.int
Describes all precondition violations.Describes all precondition violations.removeViolations
(int index) Describes all precondition violations.setViolations
(int index, PreconditionFailure.Violation value) Describes all precondition violations.setViolations
(int index, PreconditionFailure.Violation.Builder builderForValue) Describes all precondition violations.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getViolationsList
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];
- Specified by:
getViolationsList
in interfacePreconditionFailureOrBuilder
-
getViolationsCount
public int getViolationsCount()Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];
- Specified by:
getViolationsCount
in interfacePreconditionFailureOrBuilder
-
getViolations
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];
- Specified by:
getViolations
in interfacePreconditionFailureOrBuilder
-
setViolations
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];
-
setViolations
public PreconditionFailure.Builder setViolations(int index, PreconditionFailure.Violation.Builder builderForValue) Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];
-
addViolations
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];
-
addViolations
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];
-
addViolations
public PreconditionFailure.Builder addViolations(PreconditionFailure.Violation.Builder builderForValue) Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];
-
addViolations
public PreconditionFailure.Builder addViolations(int index, PreconditionFailure.Violation.Builder builderForValue) Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];
-
addAllViolations
public PreconditionFailure.Builder addAllViolations(Iterable<? extends PreconditionFailure.Violation> values) Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];
-
clearViolations
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];
-
removeViolations
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1 [json_name = "violations"];
-