Class Validate.StringRules.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
io.envoyproxy.pgv.validate.Validate.StringRules.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Validate.StringRulesOrBuilder, Cloneable
Enclosing class:
Validate.StringRules

public static final class Validate.StringRules.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>
implements Validate.StringRulesOrBuilder
 StringRules describe the constraints applied to `string` values
 
Protobuf type validate.StringRules
  • Method Details

    • 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.StringRules.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.StringRules.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.StringRules.Builder>
    • getDefaultInstanceForType

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

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

      public Validate.StringRules buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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.StringRules.Builder>
    • setField

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

      public Validate.StringRules.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.StringRules.Builder>
    • clearOneof

      public Validate.StringRules.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.StringRules.Builder>
    • setRepeatedField

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

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

      public Validate.StringRules.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.StringRules.Builder>
    • mergeFrom

    • isInitialized

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

      public Validate.StringRules.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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.StringRules.Builder>
      Throws:
      IOException
    • getWellKnownCase

      public Validate.StringRules.WellKnownCase getWellKnownCase()
      Specified by:
      getWellKnownCase in interface Validate.StringRulesOrBuilder
    • clearWellKnown

      public Validate.StringRules.Builder clearWellKnown()
    • hasConst

      public boolean hasConst()
       Const specifies that this field must be exactly the specified value
       
      optional string const = 1;
      Specified by:
      hasConst in interface Validate.StringRulesOrBuilder
    • getConst

      public String getConst()
       Const specifies that this field must be exactly the specified value
       
      optional string const = 1;
      Specified by:
      getConst in interface Validate.StringRulesOrBuilder
    • getConstBytes

      public com.google.protobuf.ByteString getConstBytes()
       Const specifies that this field must be exactly the specified value
       
      optional string const = 1;
      Specified by:
      getConstBytes in interface Validate.StringRulesOrBuilder
    • setConst

      public Validate.StringRules.Builder setConst​(String value)
       Const specifies that this field must be exactly the specified value
       
      optional string const = 1;
    • clearConst

      public Validate.StringRules.Builder clearConst()
       Const specifies that this field must be exactly the specified value
       
      optional string const = 1;
    • setConstBytes

      public Validate.StringRules.Builder setConstBytes​(com.google.protobuf.ByteString value)
       Const specifies that this field must be exactly the specified value
       
      optional string const = 1;
    • hasLen

      public boolean hasLen()
       Len specifies that this field must be the specified number of
       characters (Unicode code points). Note that the number of
       characters may differ from the number of bytes in the string.
       
      optional uint64 len = 19;
      Specified by:
      hasLen in interface Validate.StringRulesOrBuilder
    • getLen

      public long getLen()
       Len specifies that this field must be the specified number of
       characters (Unicode code points). Note that the number of
       characters may differ from the number of bytes in the string.
       
      optional uint64 len = 19;
      Specified by:
      getLen in interface Validate.StringRulesOrBuilder
    • setLen

      public Validate.StringRules.Builder setLen​(long value)
       Len specifies that this field must be the specified number of
       characters (Unicode code points). Note that the number of
       characters may differ from the number of bytes in the string.
       
      optional uint64 len = 19;
    • clearLen

      public Validate.StringRules.Builder clearLen()
       Len specifies that this field must be the specified number of
       characters (Unicode code points). Note that the number of
       characters may differ from the number of bytes in the string.
       
      optional uint64 len = 19;
    • hasMinLen

      public boolean hasMinLen()
       MinLen specifies that this field must be the specified number of
       characters (Unicode code points) at a minimum. Note that the number of
       characters may differ from the number of bytes in the string.
       
      optional uint64 min_len = 2;
      Specified by:
      hasMinLen in interface Validate.StringRulesOrBuilder
    • getMinLen

      public long getMinLen()
       MinLen specifies that this field must be the specified number of
       characters (Unicode code points) at a minimum. Note that the number of
       characters may differ from the number of bytes in the string.
       
      optional uint64 min_len = 2;
      Specified by:
      getMinLen in interface Validate.StringRulesOrBuilder
    • setMinLen

      public Validate.StringRules.Builder setMinLen​(long value)
       MinLen specifies that this field must be the specified number of
       characters (Unicode code points) at a minimum. Note that the number of
       characters may differ from the number of bytes in the string.
       
      optional uint64 min_len = 2;
    • clearMinLen

      public Validate.StringRules.Builder clearMinLen()
       MinLen specifies that this field must be the specified number of
       characters (Unicode code points) at a minimum. Note that the number of
       characters may differ from the number of bytes in the string.
       
      optional uint64 min_len = 2;
    • hasMaxLen

      public boolean hasMaxLen()
       MaxLen specifies that this field must be the specified number of
       characters (Unicode code points) at a maximum. Note that the number of
       characters may differ from the number of bytes in the string.
       
      optional uint64 max_len = 3;
      Specified by:
      hasMaxLen in interface Validate.StringRulesOrBuilder
    • getMaxLen

      public long getMaxLen()
       MaxLen specifies that this field must be the specified number of
       characters (Unicode code points) at a maximum. Note that the number of
       characters may differ from the number of bytes in the string.
       
      optional uint64 max_len = 3;
      Specified by:
      getMaxLen in interface Validate.StringRulesOrBuilder
    • setMaxLen

      public Validate.StringRules.Builder setMaxLen​(long value)
       MaxLen specifies that this field must be the specified number of
       characters (Unicode code points) at a maximum. Note that the number of
       characters may differ from the number of bytes in the string.
       
      optional uint64 max_len = 3;
    • clearMaxLen

      public Validate.StringRules.Builder clearMaxLen()
       MaxLen specifies that this field must be the specified number of
       characters (Unicode code points) at a maximum. Note that the number of
       characters may differ from the number of bytes in the string.
       
      optional uint64 max_len = 3;
    • hasLenBytes

      public boolean hasLenBytes()
       LenBytes specifies that this field must be the specified number of bytes
       at a minimum
       
      optional uint64 len_bytes = 20;
      Specified by:
      hasLenBytes in interface Validate.StringRulesOrBuilder
    • getLenBytes

      public long getLenBytes()
       LenBytes specifies that this field must be the specified number of bytes
       at a minimum
       
      optional uint64 len_bytes = 20;
      Specified by:
      getLenBytes in interface Validate.StringRulesOrBuilder
    • setLenBytes

      public Validate.StringRules.Builder setLenBytes​(long value)
       LenBytes specifies that this field must be the specified number of bytes
       at a minimum
       
      optional uint64 len_bytes = 20;
    • clearLenBytes

      public Validate.StringRules.Builder clearLenBytes()
       LenBytes specifies that this field must be the specified number of bytes
       at a minimum
       
      optional uint64 len_bytes = 20;
    • hasMinBytes

      public boolean hasMinBytes()
       MinBytes specifies that this field must be the specified number of bytes
       at a minimum
       
      optional uint64 min_bytes = 4;
      Specified by:
      hasMinBytes in interface Validate.StringRulesOrBuilder
    • getMinBytes

      public long getMinBytes()
       MinBytes specifies that this field must be the specified number of bytes
       at a minimum
       
      optional uint64 min_bytes = 4;
      Specified by:
      getMinBytes in interface Validate.StringRulesOrBuilder
    • setMinBytes

      public Validate.StringRules.Builder setMinBytes​(long value)
       MinBytes specifies that this field must be the specified number of bytes
       at a minimum
       
      optional uint64 min_bytes = 4;
    • clearMinBytes

      public Validate.StringRules.Builder clearMinBytes()
       MinBytes specifies that this field must be the specified number of bytes
       at a minimum
       
      optional uint64 min_bytes = 4;
    • hasMaxBytes

      public boolean hasMaxBytes()
       MaxBytes specifies that this field must be the specified number of bytes
       at a maximum
       
      optional uint64 max_bytes = 5;
      Specified by:
      hasMaxBytes in interface Validate.StringRulesOrBuilder
    • getMaxBytes

      public long getMaxBytes()
       MaxBytes specifies that this field must be the specified number of bytes
       at a maximum
       
      optional uint64 max_bytes = 5;
      Specified by:
      getMaxBytes in interface Validate.StringRulesOrBuilder
    • setMaxBytes

      public Validate.StringRules.Builder setMaxBytes​(long value)
       MaxBytes specifies that this field must be the specified number of bytes
       at a maximum
       
      optional uint64 max_bytes = 5;
    • clearMaxBytes

      public Validate.StringRules.Builder clearMaxBytes()
       MaxBytes specifies that this field must be the specified number of bytes
       at a maximum
       
      optional uint64 max_bytes = 5;
    • hasPattern

      public boolean hasPattern()
       Pattern specifes that this field must match against the specified
       regular expression (RE2 syntax). The included expression should elide
       any delimiters.
       
      optional string pattern = 6;
      Specified by:
      hasPattern in interface Validate.StringRulesOrBuilder
    • getPattern

      public String getPattern()
       Pattern specifes that this field must match against the specified
       regular expression (RE2 syntax). The included expression should elide
       any delimiters.
       
      optional string pattern = 6;
      Specified by:
      getPattern in interface Validate.StringRulesOrBuilder
    • getPatternBytes

      public com.google.protobuf.ByteString getPatternBytes()
       Pattern specifes that this field must match against the specified
       regular expression (RE2 syntax). The included expression should elide
       any delimiters.
       
      optional string pattern = 6;
      Specified by:
      getPatternBytes in interface Validate.StringRulesOrBuilder
    • setPattern

      public Validate.StringRules.Builder setPattern​(String value)
       Pattern specifes that this field must match against the specified
       regular expression (RE2 syntax). The included expression should elide
       any delimiters.
       
      optional string pattern = 6;
    • clearPattern

      public Validate.StringRules.Builder clearPattern()
       Pattern specifes that this field must match against the specified
       regular expression (RE2 syntax). The included expression should elide
       any delimiters.
       
      optional string pattern = 6;
    • setPatternBytes

      public Validate.StringRules.Builder setPatternBytes​(com.google.protobuf.ByteString value)
       Pattern specifes that this field must match against the specified
       regular expression (RE2 syntax). The included expression should elide
       any delimiters.
       
      optional string pattern = 6;
    • hasPrefix

      public boolean hasPrefix()
       Prefix specifies that this field must have the specified substring at
       the beginning of the string.
       
      optional string prefix = 7;
      Specified by:
      hasPrefix in interface Validate.StringRulesOrBuilder
    • getPrefix

      public String getPrefix()
       Prefix specifies that this field must have the specified substring at
       the beginning of the string.
       
      optional string prefix = 7;
      Specified by:
      getPrefix in interface Validate.StringRulesOrBuilder
    • getPrefixBytes

      public com.google.protobuf.ByteString getPrefixBytes()
       Prefix specifies that this field must have the specified substring at
       the beginning of the string.
       
      optional string prefix = 7;
      Specified by:
      getPrefixBytes in interface Validate.StringRulesOrBuilder
    • setPrefix

      public Validate.StringRules.Builder setPrefix​(String value)
       Prefix specifies that this field must have the specified substring at
       the beginning of the string.
       
      optional string prefix = 7;
    • clearPrefix

      public Validate.StringRules.Builder clearPrefix()
       Prefix specifies that this field must have the specified substring at
       the beginning of the string.
       
      optional string prefix = 7;
    • setPrefixBytes

      public Validate.StringRules.Builder setPrefixBytes​(com.google.protobuf.ByteString value)
       Prefix specifies that this field must have the specified substring at
       the beginning of the string.
       
      optional string prefix = 7;
    • hasSuffix

      public boolean hasSuffix()
       Suffix specifies that this field must have the specified substring at
       the end of the string.
       
      optional string suffix = 8;
      Specified by:
      hasSuffix in interface Validate.StringRulesOrBuilder
    • getSuffix

      public String getSuffix()
       Suffix specifies that this field must have the specified substring at
       the end of the string.
       
      optional string suffix = 8;
      Specified by:
      getSuffix in interface Validate.StringRulesOrBuilder
    • getSuffixBytes

      public com.google.protobuf.ByteString getSuffixBytes()
       Suffix specifies that this field must have the specified substring at
       the end of the string.
       
      optional string suffix = 8;
      Specified by:
      getSuffixBytes in interface Validate.StringRulesOrBuilder
    • setSuffix

      public Validate.StringRules.Builder setSuffix​(String value)
       Suffix specifies that this field must have the specified substring at
       the end of the string.
       
      optional string suffix = 8;
    • clearSuffix

      public Validate.StringRules.Builder clearSuffix()
       Suffix specifies that this field must have the specified substring at
       the end of the string.
       
      optional string suffix = 8;
    • setSuffixBytes

      public Validate.StringRules.Builder setSuffixBytes​(com.google.protobuf.ByteString value)
       Suffix specifies that this field must have the specified substring at
       the end of the string.
       
      optional string suffix = 8;
    • hasContains

      public boolean hasContains()
       Contains specifies that this field must have the specified substring
       anywhere in the string.
       
      optional string contains = 9;
      Specified by:
      hasContains in interface Validate.StringRulesOrBuilder
    • getContains

      public String getContains()
       Contains specifies that this field must have the specified substring
       anywhere in the string.
       
      optional string contains = 9;
      Specified by:
      getContains in interface Validate.StringRulesOrBuilder
    • getContainsBytes

      public com.google.protobuf.ByteString getContainsBytes()
       Contains specifies that this field must have the specified substring
       anywhere in the string.
       
      optional string contains = 9;
      Specified by:
      getContainsBytes in interface Validate.StringRulesOrBuilder
    • setContains

      public Validate.StringRules.Builder setContains​(String value)
       Contains specifies that this field must have the specified substring
       anywhere in the string.
       
      optional string contains = 9;
    • clearContains

      public Validate.StringRules.Builder clearContains()
       Contains specifies that this field must have the specified substring
       anywhere in the string.
       
      optional string contains = 9;
    • setContainsBytes

      public Validate.StringRules.Builder setContainsBytes​(com.google.protobuf.ByteString value)
       Contains specifies that this field must have the specified substring
       anywhere in the string.
       
      optional string contains = 9;
    • hasNotContains

      public boolean hasNotContains()
       NotContains specifies that this field cannot have the specified substring
       anywhere in the string.
       
      optional string not_contains = 23;
      Specified by:
      hasNotContains in interface Validate.StringRulesOrBuilder
    • getNotContains

      public String getNotContains()
       NotContains specifies that this field cannot have the specified substring
       anywhere in the string.
       
      optional string not_contains = 23;
      Specified by:
      getNotContains in interface Validate.StringRulesOrBuilder
    • getNotContainsBytes

      public com.google.protobuf.ByteString getNotContainsBytes()
       NotContains specifies that this field cannot have the specified substring
       anywhere in the string.
       
      optional string not_contains = 23;
      Specified by:
      getNotContainsBytes in interface Validate.StringRulesOrBuilder
    • setNotContains

      public Validate.StringRules.Builder setNotContains​(String value)
       NotContains specifies that this field cannot have the specified substring
       anywhere in the string.
       
      optional string not_contains = 23;
    • clearNotContains

      public Validate.StringRules.Builder clearNotContains()
       NotContains specifies that this field cannot have the specified substring
       anywhere in the string.
       
      optional string not_contains = 23;
    • setNotContainsBytes

      public Validate.StringRules.Builder setNotContainsBytes​(com.google.protobuf.ByteString value)
       NotContains specifies that this field cannot have the specified substring
       anywhere in the string.
       
      optional string not_contains = 23;
    • getInList

      public com.google.protobuf.ProtocolStringList getInList()
       In specifies that this field must be equal to one of the specified
       values
       
      repeated string in = 10;
      Specified by:
      getInList in interface Validate.StringRulesOrBuilder
    • getInCount

      public int getInCount()
       In specifies that this field must be equal to one of the specified
       values
       
      repeated string in = 10;
      Specified by:
      getInCount in interface Validate.StringRulesOrBuilder
    • getIn

      public String getIn​(int index)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated string in = 10;
      Specified by:
      getIn in interface Validate.StringRulesOrBuilder
    • getInBytes

      public com.google.protobuf.ByteString getInBytes​(int index)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated string in = 10;
      Specified by:
      getInBytes in interface Validate.StringRulesOrBuilder
    • setIn

      public Validate.StringRules.Builder setIn​(int index, String value)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated string in = 10;
    • addIn

      public Validate.StringRules.Builder addIn​(String value)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated string in = 10;
    • addAllIn

      public Validate.StringRules.Builder addAllIn​(Iterable<String> values)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated string in = 10;
    • clearIn

      public Validate.StringRules.Builder clearIn()
       In specifies that this field must be equal to one of the specified
       values
       
      repeated string in = 10;
    • addInBytes

      public Validate.StringRules.Builder addInBytes​(com.google.protobuf.ByteString value)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated string in = 10;
    • getNotInList

      public com.google.protobuf.ProtocolStringList getNotInList()
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated string not_in = 11;
      Specified by:
      getNotInList in interface Validate.StringRulesOrBuilder
    • getNotInCount

      public int getNotInCount()
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated string not_in = 11;
      Specified by:
      getNotInCount in interface Validate.StringRulesOrBuilder
    • getNotIn

      public String getNotIn​(int index)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated string not_in = 11;
      Specified by:
      getNotIn in interface Validate.StringRulesOrBuilder
    • getNotInBytes

      public com.google.protobuf.ByteString getNotInBytes​(int index)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated string not_in = 11;
      Specified by:
      getNotInBytes in interface Validate.StringRulesOrBuilder
    • setNotIn

      public Validate.StringRules.Builder setNotIn​(int index, String value)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated string not_in = 11;
    • addNotIn

      public Validate.StringRules.Builder addNotIn​(String value)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated string not_in = 11;
    • addAllNotIn

      public Validate.StringRules.Builder addAllNotIn​(Iterable<String> values)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated string not_in = 11;
    • clearNotIn

      public Validate.StringRules.Builder clearNotIn()
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated string not_in = 11;
    • addNotInBytes

      public Validate.StringRules.Builder addNotInBytes​(com.google.protobuf.ByteString value)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated string not_in = 11;
    • hasEmail

      public boolean hasEmail()
       Email specifies that the field must be a valid email address as
       defined by RFC 5322
       
      optional bool email = 12;
      Specified by:
      hasEmail in interface Validate.StringRulesOrBuilder
    • getEmail

      public boolean getEmail()
       Email specifies that the field must be a valid email address as
       defined by RFC 5322
       
      optional bool email = 12;
      Specified by:
      getEmail in interface Validate.StringRulesOrBuilder
    • setEmail

      public Validate.StringRules.Builder setEmail​(boolean value)
       Email specifies that the field must be a valid email address as
       defined by RFC 5322
       
      optional bool email = 12;
    • clearEmail

      public Validate.StringRules.Builder clearEmail()
       Email specifies that the field must be a valid email address as
       defined by RFC 5322
       
      optional bool email = 12;
    • hasHostname

      public boolean hasHostname()
       Hostname specifies that the field must be a valid hostname as
       defined by RFC 1034. This constraint does not support
       internationalized domain names (IDNs).
       
      optional bool hostname = 13;
      Specified by:
      hasHostname in interface Validate.StringRulesOrBuilder
    • getHostname

      public boolean getHostname()
       Hostname specifies that the field must be a valid hostname as
       defined by RFC 1034. This constraint does not support
       internationalized domain names (IDNs).
       
      optional bool hostname = 13;
      Specified by:
      getHostname in interface Validate.StringRulesOrBuilder
    • setHostname

      public Validate.StringRules.Builder setHostname​(boolean value)
       Hostname specifies that the field must be a valid hostname as
       defined by RFC 1034. This constraint does not support
       internationalized domain names (IDNs).
       
      optional bool hostname = 13;
    • clearHostname

      public Validate.StringRules.Builder clearHostname()
       Hostname specifies that the field must be a valid hostname as
       defined by RFC 1034. This constraint does not support
       internationalized domain names (IDNs).
       
      optional bool hostname = 13;
    • hasIp

      public boolean hasIp()
       Ip specifies that the field must be a valid IP (v4 or v6) address.
       Valid IPv6 addresses should not include surrounding square brackets.
       
      optional bool ip = 14;
      Specified by:
      hasIp in interface Validate.StringRulesOrBuilder
    • getIp

      public boolean getIp()
       Ip specifies that the field must be a valid IP (v4 or v6) address.
       Valid IPv6 addresses should not include surrounding square brackets.
       
      optional bool ip = 14;
      Specified by:
      getIp in interface Validate.StringRulesOrBuilder
    • setIp

      public Validate.StringRules.Builder setIp​(boolean value)
       Ip specifies that the field must be a valid IP (v4 or v6) address.
       Valid IPv6 addresses should not include surrounding square brackets.
       
      optional bool ip = 14;
    • clearIp

      public Validate.StringRules.Builder clearIp()
       Ip specifies that the field must be a valid IP (v4 or v6) address.
       Valid IPv6 addresses should not include surrounding square brackets.
       
      optional bool ip = 14;
    • hasIpv4

      public boolean hasIpv4()
       Ipv4 specifies that the field must be a valid IPv4 address.
       
      optional bool ipv4 = 15;
      Specified by:
      hasIpv4 in interface Validate.StringRulesOrBuilder
    • getIpv4

      public boolean getIpv4()
       Ipv4 specifies that the field must be a valid IPv4 address.
       
      optional bool ipv4 = 15;
      Specified by:
      getIpv4 in interface Validate.StringRulesOrBuilder
    • setIpv4

      public Validate.StringRules.Builder setIpv4​(boolean value)
       Ipv4 specifies that the field must be a valid IPv4 address.
       
      optional bool ipv4 = 15;
    • clearIpv4

      public Validate.StringRules.Builder clearIpv4()
       Ipv4 specifies that the field must be a valid IPv4 address.
       
      optional bool ipv4 = 15;
    • hasIpv6

      public boolean hasIpv6()
       Ipv6 specifies that the field must be a valid IPv6 address. Valid
       IPv6 addresses should not include surrounding square brackets.
       
      optional bool ipv6 = 16;
      Specified by:
      hasIpv6 in interface Validate.StringRulesOrBuilder
    • getIpv6

      public boolean getIpv6()
       Ipv6 specifies that the field must be a valid IPv6 address. Valid
       IPv6 addresses should not include surrounding square brackets.
       
      optional bool ipv6 = 16;
      Specified by:
      getIpv6 in interface Validate.StringRulesOrBuilder
    • setIpv6

      public Validate.StringRules.Builder setIpv6​(boolean value)
       Ipv6 specifies that the field must be a valid IPv6 address. Valid
       IPv6 addresses should not include surrounding square brackets.
       
      optional bool ipv6 = 16;
    • clearIpv6

      public Validate.StringRules.Builder clearIpv6()
       Ipv6 specifies that the field must be a valid IPv6 address. Valid
       IPv6 addresses should not include surrounding square brackets.
       
      optional bool ipv6 = 16;
    • hasUri

      public boolean hasUri()
       Uri specifies that the field must be a valid, absolute URI as defined
       by RFC 3986
       
      optional bool uri = 17;
      Specified by:
      hasUri in interface Validate.StringRulesOrBuilder
    • getUri

      public boolean getUri()
       Uri specifies that the field must be a valid, absolute URI as defined
       by RFC 3986
       
      optional bool uri = 17;
      Specified by:
      getUri in interface Validate.StringRulesOrBuilder
    • setUri

      public Validate.StringRules.Builder setUri​(boolean value)
       Uri specifies that the field must be a valid, absolute URI as defined
       by RFC 3986
       
      optional bool uri = 17;
    • clearUri

      public Validate.StringRules.Builder clearUri()
       Uri specifies that the field must be a valid, absolute URI as defined
       by RFC 3986
       
      optional bool uri = 17;
    • hasUriRef

      public boolean hasUriRef()
       UriRef specifies that the field must be a valid URI as defined by RFC
       3986 and may be relative or absolute.
       
      optional bool uri_ref = 18;
      Specified by:
      hasUriRef in interface Validate.StringRulesOrBuilder
    • getUriRef

      public boolean getUriRef()
       UriRef specifies that the field must be a valid URI as defined by RFC
       3986 and may be relative or absolute.
       
      optional bool uri_ref = 18;
      Specified by:
      getUriRef in interface Validate.StringRulesOrBuilder
    • setUriRef

      public Validate.StringRules.Builder setUriRef​(boolean value)
       UriRef specifies that the field must be a valid URI as defined by RFC
       3986 and may be relative or absolute.
       
      optional bool uri_ref = 18;
    • clearUriRef

      public Validate.StringRules.Builder clearUriRef()
       UriRef specifies that the field must be a valid URI as defined by RFC
       3986 and may be relative or absolute.
       
      optional bool uri_ref = 18;
    • hasAddress

      public boolean hasAddress()
       Address specifies that the field must be either a valid hostname as
       defined by RFC 1034 (which does not support internationalized domain
       names or IDNs), or it can be a valid IP (v4 or v6).
       
      optional bool address = 21;
      Specified by:
      hasAddress in interface Validate.StringRulesOrBuilder
    • getAddress

      public boolean getAddress()
       Address specifies that the field must be either a valid hostname as
       defined by RFC 1034 (which does not support internationalized domain
       names or IDNs), or it can be a valid IP (v4 or v6).
       
      optional bool address = 21;
      Specified by:
      getAddress in interface Validate.StringRulesOrBuilder
    • setAddress

      public Validate.StringRules.Builder setAddress​(boolean value)
       Address specifies that the field must be either a valid hostname as
       defined by RFC 1034 (which does not support internationalized domain
       names or IDNs), or it can be a valid IP (v4 or v6).
       
      optional bool address = 21;
    • clearAddress

      public Validate.StringRules.Builder clearAddress()
       Address specifies that the field must be either a valid hostname as
       defined by RFC 1034 (which does not support internationalized domain
       names or IDNs), or it can be a valid IP (v4 or v6).
       
      optional bool address = 21;
    • hasUuid

      public boolean hasUuid()
       Uuid specifies that the field must be a valid UUID as defined by
       RFC 4122
       
      optional bool uuid = 22;
      Specified by:
      hasUuid in interface Validate.StringRulesOrBuilder
    • getUuid

      public boolean getUuid()
       Uuid specifies that the field must be a valid UUID as defined by
       RFC 4122
       
      optional bool uuid = 22;
      Specified by:
      getUuid in interface Validate.StringRulesOrBuilder
    • setUuid

      public Validate.StringRules.Builder setUuid​(boolean value)
       Uuid specifies that the field must be a valid UUID as defined by
       RFC 4122
       
      optional bool uuid = 22;
    • clearUuid

      public Validate.StringRules.Builder clearUuid()
       Uuid specifies that the field must be a valid UUID as defined by
       RFC 4122
       
      optional bool uuid = 22;
    • hasWellKnownRegex

      public boolean hasWellKnownRegex()
       WellKnownRegex specifies a common well known pattern defined as a regex.
       
      optional .validate.KnownRegex well_known_regex = 24;
      Specified by:
      hasWellKnownRegex in interface Validate.StringRulesOrBuilder
    • getWellKnownRegex

      public Validate.KnownRegex getWellKnownRegex()
       WellKnownRegex specifies a common well known pattern defined as a regex.
       
      optional .validate.KnownRegex well_known_regex = 24;
      Specified by:
      getWellKnownRegex in interface Validate.StringRulesOrBuilder
    • setWellKnownRegex

      public Validate.StringRules.Builder setWellKnownRegex​(Validate.KnownRegex value)
       WellKnownRegex specifies a common well known pattern defined as a regex.
       
      optional .validate.KnownRegex well_known_regex = 24;
    • clearWellKnownRegex

      public Validate.StringRules.Builder clearWellKnownRegex()
       WellKnownRegex specifies a common well known pattern defined as a regex.
       
      optional .validate.KnownRegex well_known_regex = 24;
    • hasStrict

      public boolean hasStrict()
       This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
       strict header validation.
       By default, this is true, and HTTP header validations are RFC-compliant.
       Setting to false will enable a looser validations that only disallows
       \r\n\0 characters, which can be used to bypass header matching rules.
       
      optional bool strict = 25 [default = true];
      Specified by:
      hasStrict in interface Validate.StringRulesOrBuilder
    • getStrict

      public boolean getStrict()
       This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
       strict header validation.
       By default, this is true, and HTTP header validations are RFC-compliant.
       Setting to false will enable a looser validations that only disallows
       \r\n\0 characters, which can be used to bypass header matching rules.
       
      optional bool strict = 25 [default = true];
      Specified by:
      getStrict in interface Validate.StringRulesOrBuilder
    • setStrict

      public Validate.StringRules.Builder setStrict​(boolean value)
       This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
       strict header validation.
       By default, this is true, and HTTP header validations are RFC-compliant.
       Setting to false will enable a looser validations that only disallows
       \r\n\0 characters, which can be used to bypass header matching rules.
       
      optional bool strict = 25 [default = true];
    • clearStrict

      public Validate.StringRules.Builder clearStrict()
       This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
       strict header validation.
       By default, this is true, and HTTP header validations are RFC-compliant.
       Setting to false will enable a looser validations that only disallows
       \r\n\0 characters, which can be used to bypass header matching rules.
       
      optional bool strict = 25 [default = true];
    • setUnknownFields

      public final Validate.StringRules.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.StringRules.Builder>
    • mergeUnknownFields

      public final Validate.StringRules.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.StringRules.Builder>