Class AuthzPolicy.AuthzRule.To.RequestOperation.Builder

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

public static final class AuthzPolicy.AuthzRule.To.RequestOperation.Builder extends com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.Builder> implements AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
 Describes properties of one or more targets of a request.
 
Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation
  • 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.To.RequestOperation.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.To.RequestOperation.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.To.RequestOperation.Builder>
    • getDefaultInstanceForType

      public AuthzPolicy.AuthzRule.To.RequestOperation 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

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

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

      public AuthzPolicy.AuthzRule.To.RequestOperation.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.To.RequestOperation.Builder>
      Throws:
      IOException
    • hasHeaderSet

      public boolean hasHeaderSet()
       Optional. A list of headers to match against in http header.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasHeaderSet in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
      Returns:
      Whether the headerSet field is set.
    • getHeaderSet

       Optional. A list of headers to match against in http header.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHeaderSet in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
      Returns:
      The headerSet.
    • setHeaderSet

       Optional. A list of headers to match against in http header.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setHeaderSet

       Optional. A list of headers to match against in http header.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeHeaderSet

       Optional. A list of headers to match against in http header.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearHeaderSet

       Optional. A list of headers to match against in http header.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getHeaderSetBuilder

       Optional. A list of headers to match against in http header.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getHeaderSetOrBuilder

       Optional. A list of headers to match against in http header.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHeaderSetOrBuilder in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
    • getHostsList

      public List<AuthzPolicy.AuthzRule.StringMatch> getHostsList()
       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHostsList in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
    • getHostsCount

      public int getHostsCount()
       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHostsCount in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
    • getHosts

      public AuthzPolicy.AuthzRule.StringMatch getHosts(int index)
       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHosts in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
    • setHosts

       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setHosts

       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addHosts

       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addHosts

       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addHosts

       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addHosts

       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllHosts

       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearHosts

       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removeHosts

      public AuthzPolicy.AuthzRule.To.RequestOperation.Builder removeHosts(int index)
       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getHostsBuilder

      public AuthzPolicy.AuthzRule.StringMatch.Builder getHostsBuilder(int index)
       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getHostsOrBuilder

      public AuthzPolicy.AuthzRule.StringMatchOrBuilder getHostsOrBuilder(int index)
       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHostsOrBuilder in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
    • getHostsOrBuilderList

      public List<? extends AuthzPolicy.AuthzRule.StringMatchOrBuilder> getHostsOrBuilderList()
       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHostsOrBuilderList in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
    • addHostsBuilder

       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addHostsBuilder

      public AuthzPolicy.AuthzRule.StringMatch.Builder addHostsBuilder(int index)
       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getHostsBuilderList

      public List<AuthzPolicy.AuthzRule.StringMatch.Builder> getHostsBuilderList()
       Optional. A list of HTTP Hosts to match against. The match can be one
       of exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       hosts per Authorization Policy.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getPathsList

      public List<AuthzPolicy.AuthzRule.StringMatch> getPathsList()
       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPathsList in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
    • getPathsCount

      public int getPathsCount()
       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPathsCount in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
    • getPaths

      public AuthzPolicy.AuthzRule.StringMatch getPaths(int index)
       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPaths in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
    • setPaths

       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setPaths

       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addPaths

       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addPaths

       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addPaths

       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addPaths

       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addAllPaths

       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearPaths

       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
    • removePaths

      public AuthzPolicy.AuthzRule.To.RequestOperation.Builder removePaths(int index)
       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getPathsBuilder

      public AuthzPolicy.AuthzRule.StringMatch.Builder getPathsBuilder(int index)
       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getPathsOrBuilder

      public AuthzPolicy.AuthzRule.StringMatchOrBuilder getPathsOrBuilder(int index)
       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPathsOrBuilder in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
    • getPathsOrBuilderList

      public List<? extends AuthzPolicy.AuthzRule.StringMatchOrBuilder> getPathsOrBuilderList()
       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPathsOrBuilderList in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
    • addPathsBuilder

       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addPathsBuilder

      public AuthzPolicy.AuthzRule.StringMatch.Builder addPathsBuilder(int index)
       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getPathsBuilderList

      public List<AuthzPolicy.AuthzRule.StringMatch.Builder> getPathsBuilderList()
       Optional. A list of paths to match against. The match can be one of
       exact, prefix, suffix, or contains (substring match). Matches are
       always case sensitive unless the ignoreCase is set. Limited to 10
       paths per Authorization Policy.
       Note that this path match includes the query parameters. For gRPC
       services, this should be a fully-qualified name of the form
       /package.service/method.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getMethodsList

      public com.google.protobuf.ProtocolStringList getMethodsList()
       Optional. A list of HTTP methods to match against. Each entry must be
       a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
       OPTIONS). It only allows exact match and is always case sensitive.
       Limited to 10 methods per Authorization Policy.
       
      repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMethodsList in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
      Returns:
      A list containing the methods.
    • getMethodsCount

      public int getMethodsCount()
       Optional. A list of HTTP methods to match against. Each entry must be
       a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
       OPTIONS). It only allows exact match and is always case sensitive.
       Limited to 10 methods per Authorization Policy.
       
      repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMethodsCount in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
      Returns:
      The count of methods.
    • getMethods

      public String getMethods(int index)
       Optional. A list of HTTP methods to match against. Each entry must be
       a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
       OPTIONS). It only allows exact match and is always case sensitive.
       Limited to 10 methods per Authorization Policy.
       
      repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMethods in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The methods at the given index.
    • getMethodsBytes

      public com.google.protobuf.ByteString getMethodsBytes(int index)
       Optional. A list of HTTP methods to match against. Each entry must be
       a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
       OPTIONS). It only allows exact match and is always case sensitive.
       Limited to 10 methods per Authorization Policy.
       
      repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMethodsBytes in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the methods at the given index.
    • setMethods

      public AuthzPolicy.AuthzRule.To.RequestOperation.Builder setMethods(int index, String value)
       Optional. A list of HTTP methods to match against. Each entry must be
       a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
       OPTIONS). It only allows exact match and is always case sensitive.
       Limited to 10 methods per Authorization Policy.
       
      repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The methods to set.
      Returns:
      This builder for chaining.
    • addMethods

       Optional. A list of HTTP methods to match against. Each entry must be
       a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
       OPTIONS). It only allows exact match and is always case sensitive.
       Limited to 10 methods per Authorization Policy.
       
      repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The methods to add.
      Returns:
      This builder for chaining.
    • addAllMethods

       Optional. A list of HTTP methods to match against. Each entry must be
       a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
       OPTIONS). It only allows exact match and is always case sensitive.
       Limited to 10 methods per Authorization Policy.
       
      repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The methods to add.
      Returns:
      This builder for chaining.
    • clearMethods

       Optional. A list of HTTP methods to match against. Each entry must be
       a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
       OPTIONS). It only allows exact match and is always case sensitive.
       Limited to 10 methods per Authorization Policy.
       
      repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addMethodsBytes

      public AuthzPolicy.AuthzRule.To.RequestOperation.Builder addMethodsBytes(com.google.protobuf.ByteString value)
       Optional. A list of HTTP methods to match against. Each entry must be
       a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
       OPTIONS). It only allows exact match and is always case sensitive.
       Limited to 10 methods per Authorization Policy.
       
      repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the methods to add.
      Returns:
      This builder for chaining.
    • hasMcp

      public boolean hasMcp()
       Optional. Defines the MCP protocol attributes to match on. If the MCP
       payload in the request body cannot be successfully parsed, the
       request will be denied. This field can be set only for AuthzPolicies
       targeting AgentGateway resources.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMcp in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
      Returns:
      Whether the mcp field is set.
    • getMcp

       Optional. Defines the MCP protocol attributes to match on. If the MCP
       payload in the request body cannot be successfully parsed, the
       request will be denied. This field can be set only for AuthzPolicies
       targeting AgentGateway resources.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMcp in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder
      Returns:
      The mcp.
    • setMcp

       Optional. Defines the MCP protocol attributes to match on. If the MCP
       payload in the request body cannot be successfully parsed, the
       request will be denied. This field can be set only for AuthzPolicies
       targeting AgentGateway resources.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setMcp

       Optional. Defines the MCP protocol attributes to match on. If the MCP
       payload in the request body cannot be successfully parsed, the
       request will be denied. This field can be set only for AuthzPolicies
       targeting AgentGateway resources.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeMcp

       Optional. Defines the MCP protocol attributes to match on. If the MCP
       payload in the request body cannot be successfully parsed, the
       request will be denied. This field can be set only for AuthzPolicies
       targeting AgentGateway resources.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearMcp

       Optional. Defines the MCP protocol attributes to match on. If the MCP
       payload in the request body cannot be successfully parsed, the
       request will be denied. This field can be set only for AuthzPolicies
       targeting AgentGateway resources.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getMcpBuilder

       Optional. Defines the MCP protocol attributes to match on. If the MCP
       payload in the request body cannot be successfully parsed, the
       request will be denied. This field can be set only for AuthzPolicies
       targeting AgentGateway resources.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getMcpOrBuilder

       Optional. Defines the MCP protocol attributes to match on. If the MCP
       payload in the request body cannot be successfully parsed, the
       request will be denied. This field can be set only for AuthzPolicies
       targeting AgentGateway resources.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMcpOrBuilder in interface AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder