Class NetworksAddPeeringRequest (1.53.0)

public final class NetworksAddPeeringRequest extends GeneratedMessageV3 implements NetworksAddPeeringRequestOrBuilder

Protobuf type google.cloud.compute.v1.NetworksAddPeeringRequest

Static Fields

AUTO_CREATE_ROUTES_FIELD_NUMBER

public static final int AUTO_CREATE_ROUTES_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_PEERING_FIELD_NUMBER

public static final int NETWORK_PEERING_FIELD_NUMBER
Field Value
Type Description
int

PEER_NETWORK_FIELD_NUMBER

public static final int PEER_NETWORK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NetworksAddPeeringRequest getDefaultInstance()
Returns
Type Description
NetworksAddPeeringRequest

getDescriptor()

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

newBuilder()

public static NetworksAddPeeringRequest.Builder newBuilder()
Returns
Type Description
NetworksAddPeeringRequest.Builder

newBuilder(NetworksAddPeeringRequest prototype)

public static NetworksAddPeeringRequest.Builder newBuilder(NetworksAddPeeringRequest prototype)
Parameter
Name Description
prototype NetworksAddPeeringRequest
Returns
Type Description
NetworksAddPeeringRequest.Builder

parseDelimitedFrom(InputStream input)

public static NetworksAddPeeringRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworksAddPeeringRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworksAddPeeringRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworksAddPeeringRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NetworksAddPeeringRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NetworksAddPeeringRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworksAddPeeringRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworksAddPeeringRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworksAddPeeringRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NetworksAddPeeringRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworksAddPeeringRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworksAddPeeringRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworksAddPeeringRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NetworksAddPeeringRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworksAddPeeringRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworksAddPeeringRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NetworksAddPeeringRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworksAddPeeringRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworksAddPeeringRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworksAddPeeringRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NetworksAddPeeringRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NetworksAddPeeringRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworksAddPeeringRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworksAddPeeringRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NetworksAddPeeringRequest> parser()
Returns
Type Description
Parser<NetworksAddPeeringRequest>

Methods

equals(Object obj)

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

getAutoCreateRoutes()

public boolean getAutoCreateRoutes()

This field will be deprecated soon. Use exchange_subnet_routes in network_peering instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.

optional bool auto_create_routes = 57454941;

Returns
Type Description
boolean

The autoCreateRoutes.

getDefaultInstanceForType()

public NetworksAddPeeringRequest getDefaultInstanceForType()
Returns
Type Description
NetworksAddPeeringRequest

getName()

public String getName()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getNetworkPeering()

public NetworkPeering getNetworkPeering()

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Returns
Type Description
NetworkPeering

The networkPeering.

getNetworkPeeringOrBuilder()

public NetworkPeeringOrBuilder getNetworkPeeringOrBuilder()

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Returns
Type Description
NetworkPeeringOrBuilder

getParserForType()

public Parser<NetworksAddPeeringRequest> getParserForType()
Returns
Type Description
Parser<NetworksAddPeeringRequest>
Overrides

getPeerNetwork()

public String getPeerNetwork()

URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.

optional string peer_network = 500625489;

Returns
Type Description
String

The peerNetwork.

getPeerNetworkBytes()

public ByteString getPeerNetworkBytes()

URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.

optional string peer_network = 500625489;

Returns
Type Description
ByteString

The bytes for peerNetwork.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAutoCreateRoutes()

public boolean hasAutoCreateRoutes()

This field will be deprecated soon. Use exchange_subnet_routes in network_peering instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.

optional bool auto_create_routes = 57454941;

Returns
Type Description
boolean

Whether the autoCreateRoutes field is set.

hasName()

public boolean hasName()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasNetworkPeering()

public boolean hasNetworkPeering()

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Returns
Type Description
boolean

Whether the networkPeering field is set.

hasPeerNetwork()

public boolean hasPeerNetwork()

URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.

optional string peer_network = 500625489;

Returns
Type Description
boolean

Whether the peerNetwork field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NetworksAddPeeringRequest.Builder newBuilderForType()
Returns
Type Description
NetworksAddPeeringRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworksAddPeeringRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NetworksAddPeeringRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NetworksAddPeeringRequest.Builder toBuilder()
Returns
Type Description
NetworksAddPeeringRequest.Builder

writeTo(CodedOutputStream output)

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