Class AuthzPolicy.AuthzRule.StringMatch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.StringMatch.Builder>
com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder
All Implemented Interfaces:
AuthzPolicy.AuthzRule.StringMatchOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AuthzPolicy.AuthzRule.StringMatch

public static final class AuthzPolicy.AuthzRule.StringMatch.Builder extends com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.StringMatch.Builder> implements AuthzPolicy.AuthzRule.StringMatchOrBuilder
 Determines how a string value should be matched.
 
Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.StringMatch.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.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.StringMatch.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.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.StringMatch.Builder>
    • getDefaultInstanceForType

      public AuthzPolicy.AuthzRule.StringMatch getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AuthzPolicy.AuthzRule.StringMatch buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AuthzPolicy.AuthzRule.StringMatch.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<AuthzPolicy.AuthzRule.StringMatch.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.StringMatch.Builder>
    • mergeFrom

      public AuthzPolicy.AuthzRule.StringMatch.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<AuthzPolicy.AuthzRule.StringMatch.Builder>
      Throws:
      IOException
    • getMatchPatternCase

      Specified by:
      getMatchPatternCase in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
    • clearMatchPattern

      public AuthzPolicy.AuthzRule.StringMatch.Builder clearMatchPattern()
    • hasExact

      public boolean hasExact()
       The input string must match exactly the string specified here.
      
       Examples:
      
       * ``abc`` only matches the value ``abc``.
       
      string exact = 1;
      Specified by:
      hasExact in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
      Returns:
      Whether the exact field is set.
    • getExact

      public String getExact()
       The input string must match exactly the string specified here.
      
       Examples:
      
       * ``abc`` only matches the value ``abc``.
       
      string exact = 1;
      Specified by:
      getExact in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
      Returns:
      The exact.
    • getExactBytes

      public com.google.protobuf.ByteString getExactBytes()
       The input string must match exactly the string specified here.
      
       Examples:
      
       * ``abc`` only matches the value ``abc``.
       
      string exact = 1;
      Specified by:
      getExactBytes in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
      Returns:
      The bytes for exact.
    • setExact

       The input string must match exactly the string specified here.
      
       Examples:
      
       * ``abc`` only matches the value ``abc``.
       
      string exact = 1;
      Parameters:
      value - The exact to set.
      Returns:
      This builder for chaining.
    • clearExact

       The input string must match exactly the string specified here.
      
       Examples:
      
       * ``abc`` only matches the value ``abc``.
       
      string exact = 1;
      Returns:
      This builder for chaining.
    • setExactBytes

      public AuthzPolicy.AuthzRule.StringMatch.Builder setExactBytes(com.google.protobuf.ByteString value)
       The input string must match exactly the string specified here.
      
       Examples:
      
       * ``abc`` only matches the value ``abc``.
       
      string exact = 1;
      Parameters:
      value - The bytes for exact to set.
      Returns:
      This builder for chaining.
    • hasPrefix

      public boolean hasPrefix()
       The input string must have the prefix specified here.
       Note: empty prefix is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``abc.xyz``
       
      string prefix = 2;
      Specified by:
      hasPrefix in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
      Returns:
      Whether the prefix field is set.
    • getPrefix

      public String getPrefix()
       The input string must have the prefix specified here.
       Note: empty prefix is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``abc.xyz``
       
      string prefix = 2;
      Specified by:
      getPrefix in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
      Returns:
      The prefix.
    • getPrefixBytes

      public com.google.protobuf.ByteString getPrefixBytes()
       The input string must have the prefix specified here.
       Note: empty prefix is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``abc.xyz``
       
      string prefix = 2;
      Specified by:
      getPrefixBytes in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
      Returns:
      The bytes for prefix.
    • setPrefix

       The input string must have the prefix specified here.
       Note: empty prefix is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``abc.xyz``
       
      string prefix = 2;
      Parameters:
      value - The prefix to set.
      Returns:
      This builder for chaining.
    • clearPrefix

       The input string must have the prefix specified here.
       Note: empty prefix is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``abc.xyz``
       
      string prefix = 2;
      Returns:
      This builder for chaining.
    • setPrefixBytes

      public AuthzPolicy.AuthzRule.StringMatch.Builder setPrefixBytes(com.google.protobuf.ByteString value)
       The input string must have the prefix specified here.
       Note: empty prefix is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``abc.xyz``
       
      string prefix = 2;
      Parameters:
      value - The bytes for prefix to set.
      Returns:
      This builder for chaining.
    • hasSuffix

      public boolean hasSuffix()
       The input string must have the suffix specified here.
       Note: empty prefix is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``xyz.abc``
       
      string suffix = 3;
      Specified by:
      hasSuffix in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
      Returns:
      Whether the suffix field is set.
    • getSuffix

      public String getSuffix()
       The input string must have the suffix specified here.
       Note: empty prefix is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``xyz.abc``
       
      string suffix = 3;
      Specified by:
      getSuffix in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
      Returns:
      The suffix.
    • getSuffixBytes

      public com.google.protobuf.ByteString getSuffixBytes()
       The input string must have the suffix specified here.
       Note: empty prefix is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``xyz.abc``
       
      string suffix = 3;
      Specified by:
      getSuffixBytes in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
      Returns:
      The bytes for suffix.
    • setSuffix

       The input string must have the suffix specified here.
       Note: empty prefix is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``xyz.abc``
       
      string suffix = 3;
      Parameters:
      value - The suffix to set.
      Returns:
      This builder for chaining.
    • clearSuffix

       The input string must have the suffix specified here.
       Note: empty prefix is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``xyz.abc``
       
      string suffix = 3;
      Returns:
      This builder for chaining.
    • setSuffixBytes

      public AuthzPolicy.AuthzRule.StringMatch.Builder setSuffixBytes(com.google.protobuf.ByteString value)
       The input string must have the suffix specified here.
       Note: empty prefix is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``xyz.abc``
       
      string suffix = 3;
      Parameters:
      value - The bytes for suffix to set.
      Returns:
      This builder for chaining.
    • hasContains

      public boolean hasContains()
       The input string must have the substring specified here.
       Note: empty contains match is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``xyz.abc.def``
       
      string contains = 4;
      Specified by:
      hasContains in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
      Returns:
      Whether the contains field is set.
    • getContains

      public String getContains()
       The input string must have the substring specified here.
       Note: empty contains match is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``xyz.abc.def``
       
      string contains = 4;
      Specified by:
      getContains in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
      Returns:
      The contains.
    • getContainsBytes

      public com.google.protobuf.ByteString getContainsBytes()
       The input string must have the substring specified here.
       Note: empty contains match is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``xyz.abc.def``
       
      string contains = 4;
      Specified by:
      getContainsBytes in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
      Returns:
      The bytes for contains.
    • setContains

       The input string must have the substring specified here.
       Note: empty contains match is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``xyz.abc.def``
       
      string contains = 4;
      Parameters:
      value - The contains to set.
      Returns:
      This builder for chaining.
    • clearContains

       The input string must have the substring specified here.
       Note: empty contains match is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``xyz.abc.def``
       
      string contains = 4;
      Returns:
      This builder for chaining.
    • setContainsBytes

      public AuthzPolicy.AuthzRule.StringMatch.Builder setContainsBytes(com.google.protobuf.ByteString value)
       The input string must have the substring specified here.
       Note: empty contains match is not allowed, please use regex instead.
      
       Examples:
      
       * ``abc`` matches the value ``xyz.abc.def``
       
      string contains = 4;
      Parameters:
      value - The bytes for contains to set.
      Returns:
      This builder for chaining.
    • getIgnoreCase

      public boolean getIgnoreCase()
       If true, indicates the exact/prefix/suffix/contains matching should be
       case insensitive. For example, the matcher ``data`` will match both
       input string ``Data`` and ``data`` if set to true.
       
      bool ignore_case = 5;
      Specified by:
      getIgnoreCase in interface AuthzPolicy.AuthzRule.StringMatchOrBuilder
      Returns:
      The ignoreCase.
    • setIgnoreCase

      public AuthzPolicy.AuthzRule.StringMatch.Builder setIgnoreCase(boolean value)
       If true, indicates the exact/prefix/suffix/contains matching should be
       case insensitive. For example, the matcher ``data`` will match both
       input string ``Data`` and ``data`` if set to true.
       
      bool ignore_case = 5;
      Parameters:
      value - The ignoreCase to set.
      Returns:
      This builder for chaining.
    • clearIgnoreCase

       If true, indicates the exact/prefix/suffix/contains matching should be
       case insensitive. For example, the matcher ``data`` will match both
       input string ``Data`` and ``data`` if set to true.
       
      bool ignore_case = 5;
      Returns:
      This builder for chaining.