Interface DnsForwarding.ForwardingRuleOrBuilder (0.35.0)

public static interface DnsForwarding.ForwardingRuleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDomain()

public abstract String getDomain()

Required. Domain used to resolve a name_servers list.

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

Returns
TypeDescription
String

The domain.

getDomainBytes()

public abstract ByteString getDomainBytes()

Required. Domain used to resolve a name_servers list.

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

Returns
TypeDescription
ByteString

The bytes for domain.

getNameServers(int index)

public abstract String getNameServers(int index)

Required. List of DNS servers to use for domain resolution

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The nameServers at the given index.

getNameServersBytes(int index)

public abstract ByteString getNameServersBytes(int index)

Required. List of DNS servers to use for domain resolution

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

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the nameServers at the given index.

getNameServersCount()

public abstract int getNameServersCount()

Required. List of DNS servers to use for domain resolution

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

Returns
TypeDescription
int

The count of nameServers.

getNameServersList()

public abstract List<String> getNameServersList()

Required. List of DNS servers to use for domain resolution

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

Returns
TypeDescription
List<String>

A list containing the nameServers.