Class AuthzPolicy.AuthzRule (0.94.0)

public static final class AuthzPolicy.AuthzRule extends GeneratedMessage implements AuthzPolicy.AuthzRuleOrBuilder

Conditions to match against the incoming request.

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

Static Fields

FROM_FIELD_NUMBER

public static final int FROM_FIELD_NUMBER
Field Value
Type Description
int

TO_FIELD_NUMBER

public static final int TO_FIELD_NUMBER
Field Value
Type Description
int

WHEN_FIELD_NUMBER

public static final int WHEN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AuthzPolicy.AuthzRule getDefaultInstance()
Returns
Type Description
AuthzPolicy.AuthzRule

getDescriptor()

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

newBuilder()

public static AuthzPolicy.AuthzRule.Builder newBuilder()
Returns
Type Description
AuthzPolicy.AuthzRule.Builder

newBuilder(AuthzPolicy.AuthzRule prototype)

public static AuthzPolicy.AuthzRule.Builder newBuilder(AuthzPolicy.AuthzRule prototype)
Parameter
Name Description
prototype AuthzPolicy.AuthzRule
Returns
Type Description
AuthzPolicy.AuthzRule.Builder

parseDelimitedFrom(InputStream input)

public static AuthzPolicy.AuthzRule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthzPolicy.AuthzRule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AuthzPolicy.AuthzRule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AuthzPolicy.AuthzRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AuthzPolicy.AuthzRule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AuthzPolicy.AuthzRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AuthzPolicy.AuthzRule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AuthzPolicy.AuthzRule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AuthzPolicy.AuthzRule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthzPolicy.AuthzRule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AuthzPolicy.AuthzRule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AuthzPolicy.AuthzRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AuthzPolicy.AuthzRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AuthzPolicy.AuthzRule> parser()
Returns
Type Description
Parser<AuthzRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

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

getParserForType()

public Parser<AuthzPolicy.AuthzRule> getParserForType()
Returns
Type Description
Parser<AuthzRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AuthzPolicy.AuthzRule.Builder newBuilderForType()
Returns
Type Description
AuthzPolicy.AuthzRule.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AuthzPolicy.AuthzRule.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AuthzPolicy.AuthzRule.Builder
Overrides

toBuilder()

public AuthzPolicy.AuthzRule.Builder toBuilder()
Returns
Type Description
AuthzPolicy.AuthzRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException