Class AgentGateway.NetworkConfig.DnsPeeringConfig.Builder (0.50.0)

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

DNS peering config for the user VPC network.

Protobuf type google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig

Static Methods

getDescriptor()

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

Methods

addAllDomains(Iterable<String> values)

public AgentGateway.NetworkConfig.DnsPeeringConfig.Builder addAllDomains(Iterable<String> values)

Required. Domain names for which DNS queries should be forwarded to the target network.

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

Parameter
Name Description
values Iterable<String>

The domains to add.

Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

This builder for chaining.

addDomains(String value)

public AgentGateway.NetworkConfig.DnsPeeringConfig.Builder addDomains(String value)

Required. Domain names for which DNS queries should be forwarded to the target network.

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

Parameter
Name Description
value String

The domains to add.

Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

This builder for chaining.

addDomainsBytes(ByteString value)

public AgentGateway.NetworkConfig.DnsPeeringConfig.Builder addDomainsBytes(ByteString value)

Required. Domain names for which DNS queries should be forwarded to the target network.

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

Parameter
Name Description
value ByteString

The bytes of the domains to add.

Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

This builder for chaining.

build()

public AgentGateway.NetworkConfig.DnsPeeringConfig build()
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig

buildPartial()

public AgentGateway.NetworkConfig.DnsPeeringConfig buildPartial()
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig

clear()

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

clearDomains()

public AgentGateway.NetworkConfig.DnsPeeringConfig.Builder clearDomains()

Required. Domain names for which DNS queries should be forwarded to the target network.

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

Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

This builder for chaining.

clearTargetNetwork()

public AgentGateway.NetworkConfig.DnsPeeringConfig.Builder clearTargetNetwork()

Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of projects/{project}/global/networks/{network}.

string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

This builder for chaining.

clearTargetProject()

public AgentGateway.NetworkConfig.DnsPeeringConfig.Builder clearTargetProject()

Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.

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

Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public AgentGateway.NetworkConfig.DnsPeeringConfig getDefaultInstanceForType()
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig

getDescriptorForType()

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

getDomains(int index)

public String getDomains(int index)

Required. Domain names for which DNS queries should be forwarded to the target network.

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

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)

Required. Domain names for which DNS queries should be forwarded to the target network.

repeated string domains = 1 [(.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 domains at the given index.

getDomainsCount()

public int getDomainsCount()

Required. Domain names for which DNS queries should be forwarded to the target network.

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

Returns
Type Description
int

The count of domains.

getDomainsList()

public ProtocolStringList getDomainsList()

Required. Domain names for which DNS queries should be forwarded to the target network.

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

Returns
Type Description
ProtocolStringList

A list containing the domains.

getTargetNetwork()

public String getTargetNetwork()

Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of projects/{project}/global/networks/{network}.

string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The targetNetwork.

getTargetNetworkBytes()

public ByteString getTargetNetworkBytes()

Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of projects/{project}/global/networks/{network}.

string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for targetNetwork.

getTargetProject()

public String getTargetProject()

Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.

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

Returns
Type Description
String

The targetProject.

getTargetProjectBytes()

public ByteString getTargetProjectBytes()

Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different 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(AgentGateway.NetworkConfig.DnsPeeringConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDomains(int index, String value)

public AgentGateway.NetworkConfig.DnsPeeringConfig.Builder setDomains(int index, String value)

Required. Domain names for which DNS queries should be forwarded to the target network.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The domains to set.

Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

This builder for chaining.

setTargetNetwork(String value)

public AgentGateway.NetworkConfig.DnsPeeringConfig.Builder setTargetNetwork(String value)

Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of projects/{project}/global/networks/{network}.

string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The targetNetwork to set.

Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

This builder for chaining.

setTargetNetworkBytes(ByteString value)

public AgentGateway.NetworkConfig.DnsPeeringConfig.Builder setTargetNetworkBytes(ByteString value)

Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of projects/{project}/global/networks/{network}.

string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for targetNetwork to set.

Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

This builder for chaining.

setTargetProject(String value)

public AgentGateway.NetworkConfig.DnsPeeringConfig.Builder setTargetProject(String value)

Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.

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

Parameter
Name Description
value String

The targetProject to set.

Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

This builder for chaining.

setTargetProjectBytes(ByteString value)

public AgentGateway.NetworkConfig.DnsPeeringConfig.Builder setTargetProjectBytes(ByteString value)

Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.

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

Parameter
Name Description
value ByteString

The bytes for targetProject to set.

Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

This builder for chaining.