Class AuthorizationPolicy.Rule.Source (0.19.0)

publicstaticfinalclass AuthorizationPolicy.Rule.SourceextendsGeneratedMessageV3implementsAuthorizationPolicy.Rule.SourceOrBuilder

Specification of traffic source attributes.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AuthorizationPolicy.Rule.Source

Inherited Members

Static Fields

IP_BLOCKS_FIELD_NUMBER

publicstaticfinalintIP_BLOCKS_FIELD_NUMBER
Field Value
Type Description
int

PRINCIPALS_FIELD_NUMBER

publicstaticfinalintPRINCIPALS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticAuthorizationPolicy.Rule.SourcegetDefaultInstance()
Returns
Type Description
AuthorizationPolicy.Rule.Source

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticAuthorizationPolicy.Rule.Source.BuildernewBuilder()
Returns
Type Description
AuthorizationPolicy.Rule.Source.Builder

newBuilder(AuthorizationPolicy.Rule.Source prototype)

publicstaticAuthorizationPolicy.Rule.Source.BuildernewBuilder(AuthorizationPolicy.Rule.Sourceprototype)
Parameter
Name Description
prototype AuthorizationPolicy.Rule.Source
Returns
Type Description
AuthorizationPolicy.Rule.Source.Builder

parseDelimitedFrom(InputStream input)

publicstaticAuthorizationPolicy.Rule.SourceparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthorizationPolicy.Rule.Source
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.Rule.SourceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Source
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticAuthorizationPolicy.Rule.SourceparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
AuthorizationPolicy.Rule.Source
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.Rule.SourceparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Source
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticAuthorizationPolicy.Rule.SourceparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
AuthorizationPolicy.Rule.Source
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.Rule.SourceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Source
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticAuthorizationPolicy.Rule.SourceparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AuthorizationPolicy.Rule.Source
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.Rule.SourceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Source
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticAuthorizationPolicy.Rule.SourceparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthorizationPolicy.Rule.Source
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.Rule.SourceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Source
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticAuthorizationPolicy.Rule.SourceparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AuthorizationPolicy.Rule.Source
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.Rule.SourceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Source
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<AuthorizationPolicy.Rule.Source>parser()
Returns
Type Description
Parser<Source>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicAuthorizationPolicy.Rule.SourcegetDefaultInstanceForType()
Returns
Type Description
AuthorizationPolicy.Rule.Source

getIpBlocks(int index)

publicStringgetIpBlocks(intindex)

Optional. List of CIDR ranges to match based on source IP address. At least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g., "1.2.3.0/24") are supported. Authorization based on source IP alone should be avoided. The IP addresses of any load balancers or proxies should be considered untrusted.

repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ipBlocks at the given index.

getIpBlocksBytes(int index)

publicByteStringgetIpBlocksBytes(intindex)

Optional. List of CIDR ranges to match based on source IP address. At least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g., "1.2.3.0/24") are supported. Authorization based on source IP alone should be avoided. The IP addresses of any load balancers or proxies should be considered untrusted.

repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ipBlocks at the given index.

getIpBlocksCount()

publicintgetIpBlocksCount()

Optional. List of CIDR ranges to match based on source IP address. At least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g., "1.2.3.0/24") are supported. Authorization based on source IP alone should be avoided. The IP addresses of any load balancers or proxies should be considered untrusted.

repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of ipBlocks.

getIpBlocksList()

publicProtocolStringListgetIpBlocksList()

Optional. List of CIDR ranges to match based on source IP address. At least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g., "1.2.3.0/24") are supported. Authorization based on source IP alone should be avoided. The IP addresses of any load balancers or proxies should be considered untrusted.

repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the ipBlocks.

getParserForType()

publicParser<AuthorizationPolicy.Rule.Source>getParserForType()
Returns
Type Description
Parser<Source>
Overrides

getPrincipals(int index)

publicStringgetPrincipals(intindex)

Optional. List of peer identities to match for authorization. At least one principal should match. Each peer can be an exact match, or a prefix match (example, "namespace/*") or a suffix match (example, "/service-account") or a presence match "". Authorization based on the principal name without certificate validation (configured by ServerTlsPolicy resource) is considered insecure.

repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The principals at the given index.

getPrincipalsBytes(int index)

publicByteStringgetPrincipalsBytes(intindex)

Optional. List of peer identities to match for authorization. At least one principal should match. Each peer can be an exact match, or a prefix match (example, "namespace/*") or a suffix match (example, "/service-account") or a presence match "". Authorization based on the principal name without certificate validation (configured by ServerTlsPolicy resource) is considered insecure.

repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the principals at the given index.

getPrincipalsCount()

publicintgetPrincipalsCount()

Optional. List of peer identities to match for authorization. At least one principal should match. Each peer can be an exact match, or a prefix match (example, "namespace/*") or a suffix match (example, "/service-account") or a presence match "". Authorization based on the principal name without certificate validation (configured by ServerTlsPolicy resource) is considered insecure.

repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of principals.

getPrincipalsList()

publicProtocolStringListgetPrincipalsList()

Optional. List of peer identities to match for authorization. At least one principal should match. Each peer can be an exact match, or a prefix match (example, "namespace/*") or a suffix match (example, "/service-account") or a presence match "". Authorization based on the principal name without certificate validation (configured by ServerTlsPolicy resource) is considered insecure.

repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the principals.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicAuthorizationPolicy.Rule.Source.BuildernewBuilderForType()
Returns
Type Description
AuthorizationPolicy.Rule.Source.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedAuthorizationPolicy.Rule.Source.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AuthorizationPolicy.Rule.Source.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicAuthorizationPolicy.Rule.Source.BuildertoBuilder()
Returns
Type Description
AuthorizationPolicy.Rule.Source.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.