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
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
NETWORK_PEERING_FIELD_NUMBER
public static final int NETWORK_PEERING_FIELD_NUMBER
Field Value
PEER_NETWORK_FIELD_NUMBER
public static final int PEER_NETWORK_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static NetworksAddPeeringRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static NetworksAddPeeringRequest.Builder newBuilder()
Returns
newBuilder(NetworksAddPeeringRequest prototype)
public static NetworksAddPeeringRequest.Builder newBuilder(NetworksAddPeeringRequest prototype)
Parameter
Returns
public static NetworksAddPeeringRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static NetworksAddPeeringRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static NetworksAddPeeringRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static NetworksAddPeeringRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static NetworksAddPeeringRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NetworksAddPeeringRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NetworksAddPeeringRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static NetworksAddPeeringRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NetworksAddPeeringRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static NetworksAddPeeringRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static NetworksAddPeeringRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static NetworksAddPeeringRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<NetworksAddPeeringRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
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
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
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
getParserForType()
public Parser<NetworksAddPeeringRequest> getParserForType()
Returns
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
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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()
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public NetworksAddPeeringRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected NetworksAddPeeringRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public NetworksAddPeeringRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions