Class AuthorizationPolicy.Rule.Builder (0.58.0)

publicstaticfinalclass AuthorizationPolicy.Rule.BuilderextendsGeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Builder>implementsAuthorizationPolicy.RuleOrBuilder

Specification of rules.

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDestinations(Iterable<? extends AuthorizationPolicy.Rule.Destination> values)

publicAuthorizationPolicy.Rule.BuilderaddAllDestinations(Iterable<?extendsAuthorizationPolicy.Rule.Destination>values)

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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination>
Returns
Type Description
AuthorizationPolicy.Rule.Builder

addAllSources(Iterable<? extends AuthorizationPolicy.Rule.Source> values)

publicAuthorizationPolicy.Rule.BuilderaddAllSources(Iterable<?extendsAuthorizationPolicy.Rule.Source>values)

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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source>
Returns
Type Description
AuthorizationPolicy.Rule.Builder

addDestinations(AuthorizationPolicy.Rule.Destination value)

publicAuthorizationPolicy.Rule.BuilderaddDestinations(AuthorizationPolicy.Rule.Destinationvalue)

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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AuthorizationPolicy.Rule.Destination
Returns
Type Description
AuthorizationPolicy.Rule.Builder

addDestinations(AuthorizationPolicy.Rule.Destination.Builder builderForValue)

publicAuthorizationPolicy.Rule.BuilderaddDestinations(AuthorizationPolicy.Rule.Destination.BuilderbuilderForValue)

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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AuthorizationPolicy.Rule.Destination.Builder
Returns
Type Description
AuthorizationPolicy.Rule.Builder

addDestinations(int index, AuthorizationPolicy.Rule.Destination value)

publicAuthorizationPolicy.Rule.BuilderaddDestinations(intindex,AuthorizationPolicy.Rule.Destinationvalue)

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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AuthorizationPolicy.Rule.Destination
Returns
Type Description
AuthorizationPolicy.Rule.Builder

addDestinations(int index, AuthorizationPolicy.Rule.Destination.Builder builderForValue)

publicAuthorizationPolicy.Rule.BuilderaddDestinations(intindex,AuthorizationPolicy.Rule.Destination.BuilderbuilderForValue)

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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AuthorizationPolicy.Rule.Destination.Builder
Returns
Type Description
AuthorizationPolicy.Rule.Builder

addDestinationsBuilder()

publicAuthorizationPolicy.Rule.Destination.BuilderaddDestinationsBuilder()

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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthorizationPolicy.Rule.Destination.Builder

addDestinationsBuilder(int index)

