Class AuthorizationPolicy.Rule (0.79.0)

publicstaticfinalclass AuthorizationPolicy.RuleextendsGeneratedMessageV3implementsAuthorizationPolicy.RuleOrBuilder

Specification of rules.

Protobuf type google.cloud.networksecurity.v1.AuthorizationPolicy.Rule

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

DESTINATIONS_FIELD_NUMBER

publicstaticfinalintDESTINATIONS_FIELD_NUMBER
Field Value
Type Description
int

SOURCES_FIELD_NUMBER

publicstaticfinalintSOURCES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticAuthorizationPolicy.RulegetDefaultInstance()
Returns
Type Description
AuthorizationPolicy.Rule

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

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

newBuilder(AuthorizationPolicy.Rule prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

publicAuthorizationPolicy.RulegetDefaultInstanceForType()
Returns
Type Description
AuthorizationPolicy.Rule

getDestinations(int index)

publicAuthorizationPolicy.Rule.DestinationgetDestinations(intindex)

Optional. List of attributes for the traffic destination. All of the destinations must match. A destination is a match if a request matches all the specified hosts, ports, methods and headers. If not set, the action specified in the 'action' field will be applied without any rule checks for the destination.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthorizationPolicy.Rule.Destination

getDestinationsCount()

publicintgetDestinationsCount()

Optional. List of attributes for the traffic destination. All of the destinations must match. A destination is a match if a request matches all the specified hosts, ports, methods and headers. If not set, the action specified in the 'action' field will be applied without any rule checks for the destination.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getDestinationsList()

publicList<AuthorizationPolicy.Rule.Destination>getDestinationsList()

Optional. List of attributes for the traffic destination. All of the destinations must match. A destination is a match if a request matches all the specified hosts, ports, methods and headers. If not set, the action specified in the 'action' field will be applied without any rule checks for the destination.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Destination>

getDestinationsOrBuilder(int index)

publicAuthorizationPolicy.Rule.DestinationOrBuildergetDestinationsOrBuilder(intindex)

Optional. List of attributes for the traffic destination. All of the destinations must match. A destination is a match if a request matches all the specified hosts, ports, methods and headers. If not set, the action specified in the 'action' field will be applied without any rule checks for the destination.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthorizationPolicy.Rule.DestinationOrBuilder

getDestinationsOrBuilderList()

publicList<?extendsAuthorizationPolicy.Rule.DestinationOrBuilder>getDestinationsOrBuilderList()

Optional. List of attributes for the traffic destination. All of the destinations must match. A destination is a match if a request matches all the specified hosts, ports, methods and headers. If not set, the action specified in the 'action' field will be applied without any rule checks for the destination.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder>

getParserForType()

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSources(int index)

publicAuthorizationPolicy.Rule.SourcegetSources(intindex)

Optional. List of attributes for the traffic source. All of the sources must match. A source is a match if both principals and ip_blocks match. If not set, the action specified in the 'action' field will be applied without any rule checks for the source.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthorizationPolicy.Rule.Source

getSourcesCount()

publicintgetSourcesCount()

Optional. List of attributes for the traffic source. All of the sources must match. A source is a match if both principals and ip_blocks match. If not set, the action specified in the 'action' field will be applied without any rule checks for the source.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSourcesList()

publicList<AuthorizationPolicy.Rule.Source>getSourcesList()

Optional. List of attributes for the traffic source. All of the sources must match. A source is a match if both principals and ip_blocks match. If not set, the action specified in the 'action' field will be applied without any rule checks for the source.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Source>

getSourcesOrBuilder(int index)

publicAuthorizationPolicy.Rule.SourceOrBuildergetSourcesOrBuilder(intindex)

Optional. List of attributes for the traffic source. All of the sources must match. A source is a match if both principals and ip_blocks match. If not set, the action specified in the 'action' field will be applied without any rule checks for the source.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthorizationPolicy.Rule.SourceOrBuilder

getSourcesOrBuilderList()

publicList<?extendsAuthorizationPolicy.Rule.SourceOrBuilder>getSourcesOrBuilderList()

Optional. List of attributes for the traffic source. All of the sources must match. A source is a match if both principals and ip_blocks match. If not set, the action specified in the 'action' field will be applied without any rule checks for the source.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder>

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.BuildernewBuilderForType()
Returns
Type Description
AuthorizationPolicy.Rule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicAuthorizationPolicy.Rule.BuildertoBuilder()
Returns
Type Description
AuthorizationPolicy.Rule.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.