Class AuthorizationPolicy.Rule.Builder (0.54.0)

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
Type Description
Descriptor

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
Type Description
AuthorizationPolicy.Rule.Builder

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
Type Description
AuthorizationPolicy.Rule.Builder

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
Name Description
value AuthorizationPolicy.Rule.Destination
Returns
Type Description
AuthorizationPolicy.Rule.Builder

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
Name Description
builderForValue AuthorizationPolicy.Rule.Destination.Builder
Returns
Type Description
AuthorizationPolicy.Rule.Builder

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
Name Description
index int
value AuthorizationPolicy.Rule.Destination
Returns
Type Description
AuthorizationPolicy.Rule.Builder

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
Name Description
index int
builderForValue AuthorizationPolicy.Rule.Destination.Builder
Returns
Type Description
AuthorizationPolicy.Rule.Builder

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
Type Description
AuthorizationPolicy.Rule.Destination.Builder

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
Returns
Type Description
AuthorizationPolicy.Rule.Destination.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AuthorizationPolicy.Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AuthorizationPolicy.Rule.Builder
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
Name Description
value AuthorizationPolicy.Rule.Source
Returns
Type Description
AuthorizationPolicy.Rule.Builder

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
Name Description
builderForValue AuthorizationPolicy.Rule.Source.Builder
Returns
Type Description
AuthorizationPolicy.Rule.Builder

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
Name Description
index int
value AuthorizationPolicy.Rule.Source
Returns
Type Description
AuthorizationPolicy.Rule.Builder

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
Name Description
index int
builderForValue AuthorizationPolicy.Rule.Source.Builder
Returns
Type Description
AuthorizationPolicy.Rule.Builder

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
Type Description
AuthorizationPolicy.Rule.Source.Builder

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
Returns
Type Description
AuthorizationPolicy.Rule.Source.Builder

build()

public AuthorizationPolicy.Rule build()
Returns
Type Description
AuthorizationPolicy.Rule

buildPartial()

public AuthorizationPolicy.Rule buildPartial()
Returns
Type Description
AuthorizationPolicy.Rule

clear()

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

clearField(Descriptors.FieldDescriptor field)

public AuthorizationPolicy.Rule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AuthorizationPolicy.Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AuthorizationPolicy.Rule.Builder
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
Type Description
AuthorizationPolicy.Rule.Builder

clone()

public AuthorizationPolicy.Rule.Builder clone()
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

getDefaultInstanceForType()

public AuthorizationPolicy.Rule getDefaultInstanceForType()
Returns
Type Description
AuthorizationPolicy.Rule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Returns
Type Description
AuthorizationPolicy.Rule.Destination

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
Returns
Type Description
AuthorizationPolicy.Rule.Destination.Builder

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
Type Description
List<Builder>

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];

Returns
Type Description
List<Destination>

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
Returns
Type Description
AuthorizationPolicy.Rule.DestinationOrBuilder

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
Returns
Type Description
AuthorizationPolicy.Rule.Source

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
Returns
Type Description
AuthorizationPolicy.Rule.Source.Builder

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
Type Description
List<Builder>

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];

Returns
Type Description
List<Source>

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
Returns
Type Description
AuthorizationPolicy.Rule.SourceOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AuthorizationPolicy.Rule other)

public AuthorizationPolicy.Rule.Builder mergeFrom(AuthorizationPolicy.Rule other)
Parameter
Name Description
other AuthorizationPolicy.Rule
Returns
Type Description
AuthorizationPolicy.Rule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuthorizationPolicy.Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AuthorizationPolicy.Rule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizationPolicy.Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuthorizationPolicy.Rule.Builder
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
Returns
Type Description
AuthorizationPolicy.Rule.Builder

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

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
Name Description
index int
value AuthorizationPolicy.Rule.Destination
Returns
Type Description
AuthorizationPolicy.Rule.Builder

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
Name Description
index int
builderForValue AuthorizationPolicy.Rule.Destination.Builder
Returns
Type Description
AuthorizationPolicy.Rule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AuthorizationPolicy.Rule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides

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

public AuthorizationPolicy.Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AuthorizationPolicy.Rule.Builder
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
Name Description
index int
value AuthorizationPolicy.Rule.Source
Returns
Type Description
AuthorizationPolicy.Rule.Builder

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
Name Description
index int
builderForValue AuthorizationPolicy.Rule.Source.Builder
Returns
Type Description
AuthorizationPolicy.Rule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizationPolicy.Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuthorizationPolicy.Rule.Builder
Overrides