Class AuthzPolicy.AuthzRule.To.RequestOperation (0.94.0)

public static final class AuthzPolicy.AuthzRule.To.RequestOperation extends 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AuthzPolicy.AuthzRule.To.RequestOperation

Static Fields

HEADER_SET_FIELD_NUMBER

public static final int HEADER_SET_FIELD_NUMBER
Field Value
Type Description
int

HOSTS_FIELD_NUMBER

public static final int HOSTS_FIELD_NUMBER
Field Value
Type Description
int

MCP_FIELD_NUMBER

public static final int MCP_FIELD_NUMBER
Field Value
Type Description
int

METHODS_FIELD_NUMBER

public static final int METHODS_FIELD_NUMBER
Field Value
Type Description
int

PATHS_FIELD_NUMBER

public static final int PATHS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AuthzPolicy.AuthzRule.To.RequestOperation getDefaultInstance()
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AuthzPolicy.AuthzRule.To.RequestOperation.Builder newBuilder()
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.Builder

newBuilder(AuthzPolicy.AuthzRule.To.RequestOperation prototype)

public static AuthzPolicy.AuthzRule.To.RequestOperation.Builder newBuilder(AuthzPolicy.AuthzRule.To.RequestOperation prototype)
Parameter
Name Description
prototype AuthzPolicy.AuthzRule.To.RequestOperation
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.Builder

parseDelimitedFrom(InputStream input)

public static AuthzPolicy.AuthzRule.To.RequestOperation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule.To.RequestOperation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule.To.RequestOperation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AuthzPolicy.AuthzRule.To.RequestOperation> parser()
Returns
Type Description
Parser<RequestOperation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AuthzPolicy.AuthzRule.To.RequestOperation getDefaultInstanceForType()
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation

getHeaderSet()

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

Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet

The headerSet.

getHeaderSetOrBuilder()

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

Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSetOrBuilder

getHosts(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch

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];

Returns
Type Description
int

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];

Returns
Type Description
List<StringMatch>

getHostsOrBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatchOrBuilder

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];

Returns
Type Description
List<? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder>

getMcp()

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

Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCP

The mcp.

getMcpOrBuilder()

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

Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder

getMethods(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The methods at the given index.

getMethodsBytes(int index)

public 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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the methods at the given index.

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];

Returns
Type Description
int

The count of methods.

getMethodsList()

public 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];

Returns
Type Description
ProtocolStringList

A list containing the methods.

getParserForType()

public Parser<AuthzPolicy.AuthzRule.To.RequestOperation> getParserForType()
Returns
Type Description
Parser<RequestOperation>
Overrides

getPaths(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch

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];

Returns
Type Description
int

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];

Returns
Type Description
List<StringMatch>

getPathsOrBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.StringMatchOrBuilder

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];

Returns
Type Description
List<? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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];

Returns
Type Description
boolean

Whether the headerSet field is set.

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];

Returns
Type Description
boolean

Whether the mcp field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AuthzPolicy.AuthzRule.To.RequestOperation.Builder newBuilderForType()
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AuthzPolicy.AuthzRule.To.RequestOperation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.Builder
Overrides

toBuilder()

public AuthzPolicy.AuthzRule.To.RequestOperation.Builder toBuilder()
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException