Class BadRequest.FieldViolation

java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<BadRequest.FieldViolation,BadRequest.FieldViolation.Builder>
com.google.rpc.BadRequest.FieldViolation
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, BadRequest.FieldViolationOrBuilder
Enclosing class:
BadRequest

public static final class BadRequest.FieldViolation extends com.google.protobuf.GeneratedMessageLite<BadRequest.FieldViolation,BadRequest.FieldViolation.Builder> implements BadRequest.FieldViolationOrBuilder
 A message type used to describe a single bad request field.
 
Protobuf type google.rpc.BadRequest.FieldViolation
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A message type used to describe a single bad request field.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    A description of why the request element is bad.
    com.google.protobuf.ByteString
    A description of why the request element is bad.
    A path that leads to a field in the request body.
    com.google.protobuf.ByteString
    A path that leads to a field in the request body.
    Provides a localized error message for field-level errors that is safe to return to the API consumer.
    The reason of the field-level error.
    com.google.protobuf.ByteString
    The reason of the field-level error.
    boolean
    Provides a localized error message for field-level errors that is safe to return to the API consumer.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<BadRequest.FieldViolation>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • FIELD_FIELD_NUMBER

      public static final int FIELD_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • REASON_FIELD_NUMBER

      public static final int REASON_FIELD_NUMBER
      See Also:
    • LOCALIZED_MESSAGE_FIELD_NUMBER

      public static final int LOCALIZED_MESSAGE_FIELD_NUMBER
      See Also:
  • Method Details

    • getField

      public String getField()
       A path that leads to a field in the request body. The value will be a
       sequence of dot-separated identifiers that identify a protocol buffer
       field.
      
       Consider the following:
      
       message CreateContactRequest {
       message EmailAddress {
       enum Type {
       TYPE_UNSPECIFIED = 0;
       HOME = 1;
       WORK = 2;
       }
      
       optional string email = 1;
       repeated EmailType type = 2;
       }
      
       string full_name = 1;
       repeated EmailAddress email_addresses = 2;
       }
      
       In this example, in proto `field` could take one of the following values:
      
       * `full_name` for a violation in the `full_name` value
       * `email_addresses[1].email` for a violation in the `email` field of the
       first `email_addresses` message
       * `email_addresses[3].type[2]` for a violation in the second `type`
       value in the third `email_addresses` message.
      
       In JSON, the same values are represented as:
      
       * `fullName` for a violation in the `fullName` value
       * `emailAddresses[1].email` for a violation in the `email` field of the
       first `emailAddresses` message
       * `emailAddresses[3].type[2]` for a violation in the second `type`
       value in the third `emailAddresses` message.
       
      string field = 1 [json_name = "field"];
      Specified by:
      getField in interface BadRequest.FieldViolationOrBuilder
      Returns:
      The field.
    • getFieldBytes

      public com.google.protobuf.ByteString getFieldBytes()
       A path that leads to a field in the request body. The value will be a
       sequence of dot-separated identifiers that identify a protocol buffer
       field.
      
       Consider the following:
      
       message CreateContactRequest {
       message EmailAddress {
       enum Type {
       TYPE_UNSPECIFIED = 0;
       HOME = 1;
       WORK = 2;
       }
      
       optional string email = 1;
       repeated EmailType type = 2;
       }
      
       string full_name = 1;
       repeated EmailAddress email_addresses = 2;
       }
      
       In this example, in proto `field` could take one of the following values:
      
       * `full_name` for a violation in the `full_name` value
       * `email_addresses[1].email` for a violation in the `email` field of the
       first `email_addresses` message
       * `email_addresses[3].type[2]` for a violation in the second `type`
       value in the third `email_addresses` message.
      
       In JSON, the same values are represented as:
      
       * `fullName` for a violation in the `fullName` value
       * `emailAddresses[1].email` for a violation in the `email` field of the
       first `emailAddresses` message
       * `emailAddresses[3].type[2]` for a violation in the second `type`
       value in the third `emailAddresses` message.
       
      string field = 1 [json_name = "field"];
      Specified by:
      getFieldBytes in interface BadRequest.FieldViolationOrBuilder
      Returns:
      The bytes for field.
    • getDescription

      public String getDescription()
       A description of why the request element is bad.
       
      string description = 2 [json_name = "description"];
      Specified by:
      getDescription in interface BadRequest.FieldViolationOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A description of why the request element is bad.
       
      string description = 2 [json_name = "description"];
      Specified by:
      getDescriptionBytes in interface BadRequest.FieldViolationOrBuilder
      Returns:
      The bytes for description.
    • getReason

      public String getReason()
       The reason of the field-level error. This is a constant value that
       identifies the proximate cause of the field-level error. It should
       uniquely identify the type of the FieldViolation within the scope of the
       google.rpc.ErrorInfo.domain. This should be at most 63
       characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`,
       which represents UPPER_SNAKE_CASE.
       
      string reason = 3 [json_name = "reason"];
      Specified by:
      getReason in interface BadRequest.FieldViolationOrBuilder
      Returns:
      The reason.
    • getReasonBytes

      public com.google.protobuf.ByteString getReasonBytes()
       The reason of the field-level error. This is a constant value that
       identifies the proximate cause of the field-level error. It should
       uniquely identify the type of the FieldViolation within the scope of the
       google.rpc.ErrorInfo.domain. This should be at most 63
       characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`,
       which represents UPPER_SNAKE_CASE.
       
      string reason = 3 [json_name = "reason"];
      Specified by:
      getReasonBytes in interface BadRequest.FieldViolationOrBuilder
      Returns:
      The bytes for reason.
    • hasLocalizedMessage

      public boolean hasLocalizedMessage()
       Provides a localized error message for field-level errors that is safe to
       return to the API consumer.
       
      .google.rpc.LocalizedMessage localized_message = 4 [json_name = "localizedMessage"];
      Specified by:
      hasLocalizedMessage in interface BadRequest.FieldViolationOrBuilder
      Returns:
      Whether the localizedMessage field is set.
    • getLocalizedMessage

      public LocalizedMessage getLocalizedMessage()
       Provides a localized error message for field-level errors that is safe to
       return to the API consumer.
       
      .google.rpc.LocalizedMessage localized_message = 4 [json_name = "localizedMessage"];
      Specified by:
      getLocalizedMessage in interface BadRequest.FieldViolationOrBuilder
      Returns:
      The localizedMessage.
    • parseFrom

      public static BadRequest.FieldViolation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BadRequest.FieldViolation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BadRequest.FieldViolation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BadRequest.FieldViolation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BadRequest.FieldViolation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BadRequest.FieldViolation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BadRequest.FieldViolation parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BadRequest.FieldViolation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BadRequest.FieldViolation parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BadRequest.FieldViolation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BadRequest.FieldViolation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BadRequest.FieldViolation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static BadRequest.FieldViolation.Builder newBuilder()
    • newBuilder

      public static BadRequest.FieldViolation.Builder newBuilder(BadRequest.FieldViolation prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<BadRequest.FieldViolation,BadRequest.FieldViolation.Builder>
    • getDefaultInstance

      public static BadRequest.FieldViolation getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<BadRequest.FieldViolation> parser()