程序包 com.google.rpc

类 PreconditionFailure.Violation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Violation.Builder>
com.google.rpc.PreconditionFailure.Violation.Builder
所有已实现的接口:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PreconditionFailure.ViolationOrBuilder, Cloneable
封闭类:
PreconditionFailure.Violation

public static final class PreconditionFailure.Violation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Violation.Builder> implements PreconditionFailure.ViolationOrBuilder
 A message type used to describe a single precondition failure.
 
Protobuf type google.rpc.PreconditionFailure.Violation
  • 方法详细资料

    • 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.Violation.Builder>
    • clear

      指定者:
      clear 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clear 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Violation.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.Violation.Builder>
    • getDefaultInstanceForType

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

      指定者:
      build 在接口中 com.google.protobuf.Message.Builder
      指定者:
      build 在接口中 com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      指定者:
      clone 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clone 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Violation.Builder>
    • setField

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

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

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

      public PreconditionFailure.Violation.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.Violation.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

      public PreconditionFailure.Violation.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.Violation.Builder>
      抛出:
      IOException
    • getType

      public 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;
      指定者:
      getType 在接口中 PreconditionFailure.ViolationOrBuilder
      返回:
      The type.
    • getTypeBytes

      public 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;
      指定者:
      getTypeBytes 在接口中 PreconditionFailure.ViolationOrBuilder
      返回:
      The bytes for type.
    • setType

      public PreconditionFailure.Violation.Builder setType(String value)
       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;
      参数:
      value - The type to set.
      返回:
      This builder for chaining.
    • clearType

       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;
      返回:
      This builder for chaining.
    • setTypeBytes

      public PreconditionFailure.Violation.Builder setTypeBytes(com.google.protobuf.ByteString value)
       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;
      参数:
      value - The bytes for type to set.
      返回:
      This builder for chaining.
    • getSubject

      public 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;
      指定者:
      getSubject 在接口中 PreconditionFailure.ViolationOrBuilder
      返回:
      The subject.
    • getSubjectBytes

      public 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;
      指定者:
      getSubjectBytes 在接口中 PreconditionFailure.ViolationOrBuilder
      返回:
      The bytes for subject.
    • setSubject

      public PreconditionFailure.Violation.Builder setSubject(String value)
       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;
      参数:
      value - The subject to set.
      返回:
      This builder for chaining.
    • clearSubject

       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;
      返回:
      This builder for chaining.
    • setSubjectBytes

      public PreconditionFailure.Violation.Builder setSubjectBytes(com.google.protobuf.ByteString value)
       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;
      参数:
      value - The bytes for subject to set.
      返回:
      This builder for chaining.
    • getDescription

      public 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;
      指定者:
      getDescription 在接口中 PreconditionFailure.ViolationOrBuilder
      返回:
      The description.
    • getDescriptionBytes

      public 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;
      指定者:
      getDescriptionBytes 在接口中 PreconditionFailure.ViolationOrBuilder
      返回:
      The bytes for description.
    • setDescription

      public PreconditionFailure.Violation.Builder setDescription(String value)
       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;
      参数:
      value - The description to set.
      返回:
      This builder for chaining.
    • clearDescription

      public PreconditionFailure.Violation.Builder clearDescription()
       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;
      返回:
      This builder for chaining.
    • setDescriptionBytes

      public PreconditionFailure.Violation.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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;
      参数:
      value - The bytes for description to set.
      返回:
      This builder for chaining.
    • setUnknownFields

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

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