Class DnsPeeringConfig.Builder (1.43.0)

public static final class DnsPeeringConfig.Builder extends GeneratedMessage.Builder<DnsPeeringConfig.Builder> implements DnsPeeringConfigOrBuilder

DNS peering configuration. These configurations are used to create DNS peering zones in the Vertex tenant project VPC, enabling resolution of records within the specified domain hosted in the target network's Cloud DNS.

Protobuf type google.cloud.vertexai.v1.DnsPeeringConfig

Static Methods

getDescriptor()

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

Methods

build()

public DnsPeeringConfig build()
Returns
Type Description
DnsPeeringConfig

buildPartial()

public DnsPeeringConfig buildPartial()
Returns
Type Description
DnsPeeringConfig

clear()

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

clearDomain()

public DnsPeeringConfig.Builder clearDomain()

Required. The DNS name suffix of the zone being peered to, e.g., "my-internal-domain.corp.". Must end with a dot.

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

Returns
Type Description
DnsPeeringConfig.Builder

This builder for chaining.

clearTargetNetwork()

public DnsPeeringConfig.Builder clearTargetNetwork()

Required. The VPC network name in the target_project where the DNS zone specified by 'domain' is visible.

string target_network = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DnsPeeringConfig.Builder

This builder for chaining.

clearTargetProject()

public DnsPeeringConfig.Builder clearTargetProject()

Required. The project ID hosting the Cloud DNS managed zone that contains the 'domain'. The Vertex AI Service Agent requires the dns.peer role on this project.

string target_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DnsPeeringConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public DnsPeeringConfig getDefaultInstanceForType()
Returns
Type Description
DnsPeeringConfig

getDescriptorForType()

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

getDomain()

public String getDomain()

Required. The DNS name suffix of the zone being peered to, e.g., "my-internal-domain.corp.". Must end with a dot.

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

Returns
Type Description
String

The domain.

getDomainBytes()

public ByteString getDomainBytes()

Required. The DNS name suffix of the zone being peered to, e.g., "my-internal-domain.corp.". Must end with a dot.

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

Returns
Type Description
ByteString

The bytes for domain.

getTargetNetwork()

public String getTargetNetwork()

Required. The VPC network name in the target_project where the DNS zone specified by 'domain' is visible.

string target_network = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The targetNetwork.

getTargetNetworkBytes()

public ByteString getTargetNetworkBytes()

Required. The VPC network name in the target_project where the DNS zone specified by 'domain' is visible.

string target_network = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for targetNetwork.

getTargetProject()

public String getTargetProject()

Required. The project ID hosting the Cloud DNS managed zone that contains the 'domain'. The Vertex AI Service Agent requires the dns.peer role on this project.

string target_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The targetProject.

getTargetProjectBytes()

public ByteString getTargetProjectBytes()

Required. The project ID hosting the Cloud DNS managed zone that contains the 'domain'. The Vertex AI Service Agent requires the dns.peer role on this project.

string target_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for targetProject.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DnsPeeringConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDomain(String value)

public DnsPeeringConfig.Builder setDomain(String value)

Required. The DNS name suffix of the zone being peered to, e.g., "my-internal-domain.corp.". Must end with a dot.

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

Parameter
Name Description
value String

The domain to set.

Returns
Type Description
DnsPeeringConfig.Builder

This builder for chaining.

setDomainBytes(ByteString value)

public DnsPeeringConfig.Builder setDomainBytes(ByteString value)

Required. The DNS name suffix of the zone being peered to, e.g., "my-internal-domain.corp.". Must end with a dot.

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

Parameter
Name Description
value ByteString

The bytes for domain to set.

Returns
Type Description
DnsPeeringConfig.Builder

This builder for chaining.

setTargetNetwork(String value)

public DnsPeeringConfig.Builder setTargetNetwork(String value)

Required. The VPC network name in the target_project where the DNS zone specified by 'domain' is visible.

string target_network = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The targetNetwork to set.

Returns
Type Description
DnsPeeringConfig.Builder

This builder for chaining.

setTargetNetworkBytes(ByteString value)

public DnsPeeringConfig.Builder setTargetNetworkBytes(ByteString value)

Required. The VPC network name in the target_project where the DNS zone specified by 'domain' is visible.

string target_network = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for targetNetwork to set.

Returns
Type Description
DnsPeeringConfig.Builder

This builder for chaining.

setTargetProject(String value)

public DnsPeeringConfig.Builder setTargetProject(String value)

Required. The project ID hosting the Cloud DNS managed zone that contains the 'domain'. The Vertex AI Service Agent requires the dns.peer role on this project.

string target_project = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The targetProject to set.

Returns
Type Description
DnsPeeringConfig.Builder

This builder for chaining.

setTargetProjectBytes(ByteString value)

public DnsPeeringConfig.Builder setTargetProjectBytes(ByteString value)

Required. The project ID hosting the Cloud DNS managed zone that contains the 'domain'. The Vertex AI Service Agent requires the dns.peer role on this project.

string target_project = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for targetProject to set.

Returns
Type Description
DnsPeeringConfig.Builder

This builder for chaining.