public final class Violations extends com.google.protobuf.GeneratedMessageV3 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| Modifier and Type | Class and Description |
|---|---|
static class |
Violations.Builder
`Violations` is a collection of `Violation` messages.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
VIOLATIONS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
static Violations |
getDefaultInstance() |
Violations |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Violations> |
getParserForType() |
Violation |
getViolations(int index)
`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.
|
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.
|
List<? extends ViolationOrBuilder> |
getViolationsOrBuilderList()
`violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
static Violations.Builder |
newBuilder() |
static Violations.Builder |
newBuilder(Violations prototype) |
Violations.Builder |
newBuilderForType() |
protected Violations.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Violations |
parseDelimitedFrom(InputStream input) |
static Violations |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Violations |
parseFrom(byte[] data) |
static Violations |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Violations |
parseFrom(ByteBuffer data) |
static Violations |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Violations |
parseFrom(com.google.protobuf.ByteString data) |
static Violations |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Violations |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Violations |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Violations |
parseFrom(InputStream input) |
static Violations |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Violations> |
parser() |
Violations.Builder |
toBuilder() |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getSerializedSize, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isInitialized, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag, writeToequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int VIOLATIONS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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"];getViolationsList in interface ViolationsOrBuilderpublic 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"];getViolationsOrBuilderList in interface ViolationsOrBuilderpublic 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"];getViolationsCount in interface ViolationsOrBuilderpublic 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"];getViolations in interface ViolationsOrBuilderpublic 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"];getViolationsOrBuilder in interface ViolationsOrBuilderpublic static Violations parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Violations parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Violations parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Violations parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Violations parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Violations parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Violations parseFrom(InputStream input) throws IOException
IOExceptionpublic static Violations parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Violations parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Violations parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Violations parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Violations parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Violations.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Violations.Builder newBuilder()
public static Violations.Builder newBuilder(Violations prototype)
public Violations.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Violations.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Violations getDefaultInstance()
public static com.google.protobuf.Parser<Violations> parser()
public com.google.protobuf.Parser<Violations> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Violations getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023. All rights reserved.