Class AuthorizationPolicy.Rule.Source.Builder (0.58.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 0.81.0 (latest)
- 0.79.0
- 0.78.0
- 0.77.0
- 0.76.0
- 0.75.0
- 0.73.0
- 0.71.0
- 0.70.0
- 0.67.0
- 0.66.0
- 0.65.0
- 0.63.0
- 0.62.0
- 0.61.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.4
- 0.5.1
- 0.4.4
publicstaticfinalclass AuthorizationPolicy.Rule.Source.BuilderextendsGeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Source.Builder>implementsAuthorizationPolicy.Rule.SourceOrBuilderSpecification of traffic source attributes.
Protobuf type google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AuthorizationPolicy.Rule.Source.BuilderImplements
AuthorizationPolicy.Rule.SourceOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllIpBlocks(Iterable<String> values)
publicAuthorizationPolicy.Rule.Source.BuilderaddAllIpBlocks(Iterable<String>values)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 |
values |
Iterable<String>The ipBlocks to add. |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
This builder for chaining. |
addAllPrincipals(Iterable<String> values)
publicAuthorizationPolicy.Rule.Source.BuilderaddAllPrincipals(Iterable<String>values)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 |
values |
Iterable<String>The principals to add. |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
This builder for chaining. |
addIpBlocks(String value)
publicAuthorizationPolicy.Rule.Source.BuilderaddIpBlocks(Stringvalue)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 |
value |
String The ipBlocks to add. |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
This builder for chaining. |
addIpBlocksBytes(ByteString value)
publicAuthorizationPolicy.Rule.Source.BuilderaddIpBlocksBytes(ByteStringvalue)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 |
value |
ByteString The bytes of the ipBlocks to add. |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
This builder for chaining. |
addPrincipals(String value)
publicAuthorizationPolicy.Rule.Source.BuilderaddPrincipals(Stringvalue)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 |
value |
String The principals to add. |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
This builder for chaining. |
addPrincipalsBytes(ByteString value)
publicAuthorizationPolicy.Rule.Source.BuilderaddPrincipalsBytes(ByteStringvalue)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 |
value |
ByteString The bytes of the principals to add. |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicAuthorizationPolicy.Rule.Source.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
|
build()
publicAuthorizationPolicy.Rule.Sourcebuild()| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source |
|
buildPartial()
publicAuthorizationPolicy.Rule.SourcebuildPartial()| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source |
|
clear()
publicAuthorizationPolicy.Rule.Source.Builderclear()| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicAuthorizationPolicy.Rule.Source.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
|
clearIpBlocks()
publicAuthorizationPolicy.Rule.Source.BuilderclearIpBlocks()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 |
AuthorizationPolicy.Rule.Source.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicAuthorizationPolicy.Rule.Source.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
|
clearPrincipals()
publicAuthorizationPolicy.Rule.Source.BuilderclearPrincipals()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 |
AuthorizationPolicy.Rule.Source.Builder |
This builder for chaining. |
clone()
publicAuthorizationPolicy.Rule.Source.Builderclone()| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
|
getDefaultInstanceForType()
publicAuthorizationPolicy.Rule.SourcegetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AuthorizationPolicy.Rule.Source other)
publicAuthorizationPolicy.Rule.Source.BuildermergeFrom(AuthorizationPolicy.Rule.Sourceother)| Parameter | |
|---|---|
| Name | Description |
other |
AuthorizationPolicy.Rule.Source |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicAuthorizationPolicy.Rule.Source.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicAuthorizationPolicy.Rule.Source.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalAuthorizationPolicy.Rule.Source.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicAuthorizationPolicy.Rule.Source.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
|
setIpBlocks(int index, String value)
publicAuthorizationPolicy.Rule.Source.BuildersetIpBlocks(intindex,Stringvalue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int The index to set the value at. |
value |
String The ipBlocks to set. |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
This builder for chaining. |
setPrincipals(int index, String value)
publicAuthorizationPolicy.Rule.Source.BuildersetPrincipals(intindex,Stringvalue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int The index to set the value at. |
value |
String The principals to set. |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicAuthorizationPolicy.Rule.Source.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalAuthorizationPolicy.Rule.Source.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AuthorizationPolicy.Rule.Source.Builder |
|