public static final class DnsForwarding.ForwardingRule.Builder extends GeneratedMessage.Builder<DnsForwarding.ForwardingRule.Builder> implements DnsForwarding.ForwardingRuleOrBuilder A forwarding rule is a mapping of a domain to name_servers.
This mapping allows VMware Engine to resolve domains for attached private
clouds by forwarding DNS requests for a given domain to the specified
nameservers.
Protobuf type google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DnsForwarding.ForwardingRule.BuilderImplements
DnsForwarding.ForwardingRuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllNameServers(Iterable<String> values)
public DnsForwarding.ForwardingRule.Builder addAllNameServers(Iterable<String> values)Required. List of DNS servers to use for domain resolution
repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The nameServers to add. |
| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule.Builder |
This builder for chaining. |
addNameServers(String value)
public DnsForwarding.ForwardingRule.Builder addNameServers(String value)Required. List of DNS servers to use for domain resolution
repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe nameServers to add. |
| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule.Builder |
This builder for chaining. |
addNameServersBytes(ByteString value)
public DnsForwarding.ForwardingRule.Builder addNameServersBytes(ByteString value)Required. List of DNS servers to use for domain resolution
repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the nameServers to add. |
| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule.Builder |
This builder for chaining. |
build()
public DnsForwarding.ForwardingRule build()| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule |
|
buildPartial()
public DnsForwarding.ForwardingRule buildPartial()| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule |
|
clear()
public DnsForwarding.ForwardingRule.Builder clear()| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule.Builder |
|
clearDomain()
public DnsForwarding.ForwardingRule.Builder clearDomain() Required. Domain used to resolve a name_servers list.
string domain = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule.Builder |
This builder for chaining. |
clearNameServers()
public DnsForwarding.ForwardingRule.Builder clearNameServers()Required. List of DNS servers to use for domain resolution
repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public DnsForwarding.ForwardingRule getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDomain()
public String getDomain() Required. Domain used to resolve a name_servers list.
string domain = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The domain. |
getDomainBytes()
public ByteString getDomainBytes() Required. Domain used to resolve a name_servers list.
string domain = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for domain. |
getNameServers(int index)
public 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 | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The nameServers at the given index. |
getNameServersBytes(int index)
public 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 | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the nameServers at the given index. |
getNameServersCount()
public int getNameServersCount()Required. List of DNS servers to use for domain resolution
repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of nameServers. |
getNameServersList()
public ProtocolStringList getNameServersList()Required. List of DNS servers to use for domain resolution
repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the nameServers. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DnsForwarding.ForwardingRule other)
public DnsForwarding.ForwardingRule.Builder mergeFrom(DnsForwarding.ForwardingRule other)| Parameter | |
|---|---|
| Name | Description |
other |
DnsForwarding.ForwardingRule |
| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DnsForwarding.ForwardingRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DnsForwarding.ForwardingRule.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule.Builder |
|
setDomain(String value)
public DnsForwarding.ForwardingRule.Builder setDomain(String value) Required. Domain used to resolve a name_servers list.
string domain = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe domain to set. |
| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule.Builder |
This builder for chaining. |
setDomainBytes(ByteString value)
public DnsForwarding.ForwardingRule.Builder setDomainBytes(ByteString value) Required. Domain used to resolve a name_servers list.
string domain = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for domain to set. |
| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule.Builder |
This builder for chaining. |
setNameServers(int index, String value)
public DnsForwarding.ForwardingRule.Builder setNameServers(int index, String value)Required. List of DNS servers to use for domain resolution
repeated string name_servers = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe nameServers to set. |
| Returns | |
|---|---|
| Type | Description |
DnsForwarding.ForwardingRule.Builder |
This builder for chaining. |