Package xg
Class Validator.ValidatorOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Validator.ValidatorOptions.Builder>
xg.Validator.ValidatorOptions.Builder
- All Implemented Interfaces:
Message.Builder,MessageLite.Builder,MessageLiteOrBuilder,MessageOrBuilder,Cloneable,Validator.ValidatorOptionsOrBuilder
- Enclosing class:
- Validator.ValidatorOptions
public static final class Validator.ValidatorOptions.Builder
extends GeneratedMessageV3.Builder<Validator.ValidatorOptions.Builder>
implements Validator.ValidatorOptionsOrBuilder
Protobuf type
ValidatorOptions-
Method Summary
Modifier and TypeMethodDescriptionbuild()Constructs the message based on the state of the Builder.LikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields.clear()Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.optional string count_equal = 9;optional string count_max = 8;optional string count_min = 7;optional string count_not_equal = 10;optional string equal = 3;optional string has_key = 11;clearMax()optional string max = 2;clearMin()optional string min = 1;optional string not_equal = 4;optional string regex = 6;optional string uuid = 5;optional string count_equal = 9;optional string count_equal = 9;optional string count_max = 8;optional string count_max = 8;optional string count_min = 7;optional string count_min = 7;optional string count_not_equal = 10;optional string count_not_equal = 10;Get an instance of the type with no fields set.static final Descriptors.DescriptorGet the message's type's descriptor.getEqual()optional string equal = 3;optional string equal = 3;optional string has_key = 11;optional string has_key = 11;getMax()optional string max = 2;optional string max = 2;getMin()optional string min = 1;optional string min = 1;optional string not_equal = 4;optional string not_equal = 4;getRegex()optional string regex = 6;optional string regex = 6;getUuid()optional string uuid = 5;optional string uuid = 5;booleanoptional string count_equal = 9;booleanoptional string count_max = 8;booleanoptional string count_min = 7;booleanoptional string count_not_equal = 10;booleanhasEqual()optional string equal = 3;booleanoptional string has_key = 11;booleanhasMax()optional string max = 2;booleanhasMin()optional string min = 1;booleanoptional string not_equal = 4;booleanhasRegex()optional string regex = 6;booleanhasUuid()optional string uuid = 5;protected GeneratedMessageV3.FieldAccessorTableGet the FieldAccessorTable for this type.final booleanReturns true if all required fields in the message and all embedded messages are set, false otherwise.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) LikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions.Mergeotherinto the message being built.mergeUnknownFields(UnknownFieldSet unknownFields) Merge some unknown fields into theUnknownFieldSetfor this message.setCountEqual(String value) optional string count_equal = 9;setCountEqualBytes(ByteString value) optional string count_equal = 9;setCountMax(String value) optional string count_max = 8;setCountMaxBytes(ByteString value) optional string count_max = 8;setCountMin(String value) optional string count_min = 7;setCountMinBytes(ByteString value) optional string count_min = 7;setCountNotEqual(String value) optional string count_not_equal = 10;setCountNotEqualBytes(ByteString value) optional string count_not_equal = 10;optional string equal = 3;setEqualBytes(ByteString value) optional string equal = 3;optional string has_key = 11;setHasKeyBytes(ByteString value) optional string has_key = 11;optional string max = 2;setMaxBytes(ByteString value) optional string max = 2;optional string min = 1;setMinBytes(ByteString value) optional string min = 1;setNotEqual(String value) optional string not_equal = 4;setNotEqualBytes(ByteString value) optional string not_equal = 4;optional string regex = 6;setRegexBytes(ByteString value) optional string regex = 6;setUnknownFields(UnknownFieldSet unknownFields) Set theUnknownFieldSetfor this message.optional string uuid = 5;setUuidBytes(ByteString value) optional string uuid = 5;Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, 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
-
internalGetFieldAccessorTable
Description copied from class:GeneratedMessageV3.BuilderGet the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<Validator.ValidatorOptions.Builder>
-
clear
Description copied from class:GeneratedMessageV3.BuilderCalled by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<Validator.ValidatorOptions.Builder>
-
getDescriptorForType
Description copied from interface:Message.BuilderGet the message's type's descriptor. SeeMessageOrBuilder.getDescriptorForType().- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<Validator.ValidatorOptions.Builder>
-
getDefaultInstanceForType
Description copied from interface:MessageLiteOrBuilderGet an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from thegetDefaultInstance()method of generated message classes in that this method is an abstract method of theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
Description copied from interface:MessageLite.BuilderConstructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
mergeFrom
Description copied from interface:Message.BuilderMergeotherinto the message being built.othermust have the exact same type asthis(i.e.getDescriptorForType() == other.getDescriptorForType()).Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set inother, thenother's value overwrites the value in this message.
* For singular message fields, if the field is set inother, it is merged into the corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements inotherare concatenated with the elements in this message.
* For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.This is equivalent to the
Message::MergeFrommethod in C++.- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Validator.ValidatorOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()Description copied from interface:MessageLiteOrBuilderReturns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<Validator.ValidatorOptions.Builder>
-
mergeFrom
public Validator.ValidatorOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered inextensionRegistry. Extensions not in the registry will be treated as unknown fields.- Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Validator.ValidatorOptions.Builder>- Throws:
InvalidProtocolBufferException- the bytes read are not syntactically correct according to the protobuf wire format specification. The data is corrupt, incomplete, or was never a protobuf in the first place.IOException- an I/O error reading from the stream
-
hasMin
public boolean hasMin()optional string min = 1;- Specified by:
hasMinin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- Whether the min field is set.
-
getMin
optional string min = 1;- Specified by:
getMinin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The min.
-
getMinBytes
optional string min = 1;- Specified by:
getMinBytesin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The bytes for min.
-
setMin
optional string min = 1;- Parameters:
value- The min to set.- Returns:
- This builder for chaining.
-
clearMin
optional string min = 1;- Returns:
- This builder for chaining.
-
setMinBytes
optional string min = 1;- Parameters:
value- The bytes for min to set.- Returns:
- This builder for chaining.
-
hasMax
public boolean hasMax()optional string max = 2;- Specified by:
hasMaxin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- Whether the max field is set.
-
getMax
optional string max = 2;- Specified by:
getMaxin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The max.
-
getMaxBytes
optional string max = 2;- Specified by:
getMaxBytesin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The bytes for max.
-
setMax
optional string max = 2;- Parameters:
value- The max to set.- Returns:
- This builder for chaining.
-
clearMax
optional string max = 2;- Returns:
- This builder for chaining.
-
setMaxBytes
optional string max = 2;- Parameters:
value- The bytes for max to set.- Returns:
- This builder for chaining.
-
hasEqual
public boolean hasEqual()optional string equal = 3;- Specified by:
hasEqualin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- Whether the equal field is set.
-
getEqual
optional string equal = 3;- Specified by:
getEqualin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The equal.
-
getEqualBytes
optional string equal = 3;- Specified by:
getEqualBytesin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The bytes for equal.
-
setEqual
optional string equal = 3;- Parameters:
value- The equal to set.- Returns:
- This builder for chaining.
-
clearEqual
optional string equal = 3;- Returns:
- This builder for chaining.
-
setEqualBytes
optional string equal = 3;- Parameters:
value- The bytes for equal to set.- Returns:
- This builder for chaining.
-
hasNotEqual
public boolean hasNotEqual()optional string not_equal = 4;- Specified by:
hasNotEqualin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- Whether the notEqual field is set.
-
getNotEqual
optional string not_equal = 4;- Specified by:
getNotEqualin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The notEqual.
-
getNotEqualBytes
optional string not_equal = 4;- Specified by:
getNotEqualBytesin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The bytes for notEqual.
-
setNotEqual
optional string not_equal = 4;- Parameters:
value- The notEqual to set.- Returns:
- This builder for chaining.
-
clearNotEqual
optional string not_equal = 4;- Returns:
- This builder for chaining.
-
setNotEqualBytes
optional string not_equal = 4;- Parameters:
value- The bytes for notEqual to set.- Returns:
- This builder for chaining.
-
hasUuid
public boolean hasUuid()optional string uuid = 5;- Specified by:
hasUuidin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- Whether the uuid field is set.
-
getUuid
optional string uuid = 5;- Specified by:
getUuidin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The uuid.
-
getUuidBytes
optional string uuid = 5;- Specified by:
getUuidBytesin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The bytes for uuid.
-
setUuid
optional string uuid = 5;- Parameters:
value- The uuid to set.- Returns:
- This builder for chaining.
-
clearUuid
optional string uuid = 5;- Returns:
- This builder for chaining.
-
setUuidBytes
optional string uuid = 5;- Parameters:
value- The bytes for uuid to set.- Returns:
- This builder for chaining.
-
hasRegex
public boolean hasRegex()optional string regex = 6;- Specified by:
hasRegexin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- Whether the regex field is set.
-
getRegex
optional string regex = 6;- Specified by:
getRegexin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The regex.
-
getRegexBytes
optional string regex = 6;- Specified by:
getRegexBytesin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The bytes for regex.
-
setRegex
optional string regex = 6;- Parameters:
value- The regex to set.- Returns:
- This builder for chaining.
-
clearRegex
optional string regex = 6;- Returns:
- This builder for chaining.
-
setRegexBytes
optional string regex = 6;- Parameters:
value- The bytes for regex to set.- Returns:
- This builder for chaining.
-
hasCountMin
public boolean hasCountMin()optional string count_min = 7;- Specified by:
hasCountMinin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- Whether the countMin field is set.
-
getCountMin
optional string count_min = 7;- Specified by:
getCountMinin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The countMin.
-
getCountMinBytes
optional string count_min = 7;- Specified by:
getCountMinBytesin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The bytes for countMin.
-
setCountMin
optional string count_min = 7;- Parameters:
value- The countMin to set.- Returns:
- This builder for chaining.
-
clearCountMin
optional string count_min = 7;- Returns:
- This builder for chaining.
-
setCountMinBytes
optional string count_min = 7;- Parameters:
value- The bytes for countMin to set.- Returns:
- This builder for chaining.
-
hasCountMax
public boolean hasCountMax()optional string count_max = 8;- Specified by:
hasCountMaxin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- Whether the countMax field is set.
-
getCountMax
optional string count_max = 8;- Specified by:
getCountMaxin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The countMax.
-
getCountMaxBytes
optional string count_max = 8;- Specified by:
getCountMaxBytesin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The bytes for countMax.
-
setCountMax
optional string count_max = 8;- Parameters:
value- The countMax to set.- Returns:
- This builder for chaining.
-
clearCountMax
optional string count_max = 8;- Returns:
- This builder for chaining.
-
setCountMaxBytes
optional string count_max = 8;- Parameters:
value- The bytes for countMax to set.- Returns:
- This builder for chaining.
-
hasCountEqual
public boolean hasCountEqual()optional string count_equal = 9;- Specified by:
hasCountEqualin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- Whether the countEqual field is set.
-
getCountEqual
optional string count_equal = 9;- Specified by:
getCountEqualin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The countEqual.
-
getCountEqualBytes
optional string count_equal = 9;- Specified by:
getCountEqualBytesin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The bytes for countEqual.
-
setCountEqual
optional string count_equal = 9;- Parameters:
value- The countEqual to set.- Returns:
- This builder for chaining.
-
clearCountEqual
optional string count_equal = 9;- Returns:
- This builder for chaining.
-
setCountEqualBytes
optional string count_equal = 9;- Parameters:
value- The bytes for countEqual to set.- Returns:
- This builder for chaining.
-
hasCountNotEqual
public boolean hasCountNotEqual()optional string count_not_equal = 10;- Specified by:
hasCountNotEqualin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- Whether the countNotEqual field is set.
-
getCountNotEqual
optional string count_not_equal = 10;- Specified by:
getCountNotEqualin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The countNotEqual.
-
getCountNotEqualBytes
optional string count_not_equal = 10;- Specified by:
getCountNotEqualBytesin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The bytes for countNotEqual.
-
setCountNotEqual
optional string count_not_equal = 10;- Parameters:
value- The countNotEqual to set.- Returns:
- This builder for chaining.
-
clearCountNotEqual
optional string count_not_equal = 10;- Returns:
- This builder for chaining.
-
setCountNotEqualBytes
optional string count_not_equal = 10;- Parameters:
value- The bytes for countNotEqual to set.- Returns:
- This builder for chaining.
-
hasHasKey
public boolean hasHasKey()optional string has_key = 11;- Specified by:
hasHasKeyin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- Whether the hasKey field is set.
-
getHasKey
optional string has_key = 11;- Specified by:
getHasKeyin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The hasKey.
-
getHasKeyBytes
optional string has_key = 11;- Specified by:
getHasKeyBytesin interfaceValidator.ValidatorOptionsOrBuilder- Returns:
- The bytes for hasKey.
-
setHasKey
optional string has_key = 11;- Parameters:
value- The hasKey to set.- Returns:
- This builder for chaining.
-
clearHasKey
optional string has_key = 11;- Returns:
- This builder for chaining.
-
setHasKeyBytes
optional string has_key = 11;- Parameters:
value- The bytes for hasKey to set.- Returns:
- This builder for chaining.
-
setUnknownFields
Description copied from interface:Message.BuilderSet theUnknownFieldSetfor this message.- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<Validator.ValidatorOptions.Builder>
-
mergeUnknownFields
Description copied from interface:Message.BuilderMerge some unknown fields into theUnknownFieldSetfor this message.- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<Validator.ValidatorOptions.Builder>
-