Package com.google.rpc
Interface PreconditionFailure.ViolationOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PreconditionFailure.Violation,PreconditionFailure.Violation.Builder
- Enclosing class:
- PreconditionFailure
public static interface PreconditionFailure.ViolationOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDescription()A description of how the precondition failed.com.google.protobuf.ByteStringgetDescriptionBytes()A description of how the precondition failed.java.lang.StringgetSubject()The subject, relative to the type, that failed.com.google.protobuf.ByteStringgetSubjectBytes()The subject, relative to the type, that failed.java.lang.StringgetType()The type of PreconditionFailure.com.google.protobuf.ByteStringgetTypeBytes()The type of PreconditionFailure.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getType
java.lang.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;- Returns:
- The type.
-
getTypeBytes
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;- Returns:
- The bytes for type.
-
getSubject
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;- Returns:
- The subject.
-
getSubjectBytes
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;- Returns:
- The bytes for subject.
-
getDescription
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;- Returns:
- The description.
-
getDescriptionBytes
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;- Returns:
- The bytes for description.
-
-