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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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>
|
Returns
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>
|
Returns
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];
Parameter
Returns
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];
Parameter
Returns
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];
Parameters
Returns
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];
Parameters
Returns
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];
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AuthorizationPolicy.Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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];
Parameter
Returns
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];
Parameter
Returns
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];
Parameters
Returns
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];
Parameters
Returns
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];
Returns
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
Returns
build()
public AuthorizationPolicy.Rule build()
Returns
buildPartial()
public AuthorizationPolicy.Rule buildPartial()
Returns
clear()
public AuthorizationPolicy.Rule.Builder clear()
Returns
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];
Returns
clearField(Descriptors.FieldDescriptor field)
public AuthorizationPolicy.Rule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AuthorizationPolicy.Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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];
Returns
clone()
public AuthorizationPolicy.Rule.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public AuthorizationPolicy.Rule getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
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];
Returns
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
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];
Returns
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
Returns
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
Returns
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
Returns
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];
Returns
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
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];
Returns
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
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AuthorizationPolicy.Rule other)
public AuthorizationPolicy.Rule.Builder mergeFrom(AuthorizationPolicy.Rule other)
Parameter
Returns
public AuthorizationPolicy.Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AuthorizationPolicy.Rule.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AuthorizationPolicy.Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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];
Parameters
Returns
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];
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AuthorizationPolicy.Rule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AuthorizationPolicy.Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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];
Parameters
Returns
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];
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final AuthorizationPolicy.Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides