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

    Modifier and Type
    Method
    Description
    A description of how the precondition failed.
    com.google.protobuf.ByteString
    A description of how the precondition failed.
    The subject, relative to the type, that failed.
    com.google.protobuf.ByteString
    The subject, relative to the type, that failed.
    The type of PreconditionFailure.
    com.google.protobuf.ByteString
    The type of PreconditionFailure.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getType

      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

      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

      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.