Class AuthzPolicy.Target.Builder (0.94.0)

public static final class AuthzPolicy.Target.Builder extends GeneratedMessage.Builder<AuthzPolicy.Target.Builder> implements AuthzPolicy.TargetOrBuilder

Specifies the set of targets to which this policy should be applied to.

Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.Target

Static 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 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 on which this policy will be applied.

repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The 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 on which this policy will be applied.

repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The 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
Overrides

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. 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 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
Overrides

getLoadBalancingScheme()

public AuthzPolicy.LoadBalancingScheme getLoadBalancingScheme()

Optional. All gateways and forwarding rules referenced by this policy and extensions must share the same load balancing scheme. 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. 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 on which this policy will be applied.

repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The 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 on which this policy will be applied.

repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The 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 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 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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

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. 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.LoadBalancingScheme

The 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. 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 int

The 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 on which this policy will be applied.

repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The resources to set.

Returns
Type Description
AuthzPolicy.Target.Builder

This builder for chaining.