Class Domain.Builder (1.45.0)

public static final class Domain.Builder extends GeneratedMessageV3.Builder<Domain.Builder> implements DomainOrBuilder

Represents a managed Microsoft Active Directory domain.

Protobuf type google.cloud.managedidentities.v1.Domain

Implements

DomainOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllAuthorizedNetworks(Iterable<String> values)

public Domain.Builder addAllAuthorizedNetworks(Iterable<String> values)

Optional. The full names of the Google Compute Engine networks the domain instance is connected to. Networks can be added using UpdateDomain. The domain is only available on networks listed in authorized_networks. If CIDR subnets overlap between networks, domain creation will fail.

repeated string authorized_networks = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The authorizedNetworks to add.

Returns
Type Description
Domain.Builder

This builder for chaining.

addAllLocations(Iterable<String> values)

public Domain.Builder addAllLocations(Iterable<String> values)

Required. Locations where domain needs to be provisioned. regions e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.

repeated string locations = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The locations to add.

Returns
Type Description
Domain.Builder

This builder for chaining.

addAllTrusts(Iterable<? extends Trust> values)

public Domain.Builder addAllTrusts(Iterable<? extends Trust> values)

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.managedidentities.v1.Trust>
Returns
Type Description
Domain.Builder

addAuthorizedNetworks(String value)

public Domain.Builder addAuthorizedNetworks(String value)

Optional. The full names of the Google Compute Engine networks the domain instance is connected to. Networks can be added using UpdateDomain. The domain is only available on networks listed in authorized_networks. If CIDR subnets overlap between networks, domain creation will fail.

repeated string authorized_networks = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The authorizedNetworks to add.

Returns
Type Description
Domain.Builder

This builder for chaining.

addAuthorizedNetworksBytes(ByteString value)

public Domain.Builder addAuthorizedNetworksBytes(ByteString value)

Optional. The full names of the Google Compute Engine networks the domain instance is connected to. Networks can be added using UpdateDomain. The domain is only available on networks listed in authorized_networks. If CIDR subnets overlap between networks, domain creation will fail.

repeated string authorized_networks = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the authorizedNetworks to add.

Returns
Type Description
Domain.Builder

This builder for chaining.

addLocations(String value)

public Domain.Builder addLocations(String value)

Required. Locations where domain needs to be provisioned. regions e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.

repeated string locations = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The locations to add.

Returns
Type Description
Domain.Builder

This builder for chaining.

addLocationsBytes(ByteString value)

public Domain.Builder addLocationsBytes(ByteString value)

Required. Locations where domain needs to be provisioned. regions e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.

repeated string locations = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the locations to add.

Returns
Type Description
Domain.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTrusts(Trust value)

public Domain.Builder addTrusts(Trust value)

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Trust
Returns
Type Description
Domain.Builder

addTrusts(Trust.Builder builderForValue)

public Domain.Builder addTrusts(Trust.Builder builderForValue)

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Trust.Builder
Returns
Type Description
Domain.Builder

addTrusts(int index, Trust value)

public Domain.Builder addTrusts(int index, Trust value)

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Trust
Returns
Type Description
Domain.Builder

addTrusts(int index, Trust.Builder builderForValue)

public Domain.Builder addTrusts(int index, Trust.Builder builderForValue)

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Trust.Builder
Returns
Type Description
Domain.Builder

addTrustsBuilder()

public Trust.Builder addTrustsBuilder()

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Trust.Builder

addTrustsBuilder(int index)

public Trust.Builder addTrustsBuilder(int index)

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Trust.Builder

build()

public Domain build()
Returns
Type Description
Domain

buildPartial()

public Domain buildPartial()
Returns
Type Description
Domain

clear()

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

clearAdmin()

public Domain.Builder clearAdmin()

Optional. The name of delegated administrator account used to perform Active Directory operations. If not specified, setupadmin will be used.

string admin = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Domain.Builder

This builder for chaining.

clearAuthorizedNetworks()

public Domain.Builder clearAuthorizedNetworks()

