Class AuthorizationPolicy.Rule.Builder (0.44.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.v1.AuthorizationPolicy.Rule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination>
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source>
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAuthorizationPolicy.Rule.Destination
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueAuthorizationPolicy.Rule.Destination.Builder
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueAuthorizationPolicy.Rule.Destination
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueAuthorizationPolicy.Rule.Destination.Builder
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthorizationPolicy.Rule.Destination.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AuthorizationPolicy.Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAuthorizationPolicy.Rule.Source
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueAuthorizationPolicy.Rule.Source.Builder
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueAuthorizationPolicy.Rule.Source
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueAuthorizationPolicy.Rule.Source.Builder
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthorizationPolicy.Rule.Source.Builder

build()

public AuthorizationPolicy.Rule build()
Returns
TypeDescription
AuthorizationPolicy.Rule

buildPartial()

public AuthorizationPolicy.Rule buildPartial()
Returns
TypeDescription
AuthorizationPolicy.Rule

clear()

public AuthorizationPolicy.Rule.Builder clear()
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AuthorizationPolicy.Rule.Builder

clearField(Descriptors.FieldDescriptor field)

public AuthorizationPolicy.Rule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AuthorizationPolicy.Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AuthorizationPolicy.Rule.Builder

clone()

public AuthorizationPolicy.Rule.Builder clone()
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder
Overrides

getDefaultInstanceForType()

public AuthorizationPolicy.Rule getDefaultInstanceForType()
Returns
TypeDescription
AuthorizationPolicy.Rule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

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

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.networksecurity.v1.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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

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

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AuthorizationPolicy.Rule other)

public AuthorizationPolicy.Rule.Builder mergeFrom(AuthorizationPolicy.Rule other)
Parameter
NameDescription
otherAuthorizationPolicy.Rule
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuthorizationPolicy.Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AuthorizationPolicy.Rule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizationPolicy.Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueAuthorizationPolicy.Rule.Destination
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueAuthorizationPolicy.Rule.Destination.Builder
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AuthorizationPolicy.Rule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueAuthorizationPolicy.Rule.Source
Returns
TypeDescription
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.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueAuthorizationPolicy.Rule.Source.Builder
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizationPolicy.Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder
Overrides