Package build.buf.validate
Class Violations.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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 Summary
Modifier and TypeMethodDescriptionaddAllViolations(Iterable<? extends Violation> values) `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addViolations(int index, Violation value) `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.addViolations(int index, Violation.Builder builderForValue) `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.addViolations(Violation value) `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.addViolations(Violation.Builder builderForValue) `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.addViolationsBuilder(int index) `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetViolations(int index) `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.getViolationsBuilder(int index) `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.int`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.getViolationsOrBuilder(int index) `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.List<? extends ViolationOrBuilder>`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(Violations other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Violations.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeViolations(int index) `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final Violations.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setViolations(int index, Violation value) `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.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.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Violations.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
-
setField
public Violations.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
-
setRepeatedField
public Violations.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
-
addRepeatedField
public Violations.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Violations.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Violations.Builder>- Throws:
IOException
-
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:
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 [json_name = "violations"];- Specified by:
getViolationsCountin interfaceViolationsOrBuilder
-
getViolations
`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:
getViolationsin interfaceViolationsOrBuilder
-
setViolations
`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
`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
`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
`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
`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
`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
`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
`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
`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
`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
`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:
getViolationsOrBuilderin interfaceViolationsOrBuilder
-
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:
getViolationsOrBuilderListin interfaceViolationsOrBuilder
-
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
`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
`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
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
-
mergeUnknownFields
public final Violations.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Violations.Builder>
-