public final class PreconditionFailure extends GeneratedMessageV3 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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PreconditionFailureImplements
PreconditionFailureOrBuilderStatic Fields
VIOLATIONS_FIELD_NUMBER
public static final int VIOLATIONS_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static PreconditionFailure getDefaultInstance()
Type | Description |
PreconditionFailure |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static PreconditionFailure.Builder newBuilder()
Type | Description |
PreconditionFailure.Builder |
newBuilder(PreconditionFailure prototype)
public static PreconditionFailure.Builder newBuilder(PreconditionFailure prototype)
Name | Description |
prototype | PreconditionFailure |
Type | Description |
PreconditionFailure.Builder |
parseDelimitedFrom(InputStream input)
public static PreconditionFailure parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PreconditionFailure |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PreconditionFailure parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PreconditionFailure |
Type | Description |
IOException |
parseFrom(byte[] data)
public static PreconditionFailure parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
PreconditionFailure |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PreconditionFailure parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PreconditionFailure |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static PreconditionFailure parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
PreconditionFailure |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PreconditionFailure parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PreconditionFailure |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static PreconditionFailure parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
PreconditionFailure |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PreconditionFailure parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PreconditionFailure |
Type | Description |
IOException |
parseFrom(InputStream input)
public static PreconditionFailure parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PreconditionFailure |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PreconditionFailure parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PreconditionFailure |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static PreconditionFailure parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
PreconditionFailure |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PreconditionFailure parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PreconditionFailure |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<PreconditionFailure> parser()
Type | Description |
Parser<PreconditionFailure> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public PreconditionFailure getDefaultInstanceForType()
Type | Description |
PreconditionFailure |
getParserForType()
public Parser<PreconditionFailure> getParserForType()
Type | Description |
Parser<PreconditionFailure> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
getViolations(int index)
public PreconditionFailure.Violation getViolations(int index)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Name | Description |
index | int |
Type | Description |
PreconditionFailure.Violation |
getViolationsCount()
public int getViolationsCount()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Type | Description |
int |
getViolationsList()
public List<PreconditionFailure.Violation> getViolationsList()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Type | Description |
List<Violation> |
getViolationsOrBuilder(int index)
public PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder(int index)
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Name | Description |
index | int |
Type | Description |
PreconditionFailure.ViolationOrBuilder |
getViolationsOrBuilderList()
public List<? extends PreconditionFailure.ViolationOrBuilder> getViolationsOrBuilderList()
Describes all precondition violations.
repeated .google.rpc.PreconditionFailure.Violation violations = 1;
Type | Description |
List<? extends com.google.rpc.PreconditionFailure.ViolationOrBuilder> |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public PreconditionFailure.Builder newBuilderForType()
Type | Description |
PreconditionFailure.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PreconditionFailure.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
PreconditionFailure.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public PreconditionFailure.Builder toBuilder()
Type | Description |
PreconditionFailure.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |