Class AuthorizationPolicy.Rule (0.38.0)

public static final class AuthorizationPolicy.Rule extends GeneratedMessageV3 implements AuthorizationPolicy.RuleOrBuilder

Specification of rules.

Protobuf type google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule

Static Fields

DESTINATIONS_FIELD_NUMBER

public static final int DESTINATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCES_FIELD_NUMBER

public static final int SOURCES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AuthorizationPolicy.Rule getDefaultInstance()
Returns
TypeDescription
AuthorizationPolicy.Rule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AuthorizationPolicy.Rule.Builder newBuilder()
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder

newBuilder(AuthorizationPolicy.Rule prototype)

public static AuthorizationPolicy.Rule.Builder newBuilder(AuthorizationPolicy.Rule prototype)
Parameter
NameDescription
prototypeAuthorizationPolicy.Rule
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder

parseDelimitedFrom(InputStream input)

public static AuthorizationPolicy.Rule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthorizationPolicy.Rule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AuthorizationPolicy.Rule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AuthorizationPolicy.Rule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AuthorizationPolicy.Rule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AuthorizationPolicy.Rule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AuthorizationPolicy.Rule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthorizationPolicy.Rule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AuthorizationPolicy.Rule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthorizationPolicy.Rule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AuthorizationPolicy.Rule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AuthorizationPolicy.Rule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AuthorizationPolicy.Rule> parser()
Returns
TypeDescription
Parser<Rule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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
NameDescription
indexint
Returns
TypeDescription
AuthorizationPolicy.Rule.Destination

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

Returns
TypeDescription
List<? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.DestinationOrBuilder>

getParserForType()

public Parser<AuthorizationPolicy.Rule> getParserForType()
Returns
TypeDescription
Parser<Rule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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
NameDescription
indexint
Returns
TypeDescription
AuthorizationPolicy.Rule.Source

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

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

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AuthorizationPolicy.Rule.Builder newBuilderForType()
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AuthorizationPolicy.Rule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AuthorizationPolicy.Rule.Builder toBuilder()
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException