Package build.buf.validate
Class Violations.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.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,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 typebuf.validate.Violations
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Violations.BuilderaddAllViolations(java.lang.Iterable<? extends Violation> values)`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.Violations.BuilderaddViolations(int index, Violation value)`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.Violations.BuilderaddViolations(int index, Violation.Builder builderForValue)`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.Violations.BuilderaddViolations(Violation value)`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.Violations.BuilderaddViolations(Violation.Builder builderForValue)`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.Violation.BuilderaddViolationsBuilder()`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.Violation.BuilderaddViolationsBuilder(int index)`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.Violationsbuild()ViolationsbuildPartial()Violations.Builderclear()Violations.BuilderclearViolations()`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.ViolationsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ViolationgetViolations(int index)`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.Violation.BuildergetViolationsBuilder(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.intgetViolationsCount()`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.ViolationOrBuildergetViolationsOrBuilder(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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Violations.BuildermergeFrom(Violations other)Violations.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Violations.BuildermergeFrom(com.google.protobuf.Message other)Violations.BuilderremoveViolations(int index)`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.Violations.BuildersetViolations(int index, Violation value)`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.Violations.BuildersetViolations(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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Violations.Builder>
-
clear
public Violations.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Violations.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Violations.Builder>
-
getDefaultInstanceForType
public Violations getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Violations build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Violations buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Violations.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Violations.Builder>
-
mergeFrom
public Violations.Builder mergeFrom(Violations other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getViolationsListin interfaceViolationsOrBuilder
-
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:
getViolationsCountin interfaceViolationsOrBuilder
-
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:
getViolationsin interfaceViolationsOrBuilder
-
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:
getViolationsOrBuilderin interfaceViolationsOrBuilder
-
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:
getViolationsOrBuilderListin interfaceViolationsOrBuilder
-
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;
-
-