Optional. The full names of the Google Compute Engine networks the domain instance is connected to. Networks can be added using UpdateDomain. The domain is only available on networks listed in authorized_networks. If CIDR subnets overlap between networks, domain creation will fail.

repeated string authorized_networks = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Domain.Builder

This builder for chaining.

clearCreateTime()

public Domain.Builder clearCreateTime()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Domain.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFqdn()

public Domain.Builder clearFqdn()

Output only. The fully-qualified domain name of the exposed domain used by clients to connect to the service. Similar to what would be chosen for an Active Directory set up on an internal network.

string fqdn = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Domain.Builder

This builder for chaining.

clearLabels()

public Domain.Builder clearLabels()
Returns
Type Description
Domain.Builder

clearLocations()

public Domain.Builder clearLocations()

Required. Locations where domain needs to be provisioned. regions e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.

repeated string locations = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Domain.Builder

This builder for chaining.

clearName()

public Domain.Builder clearName()

Required. The unique name of the domain using the form: projects/{project_id}/locations/global/domains/{domain_name}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Domain.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReservedIpRange()

public Domain.Builder clearReservedIpRange()

Required. The CIDR range of internal addresses that are reserved for this domain. Reserved networks must be /24 or larger. Ranges must be unique and non-overlapping with existing subnets in [Domain].[authorized_networks].

string reserved_ip_range = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Domain.Builder

This builder for chaining.

clearState()

public Domain.Builder clearState()

Output only. The current state of this domain.

.google.cloud.managedidentities.v1.Domain.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Domain.Builder

This builder for chaining.

clearStatusMessage()

public Domain.Builder clearStatusMessage()

Output only. Additional information about the current status of this domain, if available.

string status_message = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Domain.Builder

This builder for chaining.

clearTrusts()

public Domain.Builder clearTrusts()

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Domain.Builder

clearUpdateTime()

public Domain.Builder clearUpdateTime()

Output only. The last update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Domain.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Resource labels that can contain user-provided metadata.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAdmin()

public String getAdmin()

Optional. The name of delegated administrator account used to perform Active Directory operations. If not specified, setupadmin will be used.

string admin = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The admin.

getAdminBytes()

public ByteString getAdminBytes()

Optional. The name of delegated administrator account used to perform Active Directory operations. If not specified, setupadmin will be used.

string admin = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for admin.

getAuthorizedNetworks(int index)

public String getAuthorizedNetworks(int index)

Optional. The full names of the Google Compute Engine networks the domain instance is connected to. Networks can be added using UpdateDomain. The domain is only available on networks listed in authorized_networks. If CIDR subnets overlap between networks, domain creation will fail.

repeated string authorized_networks = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The authorizedNetworks at the given index.

getAuthorizedNetworksBytes(int index)

public ByteString getAuthorizedNetworksBytes(int index)

Optional. The full names of the Google Compute Engine networks the domain instance is connected to. Networks can be added using UpdateDomain. The domain is only available on networks listed in authorized_networks. If CIDR subnets overlap between networks, domain creation will fail.

repeated string authorized_networks = 3 [(.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 authorizedNetworks at the given index.

getAuthorizedNetworksCount()

public int getAuthorizedNetworksCount()

Optional. The full names of the Google Compute Engine networks the domain instance is connected to. Networks can be added using UpdateDomain. The domain is only available on networks listed in authorized_networks. If CIDR subnets overlap between networks, domain creation will fail.

repeated string authorized_networks = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of authorizedNetworks.

getAuthorizedNetworksList()

public ProtocolStringList getAuthorizedNetworksList()

Optional. The full names of the Google Compute Engine networks the domain instance is connected to. Networks can be added using UpdateDomain. The domain is only available on networks listed in authorized_networks. If CIDR subnets overlap between networks, domain creation will fail.

repeated string authorized_networks = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the authorizedNetworks.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Domain getDefaultInstanceForType()
Returns
Type Description
Domain

getDescriptorForType()

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

getFqdn()

public String getFqdn()

Output only. The fully-qualified domain name of the exposed domain used by clients to connect to the service. Similar to what would be chosen for an Active Directory set up on an internal network.

string fqdn = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The fqdn.

getFqdnBytes()

public ByteString getFqdnBytes()

Output only. The fully-qualified domain name of the exposed domain used by clients to connect to the service. Similar to what would be chosen for an Active Directory set up on an internal network.

string fqdn = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for fqdn.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Resource labels that can contain user-provided metadata.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Resource labels that can contain user-provided metadata.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Resource labels that can contain user-provided metadata.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Resource labels that can contain user-provided metadata.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getLocations(int index)

public String getLocations(int index)

Required. Locations where domain needs to be provisioned. regions e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.

repeated string locations = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The locations at the given index.

getLocationsBytes(int index)

public ByteString getLocationsBytes(int index)

Required. Locations where domain needs to be provisioned. regions e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.

repeated string locations = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the locations at the given index.

getLocationsCount()

public int getLocationsCount()

Required. Locations where domain needs to be provisioned. regions e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.

repeated string locations = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of locations.

getLocationsList()

public ProtocolStringList getLocationsList()

Required. Locations where domain needs to be provisioned. regions e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.

repeated string locations = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the locations.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Required. The unique name of the domain using the form: projects/{project_id}/locations/global/domains/{domain_name}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The unique name of the domain using the form: projects/{project_id}/locations/global/domains/{domain_name}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getReservedIpRange()

public String getReservedIpRange()

Required. The CIDR range of internal addresses that are reserved for this domain. Reserved networks must be /24 or larger. Ranges must be unique and non-overlapping with existing subnets in [Domain].[authorized_networks].

string reserved_ip_range = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The reservedIpRange.

getReservedIpRangeBytes()

public ByteString getReservedIpRangeBytes()

Required. The CIDR range of internal addresses that are reserved for this domain. Reserved networks must be /24 or larger. Ranges must be unique and non-overlapping with existing subnets in [Domain].[authorized_networks].

string reserved_ip_range = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for reservedIpRange.

getState()

public Domain.State getState()

Output only. The current state of this domain.

.google.cloud.managedidentities.v1.Domain.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Domain.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of this domain.

.google.cloud.managedidentities.v1.Domain.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getStatusMessage()

public String getStatusMessage()

Output only. Additional information about the current status of this domain, if available.

string status_message = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The statusMessage.

getStatusMessageBytes()

public ByteString getStatusMessageBytes()

Output only. Additional information about the current status of this domain, if available.

string status_message = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for statusMessage.

getTrusts(int index)

public Trust getTrusts(int index)

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Trust

getTrustsBuilder(int index)

public Trust.Builder getTrustsBuilder(int index)

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Trust.Builder

getTrustsBuilderList()

public List<Trust.Builder> getTrustsBuilderList()

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getTrustsCount()

public int getTrustsCount()

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getTrustsList()

public List<Trust> getTrustsList()

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Trust>

getTrustsOrBuilder(int index)

public TrustOrBuilder getTrustsOrBuilder(int index)

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TrustOrBuilder

getTrustsOrBuilderList()

public List<? extends TrustOrBuilder> getTrustsOrBuilderList()

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.managedidentities.v1.TrustOrBuilder>

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Domain.Builder mergeCreateTime(Timestamp value)

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Domain.Builder

mergeFrom(Domain other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Domain.Builder mergeUpdateTime(Timestamp value)

Output only. The last update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Domain.Builder

putAllLabels(Map<String,String> values)

public Domain.Builder putAllLabels(Map<String,String> values)

Optional. Resource labels that can contain user-provided metadata.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Domain.Builder

putLabels(String key, String value)

public Domain.Builder putLabels(String key, String value)

Optional. Resource labels that can contain user-provided metadata.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Domain.Builder

removeLabels(String key)

public Domain.Builder removeLabels(String key)

Optional. Resource labels that can contain user-provided metadata.

map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Domain.Builder

removeTrusts(int index)

public Domain.Builder removeTrusts(int index)

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Domain.Builder

setAdmin(String value)

public Domain.Builder setAdmin(String value)

Optional. The name of delegated administrator account used to perform Active Directory operations. If not specified, setupadmin will be used.

string admin = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The admin to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

setAdminBytes(ByteString value)

public Domain.Builder setAdminBytes(ByteString value)

Optional. The name of delegated administrator account used to perform Active Directory operations. If not specified, setupadmin will be used.

string admin = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for admin to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

setAuthorizedNetworks(int index, String value)

public Domain.Builder setAuthorizedNetworks(int index, String value)

Optional. The full names of the Google Compute Engine networks the domain instance is connected to. Networks can be added using UpdateDomain. The domain is only available on networks listed in authorized_networks. If CIDR subnets overlap between networks, domain creation will fail.

repeated string authorized_networks = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The authorizedNetworks to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Domain.Builder setCreateTime(Timestamp value)

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Domain.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Domain.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Domain.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFqdn(String value)

public Domain.Builder setFqdn(String value)

Output only. The fully-qualified domain name of the exposed domain used by clients to connect to the service. Similar to what would be chosen for an Active Directory set up on an internal network.

string fqdn = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The fqdn to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

setFqdnBytes(ByteString value)

public Domain.Builder setFqdnBytes(ByteString value)

Output only. The fully-qualified domain name of the exposed domain used by clients to connect to the service. Similar to what would be chosen for an Active Directory set up on an internal network.

string fqdn = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for fqdn to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

setLocations(int index, String value)

public Domain.Builder setLocations(int index, String value)

Required. Locations where domain needs to be provisioned. regions e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.

repeated string locations = 5 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The locations to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

setName(String value)

public Domain.Builder setName(String value)

Required. The unique name of the domain using the form: projects/{project_id}/locations/global/domains/{domain_name}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Domain.Builder setNameBytes(ByteString value)

Required. The unique name of the domain using the form: projects/{project_id}/locations/global/domains/{domain_name}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

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

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

setReservedIpRange(String value)

public Domain.Builder setReservedIpRange(String value)

Required. The CIDR range of internal addresses that are reserved for this domain. Reserved networks must be /24 or larger. Ranges must be unique and non-overlapping with existing subnets in [Domain].[authorized_networks].

string reserved_ip_range = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The reservedIpRange to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

setReservedIpRangeBytes(ByteString value)

public Domain.Builder setReservedIpRangeBytes(ByteString value)

Required. The CIDR range of internal addresses that are reserved for this domain. Reserved networks must be /24 or larger. Ranges must be unique and non-overlapping with existing subnets in [Domain].[authorized_networks].

string reserved_ip_range = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for reservedIpRange to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

setState(Domain.State value)

public Domain.Builder setState(Domain.State value)

Output only. The current state of this domain.

.google.cloud.managedidentities.v1.Domain.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Domain.State

The state to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

setStateValue(int value)

public Domain.Builder setStateValue(int value)

Output only. The current state of this domain.

.google.cloud.managedidentities.v1.Domain.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

setStatusMessage(String value)

public Domain.Builder setStatusMessage(String value)

Output only. Additional information about the current status of this domain, if available.

string status_message = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The statusMessage to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

setStatusMessageBytes(ByteString value)

public Domain.Builder setStatusMessageBytes(ByteString value)

Output only. Additional information about the current status of this domain, if available.

string status_message = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for statusMessage to set.

Returns
Type Description
Domain.Builder

This builder for chaining.

setTrusts(int index, Trust value)

public Domain.Builder setTrusts(int index, Trust value)

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Trust
Returns
Type Description
Domain.Builder

setTrusts(int index, Trust.Builder builderForValue)

public Domain.Builder setTrusts(int index, Trust.Builder builderForValue)

Output only. The current trusts associated with the domain.

repeated .google.cloud.managedidentities.v1.Trust trusts = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Trust.Builder
Returns
Type Description
Domain.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Domain.Builder setUpdateTime(Timestamp value)

Output only. The last update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Domain.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Domain.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Domain.Builder