Class BadRequest.Builder

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

public static final class BadRequest.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<BadRequest,BadRequest.Builder> implements BadRequestOrBuilder
 Describes violations in a client request. This error type focuses on the
 syntactic aspects of the request.
 
Protobuf type google.rpc.BadRequest
  • Method Details

    • getFieldViolationsList

      public List<BadRequest.FieldViolation> getFieldViolationsList()
       Describes all violations in a client request.
       
      repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"];
      Specified by:
      getFieldViolationsList in interface BadRequestOrBuilder
    • getFieldViolationsCount

      public int getFieldViolationsCount()
       Describes all violations in a client request.
       
      repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"];
      Specified by:
      getFieldViolationsCount in interface BadRequestOrBuilder
    • getFieldViolations

      public BadRequest.FieldViolation getFieldViolations(int index)
       Describes all violations in a client request.
       
      repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"];
      Specified by:
      getFieldViolations in interface BadRequestOrBuilder
    • setFieldViolations

      public BadRequest.Builder setFieldViolations(int index, BadRequest.FieldViolation value)
       Describes all violations in a client request.
       
      repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"];
    • setFieldViolations

      public BadRequest.Builder setFieldViolations(int index, BadRequest.FieldViolation.Builder builderForValue)
       Describes all violations in a client request.
       
      repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"];
    • addFieldViolations

      public BadRequest.Builder addFieldViolations(BadRequest.FieldViolation value)
       Describes all violations in a client request.
       
      repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"];
    • addFieldViolations

      public BadRequest.Builder addFieldViolations(int index, BadRequest.FieldViolation value)
       Describes all violations in a client request.
       
      repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"];
    • addFieldViolations

      public BadRequest.Builder addFieldViolations(BadRequest.FieldViolation.Builder builderForValue)
       Describes all violations in a client request.
       
      repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"];
    • addFieldViolations

      public BadRequest.Builder addFieldViolations(int index, BadRequest.FieldViolation.Builder builderForValue)
       Describes all violations in a client request.
       
      repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"];
    • addAllFieldViolations

      public BadRequest.Builder addAllFieldViolations(Iterable<? extends BadRequest.FieldViolation> values)
       Describes all violations in a client request.
       
      repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"];
    • clearFieldViolations

      public BadRequest.Builder clearFieldViolations()
       Describes all violations in a client request.
       
      repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"];
    • removeFieldViolations

      public BadRequest.Builder removeFieldViolations(int index)
       Describes all violations in a client request.
       
      repeated .google.rpc.BadRequest.FieldViolation field_violations = 1 [json_name = "fieldViolations"];