程序包 com.google.rpc

# 接口 PreconditionFailure.ViolationOrBuilder

所有超级接口:
  `com.google.protobuf.MessageLiteOrBuilder`, `com.google.protobuf.MessageOrBuilder`

所有已知实现类:
  `PreconditionFailure.Violation`, `PreconditionFailure.Violation.Builder`

封闭类:
  PreconditionFailure

public static interface PreconditionFailure.ViolationOrBuilder extends com.google.protobuf.MessageOrBuilder

- ## 方法概要

  修饰符和类型
  方法
  说明
  `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.

  ### 从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder

  `isInitialized`

  ### 从接口继承的方法 com.google.protobuf.MessageOrBuilder

  `findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof`

- ## 方法详细资料

  - ### getType

    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;`
    返回:
      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 types. For
         example, "TOS" for "Terms of Service violation".

    `string type = 1;`
    返回:
      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;`
    返回:
      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;`
    返回:
      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;`
    返回:
      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;`
    返回:
      The bytes for description.