Class Violations.Builder

  • All Implemented Interfaces:
    ViolationsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    Violations

    public static final class Violations.Builder
    extends com.google.protobuf.GeneratedMessage.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 Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Violations.Builder addAllViolations​(java.lang.Iterable<? extends Violation> values)
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      Violations.Builder addViolations​(int index, Violation value)
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      Violations.Builder addViolations​(int index, Violation.Builder builderForValue)
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      Violations.Builder addViolations​(Violation value)
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      Violations.Builder addViolations​(Violation.Builder builderForValue)
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      Violation.Builder addViolationsBuilder()
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      Violation.Builder addViolationsBuilder​(int index)
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      Violations build()  
      Violations buildPartial()  
      Violations.Builder clear()  
      Violations.Builder clearViolations()
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      Violations getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      Violation getViolations​(int index)
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      Violation.Builder getViolationsBuilder​(int index)
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      java.util.List<Violation.Builder> getViolationsBuilderList()
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      int getViolationsCount()
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      java.util.List<Violation> getViolationsList()
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      ViolationOrBuilder getViolationsOrBuilder​(int index)
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      java.util.List<? extends ViolationOrBuilder> getViolationsOrBuilderList()
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      Violations.Builder mergeFrom​(Violations other)  
      Violations.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      Violations.Builder mergeFrom​(com.google.protobuf.Message other)  
      Violations.Builder removeViolations​(int index)
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      Violations.Builder setViolations​(int index, Violation value)
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      Violations.Builder setViolations​(int index, Violation.Builder builderForValue)
      `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
      • Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

        addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
      • 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>
      • isInitialized

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

        public Violations.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.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:
        java.io.IOException
      • getViolationsList

        public java.util.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;
        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;
        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;
        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;
      • 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;
      • 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;
      • 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;
      • 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;
      • 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;
      • addAllViolations

        public Violations.Builder addAllViolations​(java.lang.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;
      • 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;
      • 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;
      • 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;
      • 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;
        Specified by:
        getViolationsOrBuilder in interface ViolationsOrBuilder
      • getViolationsOrBuilderList

        public java.util.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;
        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;
      • 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;
      • getViolationsBuilderList

        public java.util.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;