Class AuthzPolicy.AuthzRule.To.RequestOperation

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

public static final class AuthzPolicy.AuthzRule.To.RequestOperation extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

  • 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
    • 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.
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AuthzPolicy.AuthzRule.To.RequestOperation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AuthzPolicy.AuthzRule.To.RequestOperation getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AuthzPolicy.AuthzRule.To.RequestOperation> parser()
    • getParserForType

      public com.google.protobuf.Parser<AuthzPolicy.AuthzRule.To.RequestOperation> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • 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