Class DnsForwarding.ForwardingRule (0.28.0)

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

DOMAIN_FIELD_NUMBER

public static final int DOMAIN_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_SERVERS_FIELD_NUMBER

public static final int NAME_SERVERS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DnsForwarding.ForwardingRule getDefaultInstance()
Returns
TypeDescription
DnsForwarding.ForwardingRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DnsForwarding.ForwardingRule.Builder newBuilder()
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder

newBuilder(DnsForwarding.ForwardingRule prototype)

public static DnsForwarding.ForwardingRule.Builder newBuilder(DnsForwarding.ForwardingRule prototype)
Parameter
NameDescription
prototypeDnsForwarding.ForwardingRule
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder

parseDelimitedFrom(InputStream input)

public static DnsForwarding.ForwardingRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DnsForwarding.ForwardingRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DnsForwarding.ForwardingRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsForwarding.ForwardingRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DnsForwarding.ForwardingRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DnsForwarding.ForwardingRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DnsForwarding.ForwardingRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsForwarding.ForwardingRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DnsForwarding.ForwardingRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DnsForwarding.ForwardingRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DnsForwarding.ForwardingRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsForwarding.ForwardingRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DnsForwarding.ForwardingRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DnsForwarding.ForwardingRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DnsForwarding.ForwardingRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsForwarding.ForwardingRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DnsForwarding.ForwardingRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DnsForwarding.ForwardingRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DnsForwarding.ForwardingRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsForwarding.ForwardingRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DnsForwarding.ForwardingRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DnsForwarding.ForwardingRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DnsForwarding.ForwardingRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsForwarding.ForwardingRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DnsForwarding.ForwardingRule> parser()
Returns
TypeDescription
Parser<ForwardingRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<DnsForwarding.ForwardingRule> getParserForType()
Returns
TypeDescription
Parser<ForwardingRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DnsForwarding.ForwardingRule.Builder newBuilderForType()
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DnsForwarding.ForwardingRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DnsForwarding.ForwardingRule.Builder toBuilder()
Returns
TypeDescription
DnsForwarding.ForwardingRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException