Class Validate.AnyRules.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Validate.AnyRulesOrBuilder, java.lang.Cloneable
    Enclosing class:
    Validate.AnyRules

    public static final class Validate.AnyRules.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
    implements Validate.AnyRulesOrBuilder
     AnyRules describe constraints applied exclusively to the
     `google.protobuf.Any` well-known type
     
    Protobuf type validate.AnyRules
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Validate.AnyRules.Builder addAllIn​(java.lang.Iterable<java.lang.String> values)
      In specifies that this field's `type_url` must be equal to one of the specified values.
      Validate.AnyRules.Builder addAllNotIn​(java.lang.Iterable<java.lang.String> values)
      NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
      Validate.AnyRules.Builder addIn​(java.lang.String value)
      In specifies that this field's `type_url` must be equal to one of the specified values.
      Validate.AnyRules.Builder addInBytes​(com.google.protobuf.ByteString value)
      In specifies that this field's `type_url` must be equal to one of the specified values.
      Validate.AnyRules.Builder addNotIn​(java.lang.String value)
      NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
      Validate.AnyRules.Builder addNotInBytes​(com.google.protobuf.ByteString value)
      NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
      Validate.AnyRules.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)  
      Validate.AnyRules build()  
      Validate.AnyRules buildPartial()  
      Validate.AnyRules.Builder clear()  
      Validate.AnyRules.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      Validate.AnyRules.Builder clearIn()
      In specifies that this field's `type_url` must be equal to one of the specified values.
      Validate.AnyRules.Builder clearNotIn()
      NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
      Validate.AnyRules.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      Validate.AnyRules.Builder clearRequired()
      Required specifies that this field must be set
      Validate.AnyRules.Builder clone()  
      Validate.AnyRules getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      java.lang.String getIn​(int index)
      In specifies that this field's `type_url` must be equal to one of the specified values.
      com.google.protobuf.ByteString getInBytes​(int index)
      In specifies that this field's `type_url` must be equal to one of the specified values.
      int getInCount()
      In specifies that this field's `type_url` must be equal to one of the specified values.
      com.google.protobuf.ProtocolStringList getInList()
      In specifies that this field's `type_url` must be equal to one of the specified values.
      java.lang.String getNotIn​(int index)
      NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
      com.google.protobuf.ByteString getNotInBytes​(int index)
      NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
      int getNotInCount()
      NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
      com.google.protobuf.ProtocolStringList getNotInList()
      NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
      boolean getRequired()
      Required specifies that this field must be set
      boolean hasRequired()
      Required specifies that this field must be set
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      Validate.AnyRules.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      Validate.AnyRules.Builder mergeFrom​(com.google.protobuf.Message other)  
      Validate.AnyRules.Builder mergeFrom​(Validate.AnyRules other)  
      Validate.AnyRules.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      Validate.AnyRules.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)  
      Validate.AnyRules.Builder setIn​(int index, java.lang.String value)
      In specifies that this field's `type_url` must be equal to one of the specified values.
      Validate.AnyRules.Builder setNotIn​(int index, java.lang.String value)
      NotIn specifies that this field's `type_url` must not be equal to any of the specified values.
      Validate.AnyRules.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)  
      Validate.AnyRules.Builder setRequired​(boolean value)
      Required specifies that this field must be set
      Validate.AnyRules.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
      • clear

        public Validate.AnyRules.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
      • getDefaultInstanceForType

        public Validate.AnyRules getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Validate.AnyRules build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Validate.AnyRules buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Validate.AnyRules.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
      • setField

        public Validate.AnyRules.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
      • clearField

        public Validate.AnyRules.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
      • clearOneof

        public Validate.AnyRules.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
      • setRepeatedField

        public Validate.AnyRules.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
      • addRepeatedField

        public Validate.AnyRules.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
      • mergeFrom

        public Validate.AnyRules.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Validate.AnyRules.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
      • mergeFrom

        public Validate.AnyRules.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Validate.AnyRules.Builder>
        Throws:
        java.io.IOException
      • hasRequired

        public boolean hasRequired()
         Required specifies that this field must be set
         
        optional bool required = 1;
        Specified by:
        hasRequired in interface Validate.AnyRulesOrBuilder
        Returns:
        Whether the required field is set.
      • getRequired

        public boolean getRequired()
         Required specifies that this field must be set
         
        optional bool required = 1;
        Specified by:
        getRequired in interface Validate.AnyRulesOrBuilder
        Returns:
        The required.
      • setRequired

        public Validate.AnyRules.Builder setRequired​(boolean value)
         Required specifies that this field must be set
         
        optional bool required = 1;
        Parameters:
        value - The required to set.
        Returns:
        This builder for chaining.
      • clearRequired

        public Validate.AnyRules.Builder clearRequired()
         Required specifies that this field must be set
         
        optional bool required = 1;
        Returns:
        This builder for chaining.
      • getInList

        public com.google.protobuf.ProtocolStringList getInList()
         In specifies that this field's `type_url` must be equal to one of the
         specified values.
         
        repeated string in = 2;
        Specified by:
        getInList in interface Validate.AnyRulesOrBuilder
        Returns:
        A list containing the in.
      • getInCount

        public int getInCount()
         In specifies that this field's `type_url` must be equal to one of the
         specified values.
         
        repeated string in = 2;
        Specified by:
        getInCount in interface Validate.AnyRulesOrBuilder
        Returns:
        The count of in.
      • getIn

        public java.lang.String getIn​(int index)
         In specifies that this field's `type_url` must be equal to one of the
         specified values.
         
        repeated string in = 2;
        Specified by:
        getIn in interface Validate.AnyRulesOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The in at the given index.
      • getInBytes

        public com.google.protobuf.ByteString getInBytes​(int index)
         In specifies that this field's `type_url` must be equal to one of the
         specified values.
         
        repeated string in = 2;
        Specified by:
        getInBytes in interface Validate.AnyRulesOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the in at the given index.
      • setIn

        public Validate.AnyRules.Builder setIn​(int index,
                                               java.lang.String value)
         In specifies that this field's `type_url` must be equal to one of the
         specified values.
         
        repeated string in = 2;
        Parameters:
        index - The index to set the value at.
        value - The in to set.
        Returns:
        This builder for chaining.
      • addIn

        public Validate.AnyRules.Builder addIn​(java.lang.String value)
         In specifies that this field's `type_url` must be equal to one of the
         specified values.
         
        repeated string in = 2;
        Parameters:
        value - The in to add.
        Returns:
        This builder for chaining.
      • addAllIn

        public Validate.AnyRules.Builder addAllIn​(java.lang.Iterable<java.lang.String> values)
         In specifies that this field's `type_url` must be equal to one of the
         specified values.
         
        repeated string in = 2;
        Parameters:
        values - The in to add.
        Returns:
        This builder for chaining.
      • clearIn

        public Validate.AnyRules.Builder clearIn()
         In specifies that this field's `type_url` must be equal to one of the
         specified values.
         
        repeated string in = 2;
        Returns:
        This builder for chaining.
      • addInBytes

        public Validate.AnyRules.Builder addInBytes​(com.google.protobuf.ByteString value)
         In specifies that this field's `type_url` must be equal to one of the
         specified values.
         
        repeated string in = 2;
        Parameters:
        value - The bytes of the in to add.
        Returns:
        This builder for chaining.
      • getNotInList

        public com.google.protobuf.ProtocolStringList getNotInList()
         NotIn specifies that this field's `type_url` must not be equal to any of
         the specified values.
         
        repeated string not_in = 3;
        Specified by:
        getNotInList in interface Validate.AnyRulesOrBuilder
        Returns:
        A list containing the notIn.
      • getNotInCount

        public int getNotInCount()
         NotIn specifies that this field's `type_url` must not be equal to any of
         the specified values.
         
        repeated string not_in = 3;
        Specified by:
        getNotInCount in interface Validate.AnyRulesOrBuilder
        Returns:
        The count of notIn.
      • getNotIn

        public java.lang.String getNotIn​(int index)
         NotIn specifies that this field's `type_url` must not be equal to any of
         the specified values.
         
        repeated string not_in = 3;
        Specified by:
        getNotIn in interface Validate.AnyRulesOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The notIn at the given index.
      • getNotInBytes

        public com.google.protobuf.ByteString getNotInBytes​(int index)
         NotIn specifies that this field's `type_url` must not be equal to any of
         the specified values.
         
        repeated string not_in = 3;
        Specified by:
        getNotInBytes in interface Validate.AnyRulesOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the notIn at the given index.
      • setNotIn

        public Validate.AnyRules.Builder setNotIn​(int index,
                                                  java.lang.String value)
         NotIn specifies that this field's `type_url` must not be equal to any of
         the specified values.
         
        repeated string not_in = 3;
        Parameters:
        index - The index to set the value at.
        value - The notIn to set.
        Returns:
        This builder for chaining.
      • addNotIn

        public Validate.AnyRules.Builder addNotIn​(java.lang.String value)
         NotIn specifies that this field's `type_url` must not be equal to any of
         the specified values.
         
        repeated string not_in = 3;
        Parameters:
        value - The notIn to add.
        Returns:
        This builder for chaining.
      • addAllNotIn

        public Validate.AnyRules.Builder addAllNotIn​(java.lang.Iterable<java.lang.String> values)
         NotIn specifies that this field's `type_url` must not be equal to any of
         the specified values.
         
        repeated string not_in = 3;
        Parameters:
        values - The notIn to add.
        Returns:
        This builder for chaining.
      • clearNotIn

        public Validate.AnyRules.Builder clearNotIn()
         NotIn specifies that this field's `type_url` must not be equal to any of
         the specified values.
         
        repeated string not_in = 3;
        Returns:
        This builder for chaining.
      • addNotInBytes

        public Validate.AnyRules.Builder addNotInBytes​(com.google.protobuf.ByteString value)
         NotIn specifies that this field's `type_url` must not be equal to any of
         the specified values.
         
        repeated string not_in = 3;
        Parameters:
        value - The bytes of the notIn to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Validate.AnyRules.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>
      • mergeUnknownFields

        public final Validate.AnyRules.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.AnyRules.Builder>