public static final class AnyRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AnyRules.Builder> implements AnyRulesOrBuilder
AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known type.Protobuf type
buf.validate.AnyRules| Modifier and Type | Method and Description |
|---|---|
AnyRules.Builder |
addAllIn(Iterable<String> values)
`in` requires the field's `type_url` to be equal to one of the
specified values.
|
AnyRules.Builder |
addAllNotIn(Iterable<String> values)
requires the field's type_url to be not equal to any of the specified values.
|
AnyRules.Builder |
addIn(String value)
`in` requires the field's `type_url` to be equal to one of the
specified values.
|
AnyRules.Builder |
addInBytes(com.google.protobuf.ByteString value)
`in` requires the field's `type_url` to be equal to one of the
specified values.
|
AnyRules.Builder |
addNotIn(String value)
requires the field's type_url to be not equal to any of the specified values.
|
AnyRules.Builder |
addNotInBytes(com.google.protobuf.ByteString value)
requires the field's type_url to be not equal to any of the specified values.
|
AnyRules.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AnyRules |
build() |
AnyRules |
buildPartial() |
AnyRules.Builder |
clear() |
AnyRules.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AnyRules.Builder |
clearIn()
`in` requires the field's `type_url` to be equal to one of the
specified values.
|
AnyRules.Builder |
clearNotIn()
requires the field's type_url to be not equal to any of the specified values.
|
AnyRules.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AnyRules.Builder |
clone() |
AnyRules |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
AnyRules.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AnyRules.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AnyRules.Builder |
setIn(int index,
String value)
`in` requires the field's `type_url` to be equal to one of the
specified values.
|
AnyRules.Builder |
setNotIn(int index,
String value)
requires the field's type_url to be not equal to any of the specified values.
|
AnyRules.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AnyRules.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, isInitialized, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AnyRules.Builder>public AnyRules.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AnyRules.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AnyRules.Builder>public AnyRules getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AnyRules build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AnyRules buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AnyRules.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AnyRules.Builder>public AnyRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AnyRules.Builder>public AnyRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AnyRules.Builder>public AnyRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AnyRules.Builder>public AnyRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnyRules.Builder>public AnyRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnyRules.Builder>public 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 AnyRules.Builder setIn(int index, String value)
`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"];index - The index to set the value at.value - The in to set.public AnyRules.Builder addIn(String value)
`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"];value - The in to add.public AnyRules.Builder addAllIn(Iterable<String> values)
`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"];values - The in to add.public AnyRules.Builder clearIn()
`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"];public AnyRules.Builder addInBytes(com.google.protobuf.ByteString value)
`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"];value - The bytes of the in to add.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 AnyRules.Builder setNotIn(int index, String value)
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"];index - The index to set the value at.value - The notIn to set.public AnyRules.Builder addNotIn(String value)
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"];value - The notIn to add.public AnyRules.Builder addAllNotIn(Iterable<String> values)
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"];values - The notIn to add.public AnyRules.Builder clearNotIn()
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"];public AnyRules.Builder addNotInBytes(com.google.protobuf.ByteString value)
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"];value - The bytes of the notIn to add.public final AnyRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnyRules.Builder>public final AnyRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnyRules.Builder>Copyright © 2024. All rights reserved.