Class AllowedDomainsSettings.Builder (0.39.0)

public static final class AllowedDomainsSettings.Builder extends GeneratedMessage.Builder<AllowedDomainsSettings.Builder> implements AllowedDomainsSettingsOrBuilder

Configuration for IAP allowed domains. Lets you to restrict access to an app and allow access to only the domains that you list.

Protobuf type google.cloud.iap.v1.AllowedDomainsSettings

Static Methods

getDescriptor()

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

Methods

addAllDomains(Iterable<String> values)

public AllowedDomainsSettings.Builder addAllDomains(Iterable<String> values)

Optional. List of trusted domains.

repeated string domains = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The domains to add.

Returns
Type Description
AllowedDomainsSettings.Builder

This builder for chaining.

addDomains(String value)

public AllowedDomainsSettings.Builder addDomains(String value)

Optional. List of trusted domains.

repeated string domains = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The domains to add.

Returns
Type Description
AllowedDomainsSettings.Builder

This builder for chaining.

addDomainsBytes(ByteString value)

public AllowedDomainsSettings.Builder addDomainsBytes(ByteString value)

Optional. List of trusted domains.

repeated string domains = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the domains to add.

Returns
Type Description
AllowedDomainsSettings.Builder

This builder for chaining.

build()

public AllowedDomainsSettings build()
Returns
Type Description
AllowedDomainsSettings

buildPartial()

public AllowedDomainsSettings buildPartial()
Returns
Type Description
AllowedDomainsSettings

clear()

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

clearDomains()

public AllowedDomainsSettings.Builder clearDomains()

Optional. List of trusted domains.

repeated string domains = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AllowedDomainsSettings.Builder

This builder for chaining.

clearEnable()

public AllowedDomainsSettings.Builder clearEnable()

Optional. Configuration for customers to opt in for the feature.

optional bool enable = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AllowedDomainsSettings.Builder

This builder for chaining.

getDefaultInstanceForType()

public AllowedDomainsSettings getDefaultInstanceForType()
Returns
Type Description
AllowedDomainsSettings

getDescriptorForType()

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

getDomains(int index)

public String getDomains(int index)

Optional. List of trusted domains.

repeated string domains = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The domains at the given index.

getDomainsBytes(int index)

public ByteString getDomainsBytes(int index)

Optional. List of trusted domains.

repeated string domains = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the domains at the given index.

getDomainsCount()

public int getDomainsCount()

Optional. List of trusted domains.

repeated string domains = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of domains.

getDomainsList()

public ProtocolStringList getDomainsList()

Optional. List of trusted domains.

repeated string domains = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the domains.

getEnable()

public boolean getEnable()

Optional. Configuration for customers to opt in for the feature.

optional bool enable = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enable.

hasEnable()

public boolean hasEnable()

Optional. Configuration for customers to opt in for the feature.

optional bool enable = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the enable field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AllowedDomainsSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDomains(int index, String value)

public AllowedDomainsSettings.Builder setDomains(int index, String value)

Optional. List of trusted domains.

repeated string domains = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The domains to set.

Returns
Type Description
AllowedDomainsSettings.Builder

This builder for chaining.

setEnable(boolean value)

public AllowedDomainsSettings.Builder setEnable(boolean value)

Optional. Configuration for customers to opt in for the feature.

optional bool enable = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enable to set.

Returns
Type Description
AllowedDomainsSettings.Builder

This builder for chaining.