public static final class Validate.EnumRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder> implements Validate.EnumRulesOrBuilder
EnumRules describe the constraints applied to enum valuesProtobuf type
validate.EnumRules| Modifier and Type | Method and Description |
|---|---|
Validate.EnumRules.Builder |
addAllIn(Iterable<? extends Integer> values)
In specifies that this field must be equal to one of the specified
values
repeated int32 in = 3; |
Validate.EnumRules.Builder |
addAllNotIn(Iterable<? extends Integer> values)
NotIn specifies that this field cannot be equal to one of the specified
values
repeated int32 not_in = 4; |
Validate.EnumRules.Builder |
addIn(int value)
In specifies that this field must be equal to one of the specified
values
repeated int32 in = 3; |
Validate.EnumRules.Builder |
addNotIn(int value)
NotIn specifies that this field cannot be equal to one of the specified
values
repeated int32 not_in = 4; |
Validate.EnumRules.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Validate.EnumRules |
build() |
Validate.EnumRules |
buildPartial() |
Validate.EnumRules.Builder |
clear() |
Validate.EnumRules.Builder |
clearConst()
Const specifies that this field must be exactly the specified value
optional int32 const = 1; |
Validate.EnumRules.Builder |
clearDefinedOnly()
DefinedOnly specifies that this field must be only one of the defined
values for this enum, failing on any undefined value.
|
Validate.EnumRules.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Validate.EnumRules.Builder |
clearIn()
In specifies that this field must be equal to one of the specified
values
repeated int32 in = 3; |
Validate.EnumRules.Builder |
clearNotIn()
NotIn specifies that this field cannot be equal to one of the specified
values
repeated int32 not_in = 4; |
Validate.EnumRules.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Validate.EnumRules.Builder |
clone() |
int |
getConst()
Const specifies that this field must be exactly the specified value
optional int32 const = 1; |
Validate.EnumRules |
getDefaultInstanceForType() |
boolean |
getDefinedOnly()
DefinedOnly specifies that this field must be only one of the defined
values for this enum, failing on any undefined value.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getIn(int index)
In specifies that this field must be equal to one of the specified
values
repeated int32 in = 3; |
int |
getInCount()
In specifies that this field must be equal to one of the specified
values
repeated int32 in = 3; |
List<Integer> |
getInList()
In specifies that this field must be equal to one of the specified
values
repeated int32 in = 3; |
int |
getNotIn(int index)
NotIn specifies that this field cannot be equal to one of the specified
values
repeated int32 not_in = 4; |
int |
getNotInCount()
NotIn specifies that this field cannot be equal to one of the specified
values
repeated int32 not_in = 4; |
List<Integer> |
getNotInList()
NotIn specifies that this field cannot be equal to one of the specified
values
repeated int32 not_in = 4; |
boolean |
hasConst()
Const specifies that this field must be exactly the specified value
optional int32 const = 1; |
boolean |
hasDefinedOnly()
DefinedOnly specifies that this field must be only one of the defined
values for this enum, failing on any undefined value.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Validate.EnumRules.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Validate.EnumRules.Builder |
mergeFrom(com.google.protobuf.Message other) |
Validate.EnumRules.Builder |
mergeFrom(Validate.EnumRules other) |
Validate.EnumRules.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Validate.EnumRules.Builder |
setConst(int value)
Const specifies that this field must be exactly the specified value
optional int32 const = 1; |
Validate.EnumRules.Builder |
setDefinedOnly(boolean value)
DefinedOnly specifies that this field must be only one of the defined
values for this enum, failing on any undefined value.
|
Validate.EnumRules.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Validate.EnumRules.Builder |
setIn(int index,
int value)
In specifies that this field must be equal to one of the specified
values
repeated int32 in = 3; |
Validate.EnumRules.Builder |
setNotIn(int index,
int value)
NotIn specifies that this field cannot be equal to one of the specified
values
repeated int32 not_in = 4; |
Validate.EnumRules.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Validate.EnumRules.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, 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<Validate.EnumRules.Builder>public Validate.EnumRules.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.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<Validate.EnumRules.Builder>public Validate.EnumRules getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Validate.EnumRules build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Validate.EnumRules buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Validate.EnumRules.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder>public Validate.EnumRules.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<Validate.EnumRules.Builder>public Validate.EnumRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder>public Validate.EnumRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder>public Validate.EnumRules.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<Validate.EnumRules.Builder>public Validate.EnumRules.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<Validate.EnumRules.Builder>public Validate.EnumRules.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Validate.EnumRules.Builder>public Validate.EnumRules.Builder mergeFrom(Validate.EnumRules other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder>public Validate.EnumRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Validate.EnumRules.Builder>IOExceptionpublic boolean hasConst()
Const specifies that this field must be exactly the specified value
optional int32 const = 1;hasConst in interface Validate.EnumRulesOrBuilderpublic int getConst()
Const specifies that this field must be exactly the specified value
optional int32 const = 1;getConst in interface Validate.EnumRulesOrBuilderpublic Validate.EnumRules.Builder setConst(int value)
Const specifies that this field must be exactly the specified value
optional int32 const = 1;public Validate.EnumRules.Builder clearConst()
Const specifies that this field must be exactly the specified value
optional int32 const = 1;public boolean hasDefinedOnly()
DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.
optional bool defined_only = 2;hasDefinedOnly in interface Validate.EnumRulesOrBuilderpublic boolean getDefinedOnly()
DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.
optional bool defined_only = 2;getDefinedOnly in interface Validate.EnumRulesOrBuilderpublic Validate.EnumRules.Builder setDefinedOnly(boolean value)
DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.
optional bool defined_only = 2;public Validate.EnumRules.Builder clearDefinedOnly()
DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.
optional bool defined_only = 2;public List<Integer> getInList()
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;getInList in interface Validate.EnumRulesOrBuilderpublic int getInCount()
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;getInCount in interface Validate.EnumRulesOrBuilderpublic int getIn(int index)
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;getIn in interface Validate.EnumRulesOrBuilderpublic Validate.EnumRules.Builder setIn(int index, int value)
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;public Validate.EnumRules.Builder addIn(int value)
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;public Validate.EnumRules.Builder addAllIn(Iterable<? extends Integer> values)
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;public Validate.EnumRules.Builder clearIn()
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;public List<Integer> getNotInList()
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;getNotInList in interface Validate.EnumRulesOrBuilderpublic int getNotInCount()
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;getNotInCount in interface Validate.EnumRulesOrBuilderpublic int getNotIn(int index)
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;getNotIn in interface Validate.EnumRulesOrBuilderpublic Validate.EnumRules.Builder setNotIn(int index, int value)
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;public Validate.EnumRules.Builder addNotIn(int value)
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;public Validate.EnumRules.Builder addAllNotIn(Iterable<? extends Integer> values)
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;public Validate.EnumRules.Builder clearNotIn()
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;public final Validate.EnumRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder>public final Validate.EnumRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.EnumRules.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.