Class AuthzPolicy.AuthzRule.From.Builder (0.94.0)

public static final class AuthzPolicy.AuthzRule.From.Builder extends GeneratedMessage.Builder<AuthzPolicy.AuthzRule.From.Builder> implements AuthzPolicy.AuthzRule.FromOrBuilder

Describes properties of one or more sources of a request.

Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNotSources(Iterable<? extends AuthzPolicy.AuthzRule.From.RequestSource> values)

public AuthzPolicy.AuthzRule.From.Builder addAllNotSources(Iterable<? extends AuthzPolicy.AuthzRule.From.RequestSource> values)

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource>
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

addAllSources(Iterable<? extends AuthzPolicy.AuthzRule.From.RequestSource> values)

public AuthzPolicy.AuthzRule.From.Builder addAllSources(Iterable<? extends AuthzPolicy.AuthzRule.From.RequestSource> values)

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource>
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

addNotSources(AuthzPolicy.AuthzRule.From.RequestSource value)

public AuthzPolicy.AuthzRule.From.Builder addNotSources(AuthzPolicy.AuthzRule.From.RequestSource value)

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AuthzPolicy.AuthzRule.From.RequestSource
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

addNotSources(AuthzPolicy.AuthzRule.From.RequestSource.Builder builderForValue)

public AuthzPolicy.AuthzRule.From.Builder addNotSources(AuthzPolicy.AuthzRule.From.RequestSource.Builder builderForValue)

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AuthzPolicy.AuthzRule.From.RequestSource.Builder
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

addNotSources(int index, AuthzPolicy.AuthzRule.From.RequestSource value)

public AuthzPolicy.AuthzRule.From.Builder addNotSources(int index, AuthzPolicy.AuthzRule.From.RequestSource value)

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AuthzPolicy.AuthzRule.From.RequestSource
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

addNotSources(int index, AuthzPolicy.AuthzRule.From.RequestSource.Builder builderForValue)

public AuthzPolicy.AuthzRule.From.Builder addNotSources(int index, AuthzPolicy.AuthzRule.From.RequestSource.Builder builderForValue)

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AuthzPolicy.AuthzRule.From.RequestSource.Builder
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

addNotSourcesBuilder()

public AuthzPolicy.AuthzRule.From.RequestSource.Builder addNotSourcesBuilder()

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthzPolicy.AuthzRule.From.RequestSource.Builder

addNotSourcesBuilder(int index)

public AuthzPolicy.AuthzRule.From.RequestSource.Builder addNotSourcesBuilder(int index)

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.From.RequestSource.Builder

addSources(AuthzPolicy.AuthzRule.From.RequestSource value)

public AuthzPolicy.AuthzRule.From.Builder addSources(AuthzPolicy.AuthzRule.From.RequestSource value)

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AuthzPolicy.AuthzRule.From.RequestSource
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

addSources(AuthzPolicy.AuthzRule.From.RequestSource.Builder builderForValue)

public AuthzPolicy.AuthzRule.From.Builder addSources(AuthzPolicy.AuthzRule.From.RequestSource.Builder builderForValue)

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AuthzPolicy.AuthzRule.From.RequestSource.Builder
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

addSources(int index, AuthzPolicy.AuthzRule.From.RequestSource value)

public AuthzPolicy.AuthzRule.From.Builder addSources(int index, AuthzPolicy.AuthzRule.From.RequestSource value)

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AuthzPolicy.AuthzRule.From.RequestSource
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

addSources(int index, AuthzPolicy.AuthzRule.From.RequestSource.Builder builderForValue)

public AuthzPolicy.AuthzRule.From.Builder addSources(int index, AuthzPolicy.AuthzRule.From.RequestSource.Builder builderForValue)

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AuthzPolicy.AuthzRule.From.RequestSource.Builder
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

addSourcesBuilder()

public AuthzPolicy.AuthzRule.From.RequestSource.Builder addSourcesBuilder()

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthzPolicy.AuthzRule.From.RequestSource.Builder

addSourcesBuilder(int index)

public AuthzPolicy.AuthzRule.From.RequestSource.Builder addSourcesBuilder(int index)

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.From.RequestSource.Builder

build()

public AuthzPolicy.AuthzRule.From build()
Returns
Type Description
AuthzPolicy.AuthzRule.From

