public final class AnyRules extends com.google.protobuf.GeneratedMessageV3 implements AnyRulesOrBuilder
AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known type.Protobuf type
buf.validate.AnyRules| Modifier and Type | Class and Description |
|---|---|
static class |
AnyRules.Builder
AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known type.
|
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 |
IN_FIELD_NUMBER |
static int |
NOT_IN_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
static AnyRules |
getDefaultInstance() |
AnyRules |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getIn(int index)
`in` requires the field's `type_url` to be equal to one of the
specified values.
|
com.google.protobuf.ByteString |
getInBytes(int index)
`in` requires the field's `type_url` to be equal to one of the
specified values.
|
int |
getInCount()
`in` requires the field's `type_url` to be equal to one of the
specified values.
|
com.google.protobuf.ProtocolStringList |
getInList()
`in` requires the field's `type_url` to be equal to one of the
specified values.
|
String |
getNotIn(int index)
requires the field's type_url to be not equal to any of the specified values.
|
com.google.protobuf.ByteString |
getNotInBytes(int index)
requires the field's type_url to be not equal to any of the specified values.
|
int |
getNotInCount()
requires the field's type_url to be not equal to any of the specified values.
|
com.google.protobuf.ProtocolStringList |
getNotInList()
requires the field's type_url to be not equal to any of the specified values.
|
com.google.protobuf.Parser<AnyRules> |
getParserForType() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
static AnyRules.Builder |
newBuilder() |
static AnyRules.Builder |
newBuilder(AnyRules prototype) |
AnyRules.Builder |
newBuilderForType() |
protected AnyRules.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AnyRules |
parseDelimitedFrom(InputStream input) |
static AnyRules |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnyRules |
parseFrom(byte[] data) |
static AnyRules |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnyRules |
parseFrom(ByteBuffer data) |
static AnyRules |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnyRules |
parseFrom(com.google.protobuf.ByteString data) |
static AnyRules |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnyRules |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AnyRules |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnyRules |
parseFrom(InputStream input) |
static AnyRules |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AnyRules> |
parser() |
AnyRules.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 IN_FIELD_NUMBER
public static final int NOT_IN_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 com.google.protobuf.ProtocolStringList getInList()
`in` requires the field's `type_url` to be equal to one of the
specified values. If it doesn't match any of the specified values, an error
message is generated.
```proto
message MyAny {
// The `value` field must have a `type_url` equal to one of the specified values.
google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
}
```
repeated string in = 2 [json_name = "in"];getInList in interface AnyRulesOrBuilderpublic int getInCount()
`in` requires the field's `type_url` to be equal to one of the
specified values. If it doesn't match any of the specified values, an error
message is generated.
```proto
message MyAny {
// The `value` field must have a `type_url` equal to one of the specified values.
google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
}
```
repeated string in = 2 [json_name = "in"];getInCount in interface AnyRulesOrBuilderpublic String getIn(int index)
`in` requires the field's `type_url` to be equal to one of the
specified values. If it doesn't match any of the specified values, an error
message is generated.
```proto
message MyAny {
// The `value` field must have a `type_url` equal to one of the specified values.
google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
}
```
repeated string in = 2 [json_name = "in"];getIn in interface AnyRulesOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getInBytes(int index)
`in` requires the field's `type_url` to be equal to one of the
specified values. If it doesn't match any of the specified values, an error
message is generated.
```proto
message MyAny {
// The `value` field must have a `type_url` equal to one of the specified values.
google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
}
```
repeated string in = 2 [json_name = "in"];getInBytes in interface AnyRulesOrBuilderindex - The index of the value to return.public com.google.protobuf.ProtocolStringList getNotInList()
requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
```proto
message MyAny {
// The field `value` must not have a `type_url` equal to any of the specified values.
google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
}
```
repeated string not_in = 3 [json_name = "notIn"];getNotInList in interface AnyRulesOrBuilderpublic int getNotInCount()
requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
```proto
message MyAny {
// The field `value` must not have a `type_url` equal to any of the specified values.
google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
}
```
repeated string not_in = 3 [json_name = "notIn"];getNotInCount in interface AnyRulesOrBuilderpublic String getNotIn(int index)
requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
```proto
message MyAny {
// The field `value` must not have a `type_url` equal to any of the specified values.
google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
}
```
repeated string not_in = 3 [json_name = "notIn"];getNotIn in interface AnyRulesOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getNotInBytes(int index)
requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
```proto
message MyAny {
// The field `value` must not have a `type_url` equal to any of the specified values.
google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
}
```
repeated string not_in = 3 [json_name = "notIn"];getNotInBytes in interface AnyRulesOrBuilderindex - The index of the value to return.public static AnyRules parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnyRules parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnyRules parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnyRules parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnyRules parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnyRules parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnyRules parseFrom(InputStream input) throws IOException
IOExceptionpublic static AnyRules parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AnyRules parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AnyRules parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AnyRules parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AnyRules parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AnyRules.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AnyRules.Builder newBuilder()
public static AnyRules.Builder newBuilder(AnyRules prototype)
public AnyRules.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AnyRules.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AnyRules getDefaultInstance()
public static com.google.protobuf.Parser<AnyRules> parser()
public com.google.protobuf.Parser<AnyRules> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AnyRules getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023. All rights reserved.