public static final class AuthorizationPolicy.Rule.Builder extends GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Builder> implements AuthorizationPolicy.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()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllDestinations(Iterable<? extends AuthorizationPolicy.Rule.Destination> values)
public AuthorizationPolicy.Rule.Builder addAllDestinations(Iterable<? extends AuthorizationPolicy.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)
public AuthorizationPolicy.Rule.Builder addAllSources(Iterable<? extends AuthorizationPolicy.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)
public AuthorizationPolicy.Rule.Builder addDestinations(AuthorizationPolicy.Rule.Destination value)
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)
public AuthorizationPolicy.Rule.Builder addDestinations(AuthorizationPolicy.Rule.Destination.Builder builderForValue)
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)
public AuthorizationPolicy.Rule.Builder addDestinations(int index, AuthorizationPolicy.Rule.Destination value)
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)
public AuthorizationPolicy.Rule.Builder addDestinations(int index, AuthorizationPolicy.Rule.Destination.Builder builderForValue)
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()
public AuthorizationPolicy.Rule.Destination.Builder addDestinationsBuilder()
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)
public AuthorizationPolicy.Rule.Destination.Builder addDestinationsBuilder(int index)
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)
public AuthorizationPolicy.Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addSources(AuthorizationPolicy.Rule.Source value)
public AuthorizationPolicy.Rule.Builder addSources(AuthorizationPolicy.Rule.Source value)
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)
public AuthorizationPolicy.Rule.Builder addSources(AuthorizationPolicy.Rule.Source.Builder builderForValue)
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)
public AuthorizationPolicy.Rule.Builder addSources(int index, AuthorizationPolicy.Rule.Source value)
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)
public AuthorizationPolicy.Rule.Builder addSources(int index, AuthorizationPolicy.Rule.Source.Builder builderForValue)
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()
public AuthorizationPolicy.Rule.Source.Builder addSourcesBuilder()
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)
public AuthorizationPolicy.Rule.Source.Builder addSourcesBuilder(int index)
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()
public AuthorizationPolicy.Rule build()
buildPartial()
public AuthorizationPolicy.Rule buildPartial()
clear()
public AuthorizationPolicy.Rule.Builder clear()
Overrides
clearDestinations()
public AuthorizationPolicy.Rule.Builder clearDestinations()
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)
public AuthorizationPolicy.Rule.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AuthorizationPolicy.Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSources()
public AuthorizationPolicy.Rule.Builder clearSources()
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()
public AuthorizationPolicy.Rule.Builder clone()
Overrides
getDefaultInstanceForType()
public AuthorizationPolicy.Rule getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getDestinations(int index)
public AuthorizationPolicy.Rule.Destination getDestinations(int index)
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)
public AuthorizationPolicy.Rule.Destination.Builder getDestinationsBuilder(int index)
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()
public List<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()
public int getDestinationsCount()
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()
public List<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)
public AuthorizationPolicy.Rule.DestinationOrBuilder getDestinationsOrBuilder(int index)
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()
public List<? extends AuthorizationPolicy.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)
public AuthorizationPolicy.Rule.Source getSources(int index)
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)
public AuthorizationPolicy.Rule.Source.Builder getSourcesBuilder(int index)
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()
public List<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()
public int getSourcesCount()
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()
public List<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)
public AuthorizationPolicy.Rule.SourceOrBuilder getSourcesOrBuilder(int index)
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()
public List<? extends AuthorizationPolicy.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()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AuthorizationPolicy.Rule other)
public AuthorizationPolicy.Rule.Builder mergeFrom(AuthorizationPolicy.Rule other)
public AuthorizationPolicy.Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AuthorizationPolicy.Rule.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AuthorizationPolicy.Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeDestinations(int index)
public AuthorizationPolicy.Rule.Builder removeDestinations(int index)
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)
public AuthorizationPolicy.Rule.Builder removeSources(int index)
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)
public AuthorizationPolicy.Rule.Builder setDestinations(int index, AuthorizationPolicy.Rule.Destination value)
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)
public AuthorizationPolicy.Rule.Builder setDestinations(int index, AuthorizationPolicy.Rule.Destination.Builder builderForValue)
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)
public AuthorizationPolicy.Rule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AuthorizationPolicy.Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSources(int index, AuthorizationPolicy.Rule.Source value)
public AuthorizationPolicy.Rule.Builder setSources(int index, AuthorizationPolicy.Rule.Source value)
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)
public AuthorizationPolicy.Rule.Builder setSources(int index, AuthorizationPolicy.Rule.Source.Builder builderForValue)
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)
public final AuthorizationPolicy.Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides