Class Violations.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Violations.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
build.buf.validate.Violations.Builder
All Implemented Interfaces:
ViolationsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Violations

public static final class Violations.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder> implements ViolationsOrBuilder
 `Violations` is a collection of `Violation` messages. This message type is returned by
 protovalidate when a proto message fails to meet the requirements set by the `Constraint` validation rules.
 Each individual violation is represented by a `Violation` message.
 
Protobuf type buf.validate.Violations
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
    • clear

      public Violations.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
    • getDefaultInstanceForType

      public Violations getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Violations build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Violations buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Violations.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
    • setField

      public Violations.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
    • clearField

      public Violations.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
    • clearOneof

      public Violations.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
    • setRepeatedField

      public Violations.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
    • addRepeatedField

      public Violations.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
    • mergeFrom

      public Violations.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Violations.Builder>
    • mergeFrom

      public Violations.Builder mergeFrom(Violations other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
    • mergeFrom

      public Violations.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Violations.Builder>
      Throws:
      IOException
    • getViolationsList

      public List<Violation> getViolationsList()
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
      Specified by:
      getViolationsList in interface ViolationsOrBuilder
    • getViolationsCount

      public int getViolationsCount()
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
      Specified by:
      getViolationsCount in interface ViolationsOrBuilder
    • getViolations

      public Violation getViolations(int index)
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
      Specified by:
      getViolations in interface ViolationsOrBuilder
    • setViolations

      public Violations.Builder setViolations(int index, Violation value)
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
    • setViolations

      public Violations.Builder setViolations(int index, Violation.Builder builderForValue)
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
    • addViolations

      public Violations.Builder addViolations(Violation value)
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
    • addViolations

      public Violations.Builder addViolations(int index, Violation value)
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
    • addViolations

      public Violations.Builder addViolations(Violation.Builder builderForValue)
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
    • addViolations

      public Violations.Builder addViolations(int index, Violation.Builder builderForValue)
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
    • addAllViolations

      public Violations.Builder addAllViolations(Iterable<? extends Violation> values)
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
    • clearViolations

      public Violations.Builder clearViolations()
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
    • removeViolations

      public Violations.Builder removeViolations(int index)
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
    • getViolationsBuilder

      public Violation.Builder getViolationsBuilder(int index)
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
    • getViolationsOrBuilder

      public ViolationOrBuilder getViolationsOrBuilder(int index)
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
      Specified by:
      getViolationsOrBuilder in interface ViolationsOrBuilder
    • getViolationsOrBuilderList

      public List<? extends ViolationOrBuilder> getViolationsOrBuilderList()
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
      Specified by:
      getViolationsOrBuilderList in interface ViolationsOrBuilder
    • addViolationsBuilder

      public Violation.Builder addViolationsBuilder()
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
    • addViolationsBuilder

      public Violation.Builder addViolationsBuilder(int index)
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
    • getViolationsBuilderList

      public List<Violation.Builder> getViolationsBuilderList()
       `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
       
      repeated .buf.validate.Violation violations = 1 [json_name = "violations"];
    • setUnknownFields

      public final Violations.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
    • mergeUnknownFields

      public final Violations.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>