Class CorsSettings.Builder (0.39.0)

public static final class CorsSettings.Builder extends GeneratedMessage.Builder<CorsSettings.Builder> implements CorsSettingsOrBuilder

Allows customers to configure HTTP request paths that'll allow HTTP OPTIONS call to bypass authentication and authorization.

Protobuf type google.cloud.iap.v1.CorsSettings

Static Methods

getDescriptor()

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

Methods

build()

public CorsSettings build()
Returns
Type Description
CorsSettings

buildPartial()

public CorsSettings buildPartial()
Returns
Type Description
CorsSettings

clear()

public CorsSettings.Builder clear()
Returns
Type Description
CorsSettings.Builder
Overrides

clearAllowHttpOptions()

public CorsSettings.Builder clearAllowHttpOptions()

Configuration to allow HTTP OPTIONS calls to skip authentication and authorization. If undefined, IAP will not apply any special logic to OPTIONS requests.

.google.protobuf.BoolValue allow_http_options = 1;

Returns
Type Description
CorsSettings.Builder

getAllowHttpOptions()

public BoolValue getAllowHttpOptions()

Configuration to allow HTTP OPTIONS calls to skip authentication and authorization. If undefined, IAP will not apply any special logic to OPTIONS requests.

.google.protobuf.BoolValue allow_http_options = 1;

Returns
Type Description
BoolValue

The allowHttpOptions.

getAllowHttpOptionsBuilder()

public BoolValue.Builder getAllowHttpOptionsBuilder()

Configuration to allow HTTP OPTIONS calls to skip authentication and authorization. If undefined, IAP will not apply any special logic to OPTIONS requests.

.google.protobuf.BoolValue allow_http_options = 1;

Returns
Type Description
Builder

getAllowHttpOptionsOrBuilder()

public BoolValueOrBuilder getAllowHttpOptionsOrBuilder()

Configuration to allow HTTP OPTIONS calls to skip authentication and authorization. If undefined, IAP will not apply any special logic to OPTIONS requests.

.google.protobuf.BoolValue allow_http_options = 1;

Returns
Type Description
BoolValueOrBuilder

getDefaultInstanceForType()

public CorsSettings getDefaultInstanceForType()
Returns
Type Description
CorsSettings

getDescriptorForType()

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

hasAllowHttpOptions()

public boolean hasAllowHttpOptions()

Configuration to allow HTTP OPTIONS calls to skip authentication and authorization. If undefined, IAP will not apply any special logic to OPTIONS requests.

.google.protobuf.BoolValue allow_http_options = 1;

Returns
Type Description
boolean

Whether the allowHttpOptions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAllowHttpOptions(BoolValue value)

public CorsSettings.Builder mergeAllowHttpOptions(BoolValue value)

Configuration to allow HTTP OPTIONS calls to skip authentication and authorization. If undefined, IAP will not apply any special logic to OPTIONS requests.

.google.protobuf.BoolValue allow_http_options = 1;

Parameter
Name Description
value BoolValue
Returns
Type Description
CorsSettings.Builder

mergeFrom(CorsSettings other)

public CorsSettings.Builder mergeFrom(CorsSettings other)
Parameter
Name Description
other CorsSettings
Returns
Type Description
CorsSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CorsSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CorsSettings.Builder
Overrides

setAllowHttpOptions(BoolValue value)

public CorsSettings.Builder setAllowHttpOptions(BoolValue value)

Configuration to allow HTTP OPTIONS calls to skip authentication and authorization. If undefined, IAP will not apply any special logic to OPTIONS requests.

.google.protobuf.BoolValue allow_http_options = 1;

Parameter
Name Description
value BoolValue
Returns
Type Description
CorsSettings.Builder

setAllowHttpOptions(BoolValue.Builder builderForValue)

public CorsSettings.Builder setAllowHttpOptions(BoolValue.Builder builderForValue)

Configuration to allow HTTP OPTIONS calls to skip authentication and authorization. If undefined, IAP will not apply any special logic to OPTIONS requests.

.google.protobuf.BoolValue allow_http_options = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CorsSettings.Builder