public static final class PreconditionFailure.Violation extends com.google.protobuf.GeneratedMessageV3 implements PreconditionFailure.ViolationOrBuilder
A message type used to describe a single precondition failure.Protobuf type
google.rpc.PreconditionFailure.Violation| 限定符和类型 | 类和说明 |
|---|---|
static class |
PreconditionFailure.Violation.Builder
A message type used to describe a single precondition failure.
|
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
SUBJECT_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
static PreconditionFailure.Violation |
getDefaultInstance() |
PreconditionFailure.Violation |
getDefaultInstanceForType() |
String |
getDescription()
A description of how the precondition failed.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
A description of how the precondition failed.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<PreconditionFailure.Violation> |
getParserForType() |
int |
getSerializedSize() |
String |
getSubject()
The subject, relative to the type, that failed.
|
com.google.protobuf.ByteString |
getSubjectBytes()
The subject, relative to the type, that failed.
|
String |
getType()
The type of PreconditionFailure.
|
com.google.protobuf.ByteString |
getTypeBytes()
The type of PreconditionFailure.
|
int |
hashCode() |
boolean |
isInitialized() |
static PreconditionFailure.Violation.Builder |
newBuilder() |
static PreconditionFailure.Violation.Builder |
newBuilder(PreconditionFailure.Violation prototype) |
PreconditionFailure.Violation.Builder |
newBuilderForType() |
static PreconditionFailure.Violation |
parseDelimitedFrom(InputStream input) |
static PreconditionFailure.Violation |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PreconditionFailure.Violation |
parseFrom(byte[] data) |
static PreconditionFailure.Violation |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PreconditionFailure.Violation |
parseFrom(ByteBuffer data) |
static PreconditionFailure.Violation |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PreconditionFailure.Violation |
parseFrom(com.google.protobuf.ByteString data) |
static PreconditionFailure.Violation |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PreconditionFailure.Violation |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PreconditionFailure.Violation |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PreconditionFailure.Violation |
parseFrom(InputStream input) |
static PreconditionFailure.Violation |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PreconditionFailure.Violation> |
parser() |
PreconditionFailure.Violation.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneoffindInitializationErrors, getInitializationErrorString, toStringtoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int TYPE_FIELD_NUMBER
public static final int SUBJECT_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public String getType()
The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation".
string type = 1;getType 在接口中 PreconditionFailure.ViolationOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation".
string type = 1;getTypeBytes 在接口中 PreconditionFailure.ViolationOrBuilderpublic String getSubject()
The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced.
string subject = 2;getSubject 在接口中 PreconditionFailure.ViolationOrBuilderpublic com.google.protobuf.ByteString getSubjectBytes()
The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced.
string subject = 2;getSubjectBytes 在接口中 PreconditionFailure.ViolationOrBuilderpublic String getDescription()
A description of how the precondition failed. Developers can use this description to understand how to fix the failure. For example: "Terms of service not accepted".
string description = 3;getDescription 在接口中 PreconditionFailure.ViolationOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A description of how the precondition failed. Developers can use this description to understand how to fix the failure. For example: "Terms of service not accepted".
string description = 3;getDescriptionBytes 在接口中 PreconditionFailure.ViolationOrBuilderpublic final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static PreconditionFailure.Violation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PreconditionFailure.Violation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PreconditionFailure.Violation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PreconditionFailure.Violation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PreconditionFailure.Violation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PreconditionFailure.Violation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PreconditionFailure.Violation parseFrom(InputStream input) throws IOException
IOExceptionpublic static PreconditionFailure.Violation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PreconditionFailure.Violation parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PreconditionFailure.Violation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PreconditionFailure.Violation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static PreconditionFailure.Violation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PreconditionFailure.Violation.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static PreconditionFailure.Violation.Builder newBuilder()
public static PreconditionFailure.Violation.Builder newBuilder(PreconditionFailure.Violation prototype)
public PreconditionFailure.Violation.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLitepublic static PreconditionFailure.Violation getDefaultInstance()
public static com.google.protobuf.Parser<PreconditionFailure.Violation> parser()
public com.google.protobuf.Parser<PreconditionFailure.Violation> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public PreconditionFailure.Violation getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.