Class DnsForwarding.ForwardingRule.Builder (0.33.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
TypeDescription
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
NameDescription
valuesIterable<String>

The nameServers to add.

Returns
TypeDescription
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
NameDescription
valueString

The nameServers to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the nameServers to add.

Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DnsForwarding.ForwardingRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder
Overrides

build()

public DnsForwarding.ForwardingRule build()
Returns
TypeDescription
DnsForwarding.ForwardingRule

buildPartial()

public DnsForwarding.ForwardingRule buildPartial()
Returns
TypeDescription
DnsForwarding.ForwardingRule

clear()

public DnsForwarding.ForwardingRule.Builder clear()
Returns
TypeDescription
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
TypeDescription
DnsForwarding.ForwardingRule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DnsForwarding.ForwardingRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DnsForwarding.ForwardingRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DnsForwarding.ForwardingRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder
Overrides

clone()

public DnsForwarding.ForwardingRule.Builder clone()
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder
Overrides

getDefaultInstanceForType()

public DnsForwarding.ForwardingRule getDefaultInstanceForType()
Returns
TypeDescription
DnsForwarding.ForwardingRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDomain()

public 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 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 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 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 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 ProtocolStringList getNameServersList()

Required. List of DNS servers to use for domain resolution

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

Returns
TypeDescription
ProtocolStringList

A list containing the nameServers.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DnsForwarding.ForwardingRule other)

public DnsForwarding.ForwardingRule.Builder mergeFrom(DnsForwarding.ForwardingRule other)
Parameter
NameDescription
otherDnsForwarding.ForwardingRule
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DnsForwarding.ForwardingRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DnsForwarding.ForwardingRule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DnsForwarding.ForwardingRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The domain to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for domain to set.

Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DnsForwarding.ForwardingRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The nameServers to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DnsForwarding.ForwardingRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder
Overrides