public final class NetworksAddPeeringRequest extends GeneratedMessageV3 implements NetworksAddPeeringRequestOrBuilder
Protobuf type google.cloud.compute.v1.NetworksAddPeeringRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static NetworksAddPeeringRequest.Builder newBuilder()
newBuilder(NetworksAddPeeringRequest prototype)
public static NetworksAddPeeringRequest.Builder newBuilder(NetworksAddPeeringRequest prototype)
public static NetworksAddPeeringRequest parseDelimitedFrom(InputStream input)
public static NetworksAddPeeringRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static NetworksAddPeeringRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static NetworksAddPeeringRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static NetworksAddPeeringRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NetworksAddPeeringRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NetworksAddPeeringRequest parseFrom(CodedInputStream input)
public static NetworksAddPeeringRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static NetworksAddPeeringRequest parseFrom(InputStream input)
public static NetworksAddPeeringRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static NetworksAddPeeringRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static NetworksAddPeeringRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<NetworksAddPeeringRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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()
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;
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;
getParserForType()
public Parser<NetworksAddPeeringRequest> getParserForType()
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()
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 |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public NetworksAddPeeringRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected NetworksAddPeeringRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public NetworksAddPeeringRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides