public static final class AllowedDomainsSettings.Builder extends GeneratedMessage.Builder<AllowedDomainsSettings.Builder> implements AllowedDomainsSettingsOrBuilderConfiguration 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AllowedDomainsSettings.BuilderImplements
AllowedDomainsSettingsOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|
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 |
intThe 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 |
intThe 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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AllowedDomainsSettings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AllowedDomainsSettings.Builder |
|
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 |
intThe index to set the value at. |
value |
StringThe 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 |
booleanThe enable to set. |
| Returns | |
|---|---|
| Type | Description |
AllowedDomainsSettings.Builder |
This builder for chaining. |