Interface PreconditionFailure.ViolationOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getDescription()
      A description of how the precondition failed.
      com.google.protobuf.ByteString getDescriptionBytes()
      A description of how the precondition failed.
      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.
      • 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 Detail

      • 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.