Class AgentGateway.NetworkConfig.DnsPeeringConfig (0.50.0)

public static final class AgentGateway.NetworkConfig.DnsPeeringConfig extends GeneratedMessage implements AgentGateway.NetworkConfig.DnsPeeringConfigOrBuilder

DNS peering config for the user VPC network.

Protobuf type google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AgentGateway.NetworkConfig.DnsPeeringConfig

Static Fields

DOMAINS_FIELD_NUMBER

public static final int DOMAINS_FIELD_NUMBER
Field Value
Type Description
int

TARGET_NETWORK_FIELD_NUMBER

public static final int TARGET_NETWORK_FIELD_NUMBER
Field Value
Type Description
int

TARGET_PROJECT_FIELD_NUMBER

public static final int TARGET_PROJECT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AgentGateway.NetworkConfig.DnsPeeringConfig getDefaultInstance()
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AgentGateway.NetworkConfig.DnsPeeringConfig.Builder newBuilder()
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

newBuilder(AgentGateway.NetworkConfig.DnsPeeringConfig prototype)

public static AgentGateway.NetworkConfig.DnsPeeringConfig.Builder newBuilder(AgentGateway.NetworkConfig.DnsPeeringConfig prototype)
Parameter
Name Description
prototype AgentGateway.NetworkConfig.DnsPeeringConfig
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

parseDelimitedFrom(InputStream input)

public static AgentGateway.NetworkConfig.DnsPeeringConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentGateway.NetworkConfig.DnsPeeringConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AgentGateway.NetworkConfig.DnsPeeringConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AgentGateway.NetworkConfig.DnsPeeringConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AgentGateway.NetworkConfig.DnsPeeringConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AgentGateway.NetworkConfig.DnsPeeringConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AgentGateway.NetworkConfig.DnsPeeringConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentGateway.NetworkConfig.DnsPeeringConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AgentGateway.NetworkConfig.DnsPeeringConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentGateway.NetworkConfig.DnsPeeringConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AgentGateway.NetworkConfig.DnsPeeringConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AgentGateway.NetworkConfig.DnsPeeringConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AgentGateway.NetworkConfig.DnsPeeringConfig> parser()
Returns
Type Description
Parser<DnsPeeringConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AgentGateway.NetworkConfig.DnsPeeringConfig getDefaultInstanceForType()
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig

getDomains(int index)

public String getDomains(int index)

Required. Domain names for which DNS queries should be forwarded to the target network.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The domains at the given index.

getDomainsBytes(int index)

public ByteString getDomainsBytes(int index)

Required. Domain names for which DNS queries should be forwarded to the target network.

repeated string domains = 1 [(.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 domains at the given index.

getDomainsCount()

public int getDomainsCount()

Required. Domain names for which DNS queries should be forwarded to the target network.

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

Returns
Type Description
int

The count of domains.

getDomainsList()

public ProtocolStringList getDomainsList()

Required. Domain names for which DNS queries should be forwarded to the target network.

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

Returns
Type Description
ProtocolStringList

A list containing the domains.

getParserForType()

public Parser<AgentGateway.NetworkConfig.DnsPeeringConfig> getParserForType()
Returns
Type Description
Parser<DnsPeeringConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetNetwork()

public String getTargetNetwork()

Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of projects/{project}/global/networks/{network}.

string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The targetNetwork.

getTargetNetworkBytes()

public ByteString getTargetNetworkBytes()

Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of projects/{project}/global/networks/{network}.

string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for targetNetwork.

getTargetProject()

public String getTargetProject()

Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.

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

Returns
Type Description
String

The targetProject.

getTargetProjectBytes()

public ByteString getTargetProjectBytes()

Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.

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

Returns
Type Description
ByteString

The bytes for targetProject.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AgentGateway.NetworkConfig.DnsPeeringConfig.Builder newBuilderForType()
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AgentGateway.NetworkConfig.DnsPeeringConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder
Overrides

toBuilder()

public AgentGateway.NetworkConfig.DnsPeeringConfig.Builder toBuilder()
Returns
Type Description
AgentGateway.NetworkConfig.DnsPeeringConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException