程序包 com.google.rpc

# 类 PreconditionFailure.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder>
com.google.rpc.PreconditionFailure.Builder

所有已实现的接口:
  `com.google.protobuf.Message.Builder`, `com.google.protobuf.MessageLite.Builder`, `com.google.protobuf.MessageLiteOrBuilder`, `com.google.protobuf.MessageOrBuilder`, `PreconditionFailureOrBuilder`, `Cloneable`

封闭类:
  PreconditionFailure

public static final class PreconditionFailure.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder> implements PreconditionFailureOrBuilder

     Describes what preconditions have failed.
     For example, if an RPC failed because it required the Terms of Service to be
     acknowledged, it could list the terms of service violation in the
     PreconditionFailure message.

Protobuf type `google.rpc.PreconditionFailure`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `PreconditionFailure.Builder`
  `addAllViolations​(Iterable<? extends PreconditionFailure.Violation> values)`
  Describes all precondition violations.
  `PreconditionFailure.Builder`
  `addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
  `PreconditionFailure.Builder`
  `addViolations​(int index, PreconditionFailure.Violation value)`
  Describes all precondition violations.
  `PreconditionFailure.Builder`
  `addViolations​(int index, PreconditionFailure.Violation.Builder builderForValue)`
  Describes all precondition violations.
  `PreconditionFailure.Builder`
  `addViolations​(PreconditionFailure.Violation value)`
  Describes all precondition violations.
  `PreconditionFailure.Builder`
  `addViolations​(PreconditionFailure.Violation.Builder builderForValue)`
  Describes all precondition violations.
  `PreconditionFailure.Violation.Builder`
  `addViolationsBuilder()`
  Describes all precondition violations.
  `PreconditionFailure.Violation.Builder`
  `addViolationsBuilder​(int index)`
  Describes all precondition violations.
  `PreconditionFailure`
  `build()`
  `PreconditionFailure`
  `buildPartial()`
  `PreconditionFailure.Builder`
  `clear()`
  `PreconditionFailure.Builder`
  `clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)`
  `PreconditionFailure.Builder`
  `clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)`
  `PreconditionFailure.Builder`
  `clearViolations()`
  Describes all precondition violations.
  `PreconditionFailure.Builder`
  `clone()`
  `PreconditionFailure`
  `getDefaultInstanceForType()`
  `static com.google.protobuf.Descriptors.Descriptor`
  `getDescriptor()`
  `com.google.protobuf.Descriptors.Descriptor`
  `getDescriptorForType()`
  `PreconditionFailure.Violation`
  `getViolations​(int index)`
  Describes all precondition violations.
  `PreconditionFailure.Violation.Builder`
  `getViolationsBuilder​(int index)`
  Describes all precondition violations.
  `List<PreconditionFailure.Violation.Builder>`
  `getViolationsBuilderList()`
  Describes all precondition violations.
  `int`
  `getViolationsCount()`
  Describes all precondition violations.
  `List<PreconditionFailure.Violation>`
  `getViolationsList()`
  Describes all precondition violations.
  `PreconditionFailure.ViolationOrBuilder`
  `getViolationsOrBuilder​(int index)`
  Describes all precondition violations.
  `List<? extends PreconditionFailure.ViolationOrBuilder>`
  `getViolationsOrBuilderList()`
  Describes all precondition violations.
  `protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable`
  `internalGetFieldAccessorTable()`
  `boolean`
  `isInitialized()`
  `PreconditionFailure.Builder`
  `mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)`
  `PreconditionFailure.Builder`
  `mergeFrom​(com.google.protobuf.Message other)`
  `PreconditionFailure.Builder`
  `mergeFrom​(PreconditionFailure other)`
  `PreconditionFailure.Builder`
  `mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)`
  `PreconditionFailure.Builder`
  `removeViolations​(int index)`
  Describes all precondition violations.
  `PreconditionFailure.Builder`
  `setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
  `PreconditionFailure.Builder`
  `setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)`
  `PreconditionFailure.Builder`
  `setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)`
  `PreconditionFailure.Builder`
  `setViolations​(int index, PreconditionFailure.Violation value)`
  Describes all precondition violations.
  `PreconditionFailure.Builder`
  `setViolations​(int index, PreconditionFailure.Violation.Builder builderForValue)`
  Describes all precondition violations.

  ### 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder

  `getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3`

  ### 从类继承的方法 com.google.protobuf.AbstractMessage.Builder

  `findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString`

  ### 从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder

  `addAll, addAll, mergeFrom, newUninitializedMessageException`

  ### 从类继承的方法 java.lang.Object

  `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

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

  `mergeFrom`

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

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

- ## 方法详细资料

  - ### getDescriptor

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

  - ### internalGetFieldAccessorTable

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
    指定者:
      `internalGetFieldAccessorTable` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder>`

  - ### clear

    public PreconditionFailure.Builder clear()
    指定者:
      `clear` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `clear` 在接口中 `com.google.protobuf.MessageLite.Builder`
    覆盖:
      `clear` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder>`

  - ### getDescriptorForType

    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
    指定者:
      `getDescriptorForType` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `getDescriptorForType` 在接口中 `com.google.protobuf.MessageOrBuilder`
    覆盖:
      `getDescriptorForType` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder>`

  - ### getDefaultInstanceForType

    public PreconditionFailure getDefaultInstanceForType()
    指定者:
      `getDefaultInstanceForType` 在接口中 `com.google.protobuf.MessageLiteOrBuilder`
    指定者:
      `getDefaultInstanceForType` 在接口中 `com.google.protobuf.MessageOrBuilder`

  - ### build

    public PreconditionFailure build()
    指定者:
      `build` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `build` 在接口中 `com.google.protobuf.MessageLite.Builder`

  - ### buildPartial

    public PreconditionFailure buildPartial()
    指定者:
      `buildPartial` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `buildPartial` 在接口中 `com.google.protobuf.MessageLite.Builder`

  - ### clone

    public PreconditionFailure.Builder clone()
    指定者:
      `clone` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `clone` 在接口中 `com.google.protobuf.MessageLite.Builder`
    覆盖:
      `clone` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder>`

  - ### setField

    public PreconditionFailure.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
    指定者:
      `setField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `setField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder>`

  - ### clearField

    public PreconditionFailure.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
    指定者:
      `clearField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `clearField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder>`

  - ### clearOneof

    public PreconditionFailure.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
    指定者:
      `clearOneof` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `clearOneof` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder>`

  - ### setRepeatedField

    public PreconditionFailure.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
    指定者:
      `setRepeatedField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `setRepeatedField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder>`

  - ### addRepeatedField

    public PreconditionFailure.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
    指定者:
      `addRepeatedField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `addRepeatedField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder>`

  - ### mergeFrom

    public PreconditionFailure.Builder mergeFrom​(com.google.protobuf.Message other)
    指定者:
      `mergeFrom` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `mergeFrom` 在类中 `com.google.protobuf.AbstractMessage.Builder<PreconditionFailure.Builder>`

  - ### mergeFrom

    public PreconditionFailure.Builder mergeFrom​(PreconditionFailure other)

  - ### isInitialized

    public final boolean isInitialized()
    指定者:
      `isInitialized` 在接口中 `com.google.protobuf.MessageLiteOrBuilder`
    覆盖:
      `isInitialized` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder>`

  - ### mergeFrom

    public PreconditionFailure.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
    指定者:
      `mergeFrom` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `mergeFrom` 在接口中 `com.google.protobuf.MessageLite.Builder`
    覆盖:
      `mergeFrom` 在类中 `com.google.protobuf.AbstractMessage.Builder<PreconditionFailure.Builder>`
    抛出:
      `IOException`

  - ### getViolationsList

    public List<PreconditionFailure.Violation> getViolationsList()

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`
    指定者:
      `getViolationsList` 在接口中 `PreconditionFailureOrBuilder`

  - ### getViolationsCount

    public int getViolationsCount()

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`
    指定者:
      `getViolationsCount` 在接口中 `PreconditionFailureOrBuilder`

  - ### getViolations

    public PreconditionFailure.Violation getViolations​(int index)

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`
    指定者:
      `getViolations` 在接口中 `PreconditionFailureOrBuilder`

  - ### setViolations

    public PreconditionFailure.Builder setViolations​(int index, PreconditionFailure.Violation value)

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`

  - ### setViolations

    public PreconditionFailure.Builder setViolations​(int index, PreconditionFailure.Violation.Builder builderForValue)

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`

  - ### addViolations

    public PreconditionFailure.Builder addViolations​(PreconditionFailure.Violation value)

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`

  - ### addViolations

    public PreconditionFailure.Builder addViolations​(int index, PreconditionFailure.Violation value)

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`

  - ### addViolations

    public PreconditionFailure.Builder addViolations​(PreconditionFailure.Violation.Builder builderForValue)

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`

  - ### addViolations

    public PreconditionFailure.Builder addViolations​(int index, PreconditionFailure.Violation.Builder builderForValue)

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`

  - ### addAllViolations

    public PreconditionFailure.Builder addAllViolations​(Iterable<? extends PreconditionFailure.Violation> values)

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`

  - ### clearViolations

    public PreconditionFailure.Builder clearViolations()

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`

  - ### removeViolations

    public PreconditionFailure.Builder removeViolations​(int index)

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`

  - ### getViolationsBuilder

    public PreconditionFailure.Violation.Builder getViolationsBuilder​(int index)

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`

  - ### getViolationsOrBuilder

    public PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder​(int index)

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`
    指定者:
      `getViolationsOrBuilder` 在接口中 `PreconditionFailureOrBuilder`

  - ### getViolationsOrBuilderList

    public List<? extends PreconditionFailure.ViolationOrBuilder> getViolationsOrBuilderList()

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`
    指定者:
      `getViolationsOrBuilderList` 在接口中 `PreconditionFailureOrBuilder`

  - ### addViolationsBuilder

    public PreconditionFailure.Violation.Builder addViolationsBuilder()

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`

  - ### addViolationsBuilder

    public PreconditionFailure.Violation.Builder addViolationsBuilder​(int index)

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`

  - ### getViolationsBuilderList

    public List<PreconditionFailure.Violation.Builder> getViolationsBuilderList()

         Describes all precondition violations.

    `repeated .google.rpc.PreconditionFailure.Violation violations = 1;`

  - ### setUnknownFields

    public final PreconditionFailure.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
    指定者:
      `setUnknownFields` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `setUnknownFields` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder>`

  - ### mergeUnknownFields

    public final PreconditionFailure.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
    指定者:
      `mergeUnknownFields` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `mergeUnknownFields` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Builder>`