Class AllowedDomainsSettings.Builder (0.3.0)

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

List of trusted domains.

repeated string domains = 2;

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)

List of trusted domains.

repeated string domains = 2;

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)

List of trusted domains.

repeated string domains = 2;

Parameter
Name Description
value ByteString

The bytes of the domains to add.

Returns
Type Description
AllowedDomainsSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

List of trusted domains.

repeated string domains = 2;

Returns
Type Description
AllowedDomainsSettings.Builder

This builder for chaining.

clearEnable()

public AllowedDomainsSettings.Builder clearEnable()

Configuration for customers to opt in for the feature.

optional bool enable = 1;

Returns
Type Description
AllowedDomainsSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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)

List of trusted domains.

repeated string domains = 2;

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)

List of trusted domains.

repeated string domains = 2;

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

List of trusted domains.

repeated string domains = 2;

Returns
Type Description
int

The count of domains.

getDomainsList()

public ProtocolStringList getDomainsList()

List of trusted domains.

repeated string domains = 2;

Returns
Type Description
ProtocolStringList

A list containing the domains.

getEnable()

public boolean getEnable()

Configuration for customers to opt in for the feature.

optional bool enable = 1;

Returns
Type Description
boolean

The enable.

hasEnable()

public boolean hasEnable()

Configuration for customers to opt in for the feature.

optional bool enable = 1;

Returns
Type Description
boolean

Whether the enable field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDomains(int index, String value)

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

List of trusted domains.

repeated string domains = 2;

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)

Configuration for customers to opt in for the feature.

optional bool enable = 1;

Parameter
Name Description
value boolean

The enable to set.

Returns
Type Description
AllowedDomainsSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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