Class AuthzPolicy.AuthzRule.Builder (0.94.0)

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

Conditions to match against the incoming request.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearFrom()

public AuthzPolicy.AuthzRule.Builder clearFrom()

Optional. Describes properties of a source of a request.

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

Returns
Type Description
AuthzPolicy.AuthzRule.Builder

clearTo()

public AuthzPolicy.AuthzRule.Builder clearTo()

Optional. Describes properties of a target of a request.

.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthzPolicy.AuthzRule.Builder

clearWhen()

public AuthzPolicy.AuthzRule.Builder clearWhen()

Optional. CEL expression that describes the conditions to be satisfied for the action. The result of the CEL expression is ANDed with the from and to. Refer to the CEL language reference for a list of available attributes.

string when = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthzPolicy.AuthzRule.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getFrom()

public AuthzPolicy.AuthzRule.From getFrom()

Optional. Describes properties of a source of a request.

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

Returns
Type Description
AuthzPolicy.AuthzRule.From

The from.

getFromBuilder()

public AuthzPolicy.AuthzRule.From.Builder getFromBuilder()

Optional. Describes properties of a source of a request.

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

Returns
Type Description
AuthzPolicy.AuthzRule.From.Builder

getFromOrBuilder()

public AuthzPolicy.AuthzRule.FromOrBuilder getFromOrBuilder()

Optional. Describes properties of a source of a request.

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

Returns
Type Description
AuthzPolicy.AuthzRule.FromOrBuilder

getTo()

public AuthzPolicy.AuthzRule.To getTo()

Optional. Describes properties of a target of a request.

.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthzPolicy.AuthzRule.To

The to.

getToBuilder()

public AuthzPolicy.AuthzRule.To.Builder getToBuilder()

Optional. Describes properties of a target of a request.

.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthzPolicy.AuthzRule.To.Builder

getToOrBuilder()

public AuthzPolicy.AuthzRule.ToOrBuilder getToOrBuilder()

Optional. Describes properties of a target of a request.

.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthzPolicy.AuthzRule.ToOrBuilder

getWhen()

public String getWhen()

Optional. CEL expression that describes the conditions to be satisfied for the action. The result of the CEL expression is ANDed with the from and to. Refer to the CEL language reference for a list of available attributes.

string when = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The when.

getWhenBytes()

public ByteString getWhenBytes()

Optional. CEL expression that describes the conditions to be satisfied for the action. The result of the CEL expression is ANDed with the from and to. Refer to the CEL language reference for a list of available attributes.

string when = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for when.

hasFrom()

public boolean hasFrom()

Optional. Describes properties of a source of a request.

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

Returns
Type Description
boolean

Whether the from field is set.

hasTo()

public boolean hasTo()

Optional. Describes properties of a target of a request.

.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the to field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AuthzPolicy.AuthzRule other)

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

mergeFrom(AuthzPolicy.AuthzRule.From value)

public AuthzPolicy.AuthzRule.Builder mergeFrom(AuthzPolicy.AuthzRule.From value)

Optional. Describes properties of a source of a request.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTo(AuthzPolicy.AuthzRule.To value)

public AuthzPolicy.AuthzRule.Builder mergeTo(AuthzPolicy.AuthzRule.To value)

Optional. Describes properties of a target of a request.

.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AuthzPolicy.AuthzRule.To
Returns
Type Description
AuthzPolicy.AuthzRule.Builder

setFrom(AuthzPolicy.AuthzRule.From value)

public AuthzPolicy.AuthzRule.Builder setFrom(AuthzPolicy.AuthzRule.From value)

Optional. Describes properties of a source of a request.

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

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

setFrom(AuthzPolicy.AuthzRule.From.Builder builderForValue)

public AuthzPolicy.AuthzRule.Builder setFrom(AuthzPolicy.AuthzRule.From.Builder builderForValue)

Optional. Describes properties of a source of a request.

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

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

setTo(AuthzPolicy.AuthzRule.To value)

public AuthzPolicy.AuthzRule.Builder setTo(AuthzPolicy.AuthzRule.To value)

Optional. Describes properties of a target of a request.

.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AuthzPolicy.AuthzRule.To
Returns
Type Description
AuthzPolicy.AuthzRule.Builder

setTo(AuthzPolicy.AuthzRule.To.Builder builderForValue)

public AuthzPolicy.AuthzRule.Builder setTo(AuthzPolicy.AuthzRule.To.Builder builderForValue)

Optional. Describes properties of a target of a request.

.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AuthzPolicy.AuthzRule.To.Builder
Returns
Type Description
AuthzPolicy.AuthzRule.Builder

setWhen(String value)

public AuthzPolicy.AuthzRule.Builder setWhen(String value)

Optional. CEL expression that describes the conditions to be satisfied for the action. The result of the CEL expression is ANDed with the from and to. Refer to the CEL language reference for a list of available attributes.

string when = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The when to set.

Returns
Type Description
AuthzPolicy.AuthzRule.Builder

This builder for chaining.

setWhenBytes(ByteString value)

public AuthzPolicy.AuthzRule.Builder setWhenBytes(ByteString value)

Optional. CEL expression that describes the conditions to be satisfied for the action. The result of the CEL expression is ANDed with the from and to. Refer to the CEL language reference for a list of available attributes.

string when = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for when to set.

Returns
Type Description
AuthzPolicy.AuthzRule.Builder

This builder for chaining.