public static interface PreconditionFailure.ViolationOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
A description of how the precondition failed.
|
ByteString |
getDescriptionBytes()
A description of how the precondition failed.
|
java.lang.String |
getSubject()
The subject, relative to the type, that failed.
|
ByteString |
getSubjectBytes()
The subject, relative to the type, that failed.
|
java.lang.String |
getType()
The type of PreconditionFailure.
|
ByteString |
getTypeBytes()
The type of PreconditionFailure.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
java.lang.String getType()
The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation types. For example, "TOS" for "Terms of Service violation".
string type = 1;
ByteString getTypeBytes()
The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation types. For example, "TOS" for "Terms of Service violation".
string type = 1;
java.lang.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;
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;
java.lang.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;
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;