Class DnsForwarding.ForwardingRule.Builder (0.38.0)

public static final class DnsForwarding.ForwardingRule.Builder extends GeneratedMessageV3.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

Static 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 String

The 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 ByteString

The bytes of the nameServers to add.

Returns
Type Description
DnsForwarding.ForwardingRule.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

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

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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public DnsForwarding.ForwardingRule.Builder clone()
Returns
Type Description
DnsForwarding.ForwardingRule.Builder
Overrides

getDefaultInstanceForType()

public DnsForwarding.ForwardingRule getDefaultInstanceForType()
Returns
Type Description
DnsForwarding.ForwardingRule

getDescriptorForType()

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

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 int

The 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 int

The 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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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 String

The 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 ByteString

The bytes for domain to set.

Returns
Type Description
DnsForwarding.ForwardingRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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 int

The index to set the value at.

value String

The nameServers to set.

Returns
Type Description
DnsForwarding.ForwardingRule.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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