publicAuthorizationPolicy.Rule.Destination.BuilderaddDestinationsBuilder(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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicAuthorizationPolicy.Rule.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

addSources(AuthorizationPolicy.Rule.Source value)

publicAuthorizationPolicy.Rule.BuilderaddSources(AuthorizationPolicy.Rule.Sourcevalue)

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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AuthorizationPolicy.Rule.Source
Returns
Type Description
AuthorizationPolicy.Rule.Builder

addSources(AuthorizationPolicy.Rule.Source.Builder builderForValue)

publicAuthorizationPolicy.Rule.BuilderaddSources(AuthorizationPolicy.Rule.Source.BuilderbuilderForValue)

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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AuthorizationPolicy.Rule.Source.Builder
Returns
Type Description
AuthorizationPolicy.Rule.Builder

addSources(int index, AuthorizationPolicy.Rule.Source value)

publicAuthorizationPolicy.Rule.BuilderaddSources(intindex,AuthorizationPolicy.Rule.Sourcevalue)

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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AuthorizationPolicy.Rule.Source
Returns
Type Description
AuthorizationPolicy.Rule.Builder

addSources(int index, AuthorizationPolicy.Rule.Source.Builder builderForValue)

publicAuthorizationPolicy.Rule.BuilderaddSources(intindex,AuthorizationPolicy.Rule.Source.BuilderbuilderForValue)

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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AuthorizationPolicy.Rule.Source.Builder
Returns
Type Description
AuthorizationPolicy.Rule.Builder

addSourcesBuilder()

publicAuthorizationPolicy.Rule.Source.BuilderaddSourcesBuilder()

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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthorizationPolicy.Rule.Source.Builder

addSourcesBuilder(int index)

publicAuthorizationPolicy.Rule.Source.BuilderaddSourcesBuilder(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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

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

build()

publicAuthorizationPolicy.Rulebuild()
Returns
Type Description
AuthorizationPolicy.Rule

buildPartial()

publicAuthorizationPolicy.RulebuildPartial()
Returns
Type Description
AuthorizationPolicy.Rule

clear()

publicAuthorizationPolicy.Rule.Builderclear()
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

clearDestinations()

publicAuthorizationPolicy.Rule.BuilderclearDestinations()

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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthorizationPolicy.Rule.Builder

clearField(Descriptors.FieldDescriptor field)

publicAuthorizationPolicy.Rule.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicAuthorizationPolicy.Rule.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

clearSources()

publicAuthorizationPolicy.Rule.BuilderclearSources()

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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthorizationPolicy.Rule.Builder

clone()

publicAuthorizationPolicy.Rule.Builderclone()
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

getDefaultInstanceForType()

publicAuthorizationPolicy.RulegetDefaultInstanceForType()
Returns
Type Description
AuthorizationPolicy.Rule

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

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

getDestinationsBuilder(int index)

publicAuthorizationPolicy.Rule.Destination.BuildergetDestinationsBuilder(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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

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

getDestinationsBuilderList()

publicList<AuthorizationPolicy.Rule.Destination.Builder>getDestinationsBuilderList()

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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

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

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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

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

getSourcesBuilder(int index)

publicAuthorizationPolicy.Rule.Source.BuildergetSourcesBuilder(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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

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

getSourcesBuilderList()

publicList<AuthorizationPolicy.Rule.Source.Builder>getSourcesBuilderList()

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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

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

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AuthorizationPolicy.Rule other)

publicAuthorizationPolicy.Rule.BuildermergeFrom(AuthorizationPolicy.Ruleother)
Parameter
Name Description
other AuthorizationPolicy.Rule
Returns
Type Description
AuthorizationPolicy.Rule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicAuthorizationPolicy.Rule.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicAuthorizationPolicy.Rule.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAuthorizationPolicy.Rule.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

removeDestinations(int index)

publicAuthorizationPolicy.Rule.BuilderremoveDestinations(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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

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

removeSources(int index)

publicAuthorizationPolicy.Rule.BuilderremoveSources(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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

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

setDestinations(int index, AuthorizationPolicy.Rule.Destination value)

publicAuthorizationPolicy.Rule.BuildersetDestinations(intindex,AuthorizationPolicy.Rule.Destinationvalue)

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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AuthorizationPolicy.Rule.Destination
Returns
Type Description
AuthorizationPolicy.Rule.Builder

setDestinations(int index, AuthorizationPolicy.Rule.Destination.Builder builderForValue)

publicAuthorizationPolicy.Rule.BuildersetDestinations(intindex,AuthorizationPolicy.Rule.Destination.BuilderbuilderForValue)

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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AuthorizationPolicy.Rule.Destination.Builder
Returns
Type Description
AuthorizationPolicy.Rule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicAuthorizationPolicy.Rule.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicAuthorizationPolicy.Rule.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

setSources(int index, AuthorizationPolicy.Rule.Source value)

publicAuthorizationPolicy.Rule.BuildersetSources(intindex,AuthorizationPolicy.Rule.Sourcevalue)

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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AuthorizationPolicy.Rule.Source
Returns
Type Description
AuthorizationPolicy.Rule.Builder

setSources(int index, AuthorizationPolicy.Rule.Source.Builder builderForValue)

publicAuthorizationPolicy.Rule.BuildersetSources(intindex,AuthorizationPolicy.Rule.Source.BuilderbuilderForValue)

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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AuthorizationPolicy.Rule.Source.Builder
Returns
Type Description
AuthorizationPolicy.Rule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalAuthorizationPolicy.Rule.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

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.