buildPartial()

public AuthzPolicy.AuthzRule.From buildPartial()
Returns
Type Description
AuthzPolicy.AuthzRule.From

clear()

public AuthzPolicy.AuthzRule.From.Builder clear()
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder
Overrides

clearNotSources()

public AuthzPolicy.AuthzRule.From.Builder clearNotSources()

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

clearSources()

public AuthzPolicy.AuthzRule.From.Builder clearSources()

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

getDefaultInstanceForType()

public AuthzPolicy.AuthzRule.From getDefaultInstanceForType()
Returns
Type Description
AuthzPolicy.AuthzRule.From

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNotSources(int index)

public AuthzPolicy.AuthzRule.From.RequestSource getNotSources(int index)

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.From.RequestSource

getNotSourcesBuilder(int index)

public AuthzPolicy.AuthzRule.From.RequestSource.Builder getNotSourcesBuilder(int index)

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.From.RequestSource.Builder

getNotSourcesBuilderList()

public List<AuthzPolicy.AuthzRule.From.RequestSource.Builder> getNotSourcesBuilderList()

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getNotSourcesCount()

public int getNotSourcesCount()

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getNotSourcesList()

public List<AuthzPolicy.AuthzRule.From.RequestSource> getNotSourcesList()

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<RequestSource>

getNotSourcesOrBuilder(int index)

public AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder getNotSourcesOrBuilder(int index)

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder

getNotSourcesOrBuilderList()

public List<? extends AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder> getNotSourcesOrBuilderList()

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder>

getSources(int index)

public AuthzPolicy.AuthzRule.From.RequestSource getSources(int index)

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.From.RequestSource

getSourcesBuilder(int index)

public AuthzPolicy.AuthzRule.From.RequestSource.Builder getSourcesBuilder(int index)

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.From.RequestSource.Builder

getSourcesBuilderList()

public List<AuthzPolicy.AuthzRule.From.RequestSource.Builder> getSourcesBuilderList()

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getSourcesCount()

public int getSourcesCount()

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSourcesList()

public List<AuthzPolicy.AuthzRule.From.RequestSource> getSourcesList()

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<RequestSource>

getSourcesOrBuilder(int index)

public AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder getSourcesOrBuilder(int index)

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder

getSourcesOrBuilderList()

public List<? extends AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder> getSourcesOrBuilderList()

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AuthzPolicy.AuthzRule.From other)

public AuthzPolicy.AuthzRule.From.Builder mergeFrom(AuthzPolicy.AuthzRule.From other)
Parameter
Name Description
other AuthzPolicy.AuthzRule.From
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuthzPolicy.AuthzRule.From.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AuthzPolicy.AuthzRule.From.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder
Overrides

removeNotSources(int index)

public AuthzPolicy.AuthzRule.From.Builder removeNotSources(int index)

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

removeSources(int index)

public AuthzPolicy.AuthzRule.From.Builder removeSources(int index)

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

setNotSources(int index, AuthzPolicy.AuthzRule.From.RequestSource value)

public AuthzPolicy.AuthzRule.From.Builder setNotSources(int index, AuthzPolicy.AuthzRule.From.RequestSource value)

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AuthzPolicy.AuthzRule.From.RequestSource
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

setNotSources(int index, AuthzPolicy.AuthzRule.From.RequestSource.Builder builderForValue)

public AuthzPolicy.AuthzRule.From.Builder setNotSources(int index, AuthzPolicy.AuthzRule.From.RequestSource.Builder builderForValue)

Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AuthzPolicy.AuthzRule.From.RequestSource.Builder
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

setSources(int index, AuthzPolicy.AuthzRule.From.RequestSource value)

public AuthzPolicy.AuthzRule.From.Builder setSources(int index, AuthzPolicy.AuthzRule.From.RequestSource value)

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AuthzPolicy.AuthzRule.From.RequestSource
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

setSources(int index, AuthzPolicy.AuthzRule.From.RequestSource.Builder builderForValue)

public AuthzPolicy.AuthzRule.From.Builder setSources(int index, AuthzPolicy.AuthzRule.From.RequestSource.Builder builderForValue)

Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AuthzPolicy.AuthzRule.From.RequestSource.Builder
Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder