程序包 com.google.rpc

类 PreconditionFailure.Violation

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

public static final class PreconditionFailure.Violation extends com.google.protobuf.GeneratedMessageV3 implements PreconditionFailure.ViolationOrBuilder
 A message type used to describe a single precondition failure.
 
Protobuf type google.rpc.PreconditionFailure.Violation
另请参阅:
序列化表格
  • 字段详细资料

    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      另请参阅:
      常量字段值
    • SUBJECT_FIELD_NUMBER

      public static final int SUBJECT_FIELD_NUMBER
      另请参阅:
      常量字段值
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      另请参阅:
      常量字段值
  • 方法详细资料

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      覆盖:
      newInstance 在类中 com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      指定者:
      getUnknownFields 在接口中 com.google.protobuf.MessageOrBuilder
      覆盖:
      getUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      指定者:
      internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      指定者:
      writeTo 在接口中 com.google.protobuf.MessageLite
      覆盖:
      writeTo 在类中 com.google.protobuf.GeneratedMessageV3
      抛出:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      指定者:
      getSerializedSize 在接口中 com.google.protobuf.MessageLite
      覆盖:
      getSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      指定者:
      equals 在接口中 com.google.protobuf.Message
      覆盖:
      equals 在类中 com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      指定者:
      hashCode 在接口中 com.google.protobuf.Message
      覆盖:
      hashCode 在类中 com.google.protobuf.AbstractMessage
    • parseFrom

      public static PreconditionFailure.Violation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PreconditionFailure.Violation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PreconditionFailure.Violation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PreconditionFailure.Violation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PreconditionFailure.Violation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PreconditionFailure.Violation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PreconditionFailure.Violation parseFrom(InputStream input) throws IOException
      抛出:
      IOException
    • parseFrom

      public static PreconditionFailure.Violation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • parseDelimitedFrom

      public static PreconditionFailure.Violation parseDelimitedFrom(InputStream input) throws IOException
      抛出:
      IOException
    • parseDelimitedFrom

      public static PreconditionFailure.Violation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • parseFrom

      public static PreconditionFailure.Violation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      抛出:
      IOException
    • parseFrom

      public static PreconditionFailure.Violation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • newBuilderForType

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

      public static PreconditionFailure.Violation.Builder newBuilder()
    • newBuilder

    • toBuilder

      指定者:
      toBuilder 在接口中 com.google.protobuf.Message
      指定者:
      toBuilder 在接口中 com.google.protobuf.MessageLite
    • newBuilderForType

      protected PreconditionFailure.Violation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      指定者:
      newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static PreconditionFailure.Violation getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PreconditionFailure.Violation> parser()
    • getParserForType

      public com.google.protobuf.Parser<PreconditionFailure.Violation> getParserForType()
      指定者:
      getParserForType 在接口中 com.google.protobuf.Message
      指定者:
      getParserForType 在接口中 com.google.protobuf.MessageLite
      覆盖:
      getParserForType 在类中 com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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