Class NetworksAddPeeringRequest (1.21.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
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_PEERING_FIELD_NUMBER

public static final int NETWORK_PEERING_FIELD_NUMBER
Field Value
TypeDescription
int

PEER_NETWORK_FIELD_NUMBER

public static final int PEER_NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NetworksAddPeeringRequest getDefaultInstance()
Returns
TypeDescription
NetworksAddPeeringRequest

getDescriptor()

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

newBuilder()

public static NetworksAddPeeringRequest.Builder newBuilder()
Returns
TypeDescription
NetworksAddPeeringRequest.Builder

newBuilder(NetworksAddPeeringRequest prototype)

public static NetworksAddPeeringRequest.Builder newBuilder(NetworksAddPeeringRequest prototype)
Parameter
NameDescription
prototypeNetworksAddPeeringRequest
Returns
TypeDescription
NetworksAddPeeringRequest.Builder

parseDelimitedFrom(InputStream input)

public static NetworksAddPeeringRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworksAddPeeringRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static NetworksAddPeeringRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NetworksAddPeeringRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static NetworksAddPeeringRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NetworksAddPeeringRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static NetworksAddPeeringRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworksAddPeeringRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static NetworksAddPeeringRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NetworksAddPeeringRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<NetworksAddPeeringRequest> parser()
Returns
TypeDescription
Parser<NetworksAddPeeringRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
boolean

The autoCreateRoutes.

getDefaultInstanceForType()

public NetworksAddPeeringRequest getDefaultInstanceForType()
Returns
TypeDescription
NetworksAddPeeringRequest

getName()

public String getName()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
NetworkPeeringOrBuilder

getParserForType()

public Parser<NetworksAddPeeringRequest> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for peerNetwork.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the peerNetwork field is set.

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 NetworksAddPeeringRequest.Builder newBuilderForType()
Returns
TypeDescription
NetworksAddPeeringRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public NetworksAddPeeringRequest.Builder toBuilder()
Returns
TypeDescription
NetworksAddPeeringRequest.Builder

writeTo(CodedOutputStream output)

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