Class AuthorizationPolicy.Rule.Destination (0.81.0)

publicstaticfinalclass AuthorizationPolicy.Rule.DestinationextendsGeneratedMessageV3implementsAuthorizationPolicy.Rule.DestinationOrBuilder

Specification of traffic destination attributes.

Protobuf type google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AuthorizationPolicy.Rule.Destination

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

HOSTS_FIELD_NUMBER

publicstaticfinalintHOSTS_FIELD_NUMBER
Field Value
Type Description
int

HTTP_HEADER_MATCH_FIELD_NUMBER

publicstaticfinalintHTTP_HEADER_MATCH_FIELD_NUMBER
Field Value
Type Description
int

METHODS_FIELD_NUMBER

publicstaticfinalintMETHODS_FIELD_NUMBER
Field Value
Type Description
int

PORTS_FIELD_NUMBER

publicstaticfinalintPORTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticAuthorizationPolicy.Rule.DestinationgetDefaultInstance()
Returns
Type Description
AuthorizationPolicy.Rule.Destination

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticAuthorizationPolicy.Rule.Destination.BuildernewBuilder()
Returns
Type Description
AuthorizationPolicy.Rule.Destination.Builder

newBuilder(AuthorizationPolicy.Rule.Destination prototype)

publicstaticAuthorizationPolicy.Rule.Destination.BuildernewBuilder(AuthorizationPolicy.Rule.Destinationprototype)
Parameter
Name Description
prototype AuthorizationPolicy.Rule.Destination
Returns
Type Description
AuthorizationPolicy.Rule.Destination.Builder

parseDelimitedFrom(InputStream input)

publicstaticAuthorizationPolicy.Rule.DestinationparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthorizationPolicy.Rule.Destination
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.Rule.DestinationparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Destination
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
AuthorizationPolicy.Rule.Destination
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Destination
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
AuthorizationPolicy.Rule.Destination
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Destination
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AuthorizationPolicy.Rule.Destination
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Destination
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthorizationPolicy.Rule.Destination
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Destination
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AuthorizationPolicy.Rule.Destination
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Destination
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<AuthorizationPolicy.Rule.Destination>parser()
Returns
Type Description
Parser<Destination>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicAuthorizationPolicy.Rule.DestinationgetDefaultInstanceForType()
Returns
Type Description
AuthorizationPolicy.Rule.Destination

getHosts(int index)

publicStringgetHosts(intindex)

Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.") or a suffix match (example ".myorg.com") or a presence (any) match "*".

repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The hosts at the given index.

getHostsBytes(int index)

publicByteStringgetHostsBytes(intindex)

Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.") or a suffix match (example ".myorg.com") or a presence (any) match "*".

repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the hosts at the given index.

getHostsCount()

publicintgetHostsCount()

Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.") or a suffix match (example ".myorg.com") or a presence (any) match "*".

repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of hosts.

getHostsList()

publicProtocolStringListgetHostsList()

Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.") or a suffix match (example ".myorg.com") or a presence (any) match "*".

repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the hosts.

getHttpHeaderMatch()

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatchgetHttpHeaderMatch()

Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.

.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch

The httpHeaderMatch.

getHttpHeaderMatchOrBuilder()

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuildergetHttpHeaderMatchOrBuilder()

Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.

.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder

getMethods(int index)

publicStringgetMethods(intindex)

Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.

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)

publicByteStringgetMethodsBytes(intindex)

Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.

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()

publicintgetMethodsCount()

Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.

repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of methods.

getMethodsList()

publicProtocolStringListgetMethodsList()

Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.

repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the methods.

getParserForType()

publicParser<AuthorizationPolicy.Rule.Destination>getParserForType()
Returns
Type Description
Parser<Destination>
Overrides

getPorts(int index)

publicintgetPorts(intindex)

Required. List of destination ports to match. At least one port should match.

repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The ports at the given index.

getPortsCount()

publicintgetPortsCount()

Required. List of destination ports to match. At least one port should match.

repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of ports.

getPortsList()

publicList<Integer>getPortsList()

Required. List of destination ports to match. At least one port should match.

repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Integer>

A list containing the ports.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasHttpHeaderMatch()

publicbooleanhasHttpHeaderMatch()

Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.

.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the httpHeaderMatch field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicAuthorizationPolicy.Rule.Destination.BuildernewBuilderForType()
Returns
Type Description
AuthorizationPolicy.Rule.Destination.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedAuthorizationPolicy.Rule.Destination.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AuthorizationPolicy.Rule.Destination.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicAuthorizationPolicy.Rule.Destination.BuildertoBuilder()
Returns
Type Description
AuthorizationPolicy.Rule.Destination.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.