Interface PreconditionFailure.ViolationOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
All Known Implementing Classes:
PreconditionFailure.Violation, PreconditionFailure.Violation.Builder
Enclosing class:
PreconditionFailure

public static interface PreconditionFailure.ViolationOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
  • 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

    getDefaultInstanceForType, isInitialized
  • 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 [json_name = "type"];
      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 [json_name = "type"];
      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 [json_name = "subject"];
      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 [json_name = "subject"];
      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 [json_name = "description"];
      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 [json_name = "description"];
      Returns:
      The bytes for description.