publicstaticfinalclass AuthorizationPolicy.Rule.SourceextendsGeneratedMessageV3implementsAuthorizationPolicy.Rule.SourceOrBuilder
Specification of traffic source attributes.
Protobuf type google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source
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()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticAuthorizationPolicy.Rule.Source.BuildernewBuilder()
newBuilder(AuthorizationPolicy.Rule.Source prototype)
publicstaticAuthorizationPolicy.Rule.Source.BuildernewBuilder(AuthorizationPolicy.Rule.Sourceprototype)
publicstaticAuthorizationPolicy.Rule.SourceparseDelimitedFrom(InputStreaminput)
publicstaticAuthorizationPolicy.Rule.SourceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticAuthorizationPolicy.Rule.SourceparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticAuthorizationPolicy.Rule.SourceparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticAuthorizationPolicy.Rule.SourceparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticAuthorizationPolicy.Rule.SourceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticAuthorizationPolicy.Rule.SourceparseFrom(CodedInputStreaminput)
publicstaticAuthorizationPolicy.Rule.SourceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticAuthorizationPolicy.Rule.SourceparseFrom(InputStreaminput)
publicstaticAuthorizationPolicy.Rule.SourceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticAuthorizationPolicy.Rule.SourceparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticAuthorizationPolicy.Rule.SourceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<AuthorizationPolicy.Rule.Source>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicAuthorizationPolicy.Rule.SourcegetDefaultInstanceForType()
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];
getParserForType()
publicParser<AuthorizationPolicy.Rule.Source>getParserForType()
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];
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getUnknownFields()
publicfinalUnknownFieldSetgetUnknownFields()
Overrides
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicAuthorizationPolicy.Rule.Source.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedAuthorizationPolicy.Rule.Source.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicAuthorizationPolicy.Rule.Source.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides