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()
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>
|
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>
|
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];
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];
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];
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];
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];
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicAuthorizationPolicy.Rule.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
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];
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];
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];
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];
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];
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
|
build()
publicAuthorizationPolicy.Rulebuild()
buildPartial()
publicAuthorizationPolicy.RulebuildPartial()
clear()
publicAuthorizationPolicy.Rule.Builderclear()
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];
clearField(Descriptors.FieldDescriptor field)
publicAuthorizationPolicy.Rule.BuilderclearField(Descriptors.FieldDescriptorfield)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
publicAuthorizationPolicy.Rule.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
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];
clone()
publicAuthorizationPolicy.Rule.Builderclone()
Overrides
getDefaultInstanceForType()
publicAuthorizationPolicy.RulegetDefaultInstanceForType()
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()
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
|
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
|
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];
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];
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
|
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
|
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
|
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];
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];
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
|
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()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
mergeFrom(AuthorizationPolicy.Rule other)
publicAuthorizationPolicy.Rule.BuildermergeFrom(AuthorizationPolicy.Ruleother)
publicAuthorizationPolicy.Rule.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Overrides
mergeFrom(Message other)
publicAuthorizationPolicy.Rule.BuildermergeFrom(Messageother)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalAuthorizationPolicy.Rule.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
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
|
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
|
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
publicAuthorizationPolicy.Rule.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicAuthorizationPolicy.Rule.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
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];
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];
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalAuthorizationPolicy.Rule.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Overrides