Class CorsSettings.Builder (0.3.0)

public static final class CorsSettings.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CorsSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CorsSettings.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public CorsSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CorsSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CorsSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CorsSettings.Builder
Overrides

clone()

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

getAllowHttpOptions()

public BoolValue getAllowHttpOptions()

Configuration to allow HTTP OPTIONS calls to skip 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 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 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 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 GeneratedMessageV3.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 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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CorsSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CorsSettings.Builder
Overrides

setAllowHttpOptions(BoolValue value)

public CorsSettings.Builder setAllowHttpOptions(BoolValue value)

Configuration to allow HTTP OPTIONS calls to skip 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 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

setField(Descriptors.FieldDescriptor field, Object value)

public CorsSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CorsSettings.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CorsSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CorsSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CorsSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CorsSettings.Builder
Overrides