Class AuthzPolicy.CustomProvider.AuthzExtension.Builder (0.94.0)

public static final class AuthzPolicy.CustomProvider.AuthzExtension.Builder extends GeneratedMessage.Builder<AuthzPolicy.CustomProvider.AuthzExtension.Builder> implements AuthzPolicy.CustomProvider.AuthzExtensionOrBuilder

Optional. Delegate authorization decision to user authored extension. Only one of cloudIap or authzExtension can be specified.

Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllResources(Iterable<String> values)

public AuthzPolicy.CustomProvider.AuthzExtension.Builder addAllResources(Iterable<String> values)

Required. A list of references to authorization extensions that will be invoked for requests matching this policy. Limited to 1 custom provider.

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

Parameter
Name Description
values Iterable<String>

The resources to add.

Returns
Type Description
AuthzPolicy.CustomProvider.AuthzExtension.Builder

This builder for chaining.

addResources(String value)

public AuthzPolicy.CustomProvider.AuthzExtension.Builder addResources(String value)

Required. A list of references to authorization extensions that will be invoked for requests matching this policy. Limited to 1 custom provider.

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

Parameter
Name Description
value String

The resources to add.

Returns
Type Description
AuthzPolicy.CustomProvider.AuthzExtension.Builder

This builder for chaining.

addResourcesBytes(ByteString value)

public AuthzPolicy.CustomProvider.AuthzExtension.Builder addResourcesBytes(ByteString value)

Required. A list of references to authorization extensions that will be invoked for requests matching this policy. Limited to 1 custom provider.

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.CustomProvider.AuthzExtension.Builder

This builder for chaining.

build()

public AuthzPolicy.CustomProvider.AuthzExtension build()
Returns
Type Description
AuthzPolicy.CustomProvider.AuthzExtension

buildPartial()

public AuthzPolicy.CustomProvider.AuthzExtension buildPartial()
Returns
Type Description
AuthzPolicy.CustomProvider.AuthzExtension

clear()

public AuthzPolicy.CustomProvider.AuthzExtension.Builder clear()
Returns
Type Description
AuthzPolicy.CustomProvider.AuthzExtension.Builder
Overrides

clearResources()

public AuthzPolicy.CustomProvider.AuthzExtension.Builder clearResources()

Required. A list of references to authorization extensions that will be invoked for requests matching this policy. Limited to 1 custom provider.

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

Returns
Type Description
AuthzPolicy.CustomProvider.AuthzExtension.Builder

This builder for chaining.

getDefaultInstanceForType()

public AuthzPolicy.CustomProvider.AuthzExtension getDefaultInstanceForType()
Returns
Type Description
AuthzPolicy.CustomProvider.AuthzExtension

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getResources(int index)

public String getResources(int index)

Required. A list of references to authorization extensions that will be invoked for requests matching this policy. Limited to 1 custom provider.

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 authorization extensions that will be invoked for requests matching this policy. Limited to 1 custom provider.

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 authorization extensions that will be invoked for requests matching this policy. Limited to 1 custom provider.

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 authorization extensions that will be invoked for requests matching this policy. Limited to 1 custom provider.

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.CustomProvider.AuthzExtension other)

public AuthzPolicy.CustomProvider.AuthzExtension.Builder mergeFrom(AuthzPolicy.CustomProvider.AuthzExtension other)
Parameter
Name Description
other AuthzPolicy.CustomProvider.AuthzExtension
Returns
Type Description
AuthzPolicy.CustomProvider.AuthzExtension.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuthzPolicy.CustomProvider.AuthzExtension.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.CustomProvider.AuthzExtension.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AuthzPolicy.CustomProvider.AuthzExtension.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AuthzPolicy.CustomProvider.AuthzExtension.Builder
Overrides

setResources(int index, String value)

public AuthzPolicy.CustomProvider.AuthzExtension.Builder setResources(int index, String value)

Required. A list of references to authorization extensions that will be invoked for requests matching this policy. Limited to 1 custom provider.

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.CustomProvider.AuthzExtension.Builder

This builder for chaining.