public static final class AuthzPolicy.Target.Builder extends GeneratedMessage.Builder<AuthzPolicy.Target.Builder> implements AuthzPolicy.TargetOrBuilderSpecifies the set of targets to which this policy should be applied to.
Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.Target
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AuthzPolicy.Target.BuilderImplements
AuthzPolicy.TargetOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllResources(Iterable<String> values)
public AuthzPolicy.Target.Builder addAllResources(Iterable<String> values)Required. A list of references to the Forwarding Rules, Secure Web Proxy Gateways, or Agent Gateways on which this policy will be applied.
repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The resources to add. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target.Builder |
This builder for chaining. |
addResources(String value)
public AuthzPolicy.Target.Builder addResources(String value)Required. A list of references to the Forwarding Rules, Secure Web Proxy Gateways, or Agent Gateways on which this policy will be applied.
repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe resources to add. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target.Builder |
This builder for chaining. |
addResourcesBytes(ByteString value)
public AuthzPolicy.Target.Builder addResourcesBytes(ByteString value)Required. A list of references to the Forwarding Rules, Secure Web Proxy Gateways, or Agent Gateways on which this policy will be applied.
repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the resources to add. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target.Builder |
This builder for chaining. |
build()
public AuthzPolicy.Target build()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target |
|
buildPartial()
public AuthzPolicy.Target buildPartial()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target |
|
clear()
public AuthzPolicy.Target.Builder clear()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target.Builder |
|
clearLoadBalancingScheme()
public AuthzPolicy.Target.Builder clearLoadBalancingScheme() Optional. All gateways and forwarding rules referenced by this policy and
extensions must share the same load balancing scheme. Required only when
targeting forwarding rules. If targeting Secure Web Proxy, this field
must be INTERNAL_MANAGED or not specified. Must not be specified
when targeting Agent Gateway. Supported values:
INTERNAL_MANAGED and EXTERNAL_MANAGED. For more information, refer
to Backend services
overview.
.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target.Builder |
This builder for chaining. |
clearResources()
public AuthzPolicy.Target.Builder clearResources()Required. A list of references to the Forwarding Rules, Secure Web Proxy Gateways, or Agent Gateways on which this policy will be applied.
repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public AuthzPolicy.Target getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLoadBalancingScheme()
public AuthzPolicy.LoadBalancingScheme getLoadBalancingScheme() Optional. All gateways and forwarding rules referenced by this policy and
extensions must share the same load balancing scheme. Required only when
targeting forwarding rules. If targeting Secure Web Proxy, this field
must be INTERNAL_MANAGED or not specified. Must not be specified
when targeting Agent Gateway. Supported values:
INTERNAL_MANAGED and EXTERNAL_MANAGED. For more information, refer
to Backend services
overview.
.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.LoadBalancingScheme |
The loadBalancingScheme. |
getLoadBalancingSchemeValue()
public int getLoadBalancingSchemeValue() Optional. All gateways and forwarding rules referenced by this policy and
extensions must share the same load balancing scheme. Required only when
targeting forwarding rules. If targeting Secure Web Proxy, this field
must be INTERNAL_MANAGED or not specified. Must not be specified
when targeting Agent Gateway. Supported values:
INTERNAL_MANAGED and EXTERNAL_MANAGED. For more information, refer
to Backend services
overview.
.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for loadBalancingScheme. |
getResources(int index)
public String getResources(int index)Required. A list of references to the Forwarding Rules, Secure Web Proxy Gateways, or Agent Gateways on which this policy will be applied.
repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The resources at the given index. |
getResourcesBytes(int index)
public ByteString getResourcesBytes(int index)Required. A list of references to the Forwarding Rules, Secure Web Proxy Gateways, or Agent Gateways on which this policy will be applied.
repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the resources at the given index. |
getResourcesCount()
public int getResourcesCount()Required. A list of references to the Forwarding Rules, Secure Web Proxy Gateways, or Agent Gateways on which this policy will be applied.
repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of resources. |
getResourcesList()
public ProtocolStringList getResourcesList()Required. A list of references to the Forwarding Rules, Secure Web Proxy Gateways, or Agent Gateways on which this policy will be applied.
repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the resources. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AuthzPolicy.Target other)
public AuthzPolicy.Target.Builder mergeFrom(AuthzPolicy.Target other)| Parameter | |
|---|---|
| Name | Description |
other |
AuthzPolicy.Target |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AuthzPolicy.Target.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AuthzPolicy.Target.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target.Builder |
|
setLoadBalancingScheme(AuthzPolicy.LoadBalancingScheme value)
public AuthzPolicy.Target.Builder setLoadBalancingScheme(AuthzPolicy.LoadBalancingScheme value) Optional. All gateways and forwarding rules referenced by this policy and
extensions must share the same load balancing scheme. Required only when
targeting forwarding rules. If targeting Secure Web Proxy, this field
must be INTERNAL_MANAGED or not specified. Must not be specified
when targeting Agent Gateway. Supported values:
INTERNAL_MANAGED and EXTERNAL_MANAGED. For more information, refer
to Backend services
overview.
.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AuthzPolicy.LoadBalancingSchemeThe loadBalancingScheme to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target.Builder |
This builder for chaining. |
setLoadBalancingSchemeValue(int value)
public AuthzPolicy.Target.Builder setLoadBalancingSchemeValue(int value) Optional. All gateways and forwarding rules referenced by this policy and
extensions must share the same load balancing scheme. Required only when
targeting forwarding rules. If targeting Secure Web Proxy, this field
must be INTERNAL_MANAGED or not specified. Must not be specified
when targeting Agent Gateway. Supported values:
INTERNAL_MANAGED and EXTERNAL_MANAGED. For more information, refer
to Backend services
overview.
.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for loadBalancingScheme to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target.Builder |
This builder for chaining. |
setResources(int index, String value)
public AuthzPolicy.Target.Builder setResources(int index, String value)Required. A list of references to the Forwarding Rules, Secure Web Proxy Gateways, or Agent Gateways on which this policy will be applied.
repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe resources to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.Target.Builder |
This builder for chaining. |