public final class NetworkPeering extends com.google.protobuf.GeneratedMessageV3 implements NetworkPeeringOrBuilder
A network peering attached to a network resource. The message includes the peering name, peer network, peering state, and a flag indicating whether Google Compute Engine should automatically create routes for the peering.Protobuf type
google.cloud.compute.v1.NetworkPeering| Modifier and Type | Class and Description |
|---|---|
static class |
NetworkPeering.Builder
A network peering attached to a network resource.
|
static class |
NetworkPeering.StackType
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.
|
static class |
NetworkPeering.State
[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_CREATE_ROUTES_FIELD_NUMBER |
static int |
EXCHANGE_SUBNET_ROUTES_FIELD_NUMBER |
static int |
EXPORT_CUSTOM_ROUTES_FIELD_NUMBER |
static int |
EXPORT_SUBNET_ROUTES_WITH_PUBLIC_IP_FIELD_NUMBER |
static int |
IMPORT_CUSTOM_ROUTES_FIELD_NUMBER |
static int |
IMPORT_SUBNET_ROUTES_WITH_PUBLIC_IP_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NETWORK_FIELD_NUMBER |
static int |
PEER_MTU_FIELD_NUMBER |
static int |
STACK_TYPE_FIELD_NUMBER |
static int |
STATE_DETAILS_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAutoCreateRoutes()
This field will be deprecated soon.
|
static NetworkPeering |
getDefaultInstance() |
NetworkPeering |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getExchangeSubnetRoutes()
Indicates whether full mesh connectivity is created and managed automatically between peered networks.
|
boolean |
getExportCustomRoutes()
Whether to export the custom routes to peer network.
|
boolean |
getExportSubnetRoutesWithPublicIp()
Whether subnet routes with public IP range are exported.
|
boolean |
getImportCustomRoutes()
Whether to import the custom routes from peer network.
|
boolean |
getImportSubnetRoutesWithPublicIp()
Whether subnet routes with public IP range are imported.
|
String |
getName()
Name of this peering.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of this peering.
|
String |
getNetwork()
The URL of the peer network.
|
com.google.protobuf.ByteString |
getNetworkBytes()
The URL of the peer network.
|
com.google.protobuf.Parser<NetworkPeering> |
getParserForType() |
int |
getPeerMtu()
Maximum Transmission Unit in bytes.
|
int |
getSerializedSize() |
String |
getStackType()
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.
|
com.google.protobuf.ByteString |
getStackTypeBytes()
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.
|
String |
getState()
[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`.
|
com.google.protobuf.ByteString |
getStateBytes()
[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`.
|
String |
getStateDetails()
[Output Only] Details about the current state of the peering.
|
com.google.protobuf.ByteString |
getStateDetailsBytes()
[Output Only] Details about the current state of the peering.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAutoCreateRoutes()
This field will be deprecated soon.
|
boolean |
hasExchangeSubnetRoutes()
Indicates whether full mesh connectivity is created and managed automatically between peered networks.
|
boolean |
hasExportCustomRoutes()
Whether to export the custom routes to peer network.
|
boolean |
hasExportSubnetRoutesWithPublicIp()
Whether subnet routes with public IP range are exported.
|
int |
hashCode() |
boolean |
hasImportCustomRoutes()
Whether to import the custom routes from peer network.
|
boolean |
hasImportSubnetRoutesWithPublicIp()
Whether subnet routes with public IP range are imported.
|
boolean |
hasName()
Name of this peering.
|
boolean |
hasNetwork()
The URL of the peer network.
|
boolean |
hasPeerMtu()
Maximum Transmission Unit in bytes.
|
boolean |
hasStackType()
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.
|
boolean |
hasState()
[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`.
|
boolean |
hasStateDetails()
[Output Only] Details about the current state of the peering.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static NetworkPeering.Builder |
newBuilder() |
static NetworkPeering.Builder |
newBuilder(NetworkPeering prototype) |
NetworkPeering.Builder |
newBuilderForType() |
protected NetworkPeering.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static NetworkPeering |
parseDelimitedFrom(InputStream input) |
static NetworkPeering |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NetworkPeering |
parseFrom(byte[] data) |
static NetworkPeering |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NetworkPeering |
parseFrom(ByteBuffer data) |
static NetworkPeering |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NetworkPeering |
parseFrom(com.google.protobuf.ByteString data) |
static NetworkPeering |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NetworkPeering |
parseFrom(com.google.protobuf.CodedInputStream input) |
static NetworkPeering |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NetworkPeering |
parseFrom(InputStream input) |
static NetworkPeering |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<NetworkPeering> |
parser() |
NetworkPeering.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int AUTO_CREATE_ROUTES_FIELD_NUMBER
public static final int EXCHANGE_SUBNET_ROUTES_FIELD_NUMBER
public static final int EXPORT_CUSTOM_ROUTES_FIELD_NUMBER
public static final int EXPORT_SUBNET_ROUTES_WITH_PUBLIC_IP_FIELD_NUMBER
public static final int IMPORT_CUSTOM_ROUTES_FIELD_NUMBER
public static final int IMPORT_SUBNET_ROUTES_WITH_PUBLIC_IP_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
public static final int PEER_MTU_FIELD_NUMBER
public static final int STACK_TYPE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int STATE_DETAILS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasAutoCreateRoutes()
This field will be deprecated soon. Use the exchange_subnet_routes field 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;hasAutoCreateRoutes in interface NetworkPeeringOrBuilderpublic boolean getAutoCreateRoutes()
This field will be deprecated soon. Use the exchange_subnet_routes field 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;getAutoCreateRoutes in interface NetworkPeeringOrBuilderpublic boolean hasExchangeSubnetRoutes()
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 exchange_subnet_routes = 26322256;hasExchangeSubnetRoutes in interface NetworkPeeringOrBuilderpublic boolean getExchangeSubnetRoutes()
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 exchange_subnet_routes = 26322256;getExchangeSubnetRoutes in interface NetworkPeeringOrBuilderpublic boolean hasExportCustomRoutes()
Whether to export the custom routes to peer network. The default value is false.
optional bool export_custom_routes = 60281485;hasExportCustomRoutes in interface NetworkPeeringOrBuilderpublic boolean getExportCustomRoutes()
Whether to export the custom routes to peer network. The default value is false.
optional bool export_custom_routes = 60281485;getExportCustomRoutes in interface NetworkPeeringOrBuilderpublic boolean hasExportSubnetRoutesWithPublicIp()
Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field.
optional bool export_subnet_routes_with_public_ip = 97940834;hasExportSubnetRoutesWithPublicIp in interface NetworkPeeringOrBuilderpublic boolean getExportSubnetRoutesWithPublicIp()
Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field.
optional bool export_subnet_routes_with_public_ip = 97940834;getExportSubnetRoutesWithPublicIp in interface NetworkPeeringOrBuilderpublic boolean hasImportCustomRoutes()
Whether to import the custom routes from peer network. The default value is false.
optional bool import_custom_routes = 197982398;hasImportCustomRoutes in interface NetworkPeeringOrBuilderpublic boolean getImportCustomRoutes()
Whether to import the custom routes from peer network. The default value is false.
optional bool import_custom_routes = 197982398;getImportCustomRoutes in interface NetworkPeeringOrBuilderpublic boolean hasImportSubnetRoutesWithPublicIp()
Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field.
optional bool import_subnet_routes_with_public_ip = 14419729;hasImportSubnetRoutesWithPublicIp in interface NetworkPeeringOrBuilderpublic boolean getImportSubnetRoutesWithPublicIp()
Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field.
optional bool import_subnet_routes_with_public_ip = 14419729;getImportSubnetRoutesWithPublicIp in interface NetworkPeeringOrBuilderpublic boolean hasName()
Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;hasName in interface NetworkPeeringOrBuilderpublic String getName()
Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getName in interface NetworkPeeringOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getNameBytes in interface NetworkPeeringOrBuilderpublic boolean hasNetwork()
The 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 network = 232872494;hasNetwork in interface NetworkPeeringOrBuilderpublic String getNetwork()
The 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 network = 232872494;getNetwork in interface NetworkPeeringOrBuilderpublic com.google.protobuf.ByteString getNetworkBytes()
The 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 network = 232872494;getNetworkBytes in interface NetworkPeeringOrBuilderpublic boolean hasPeerMtu()
Maximum Transmission Unit in bytes.
optional int32 peer_mtu = 69584721;hasPeerMtu in interface NetworkPeeringOrBuilderpublic int getPeerMtu()
Maximum Transmission Unit in bytes.
optional int32 peer_mtu = 69584721;getPeerMtu in interface NetworkPeeringOrBuilderpublic boolean hasStackType()
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;hasStackType in interface NetworkPeeringOrBuilderpublic String getStackType()
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;getStackType in interface NetworkPeeringOrBuilderpublic com.google.protobuf.ByteString getStackTypeBytes()
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;getStackTypeBytes in interface NetworkPeeringOrBuilderpublic boolean hasState()
[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network. Check the State enum for the list of possible values.
optional string state = 109757585;hasState in interface NetworkPeeringOrBuilderpublic String getState()
[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network. Check the State enum for the list of possible values.
optional string state = 109757585;getState in interface NetworkPeeringOrBuilderpublic com.google.protobuf.ByteString getStateBytes()
[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network. Check the State enum for the list of possible values.
optional string state = 109757585;getStateBytes in interface NetworkPeeringOrBuilderpublic boolean hasStateDetails()
[Output Only] Details about the current state of the peering.
optional string state_details = 95566996;hasStateDetails in interface NetworkPeeringOrBuilderpublic String getStateDetails()
[Output Only] Details about the current state of the peering.
optional string state_details = 95566996;getStateDetails in interface NetworkPeeringOrBuilderpublic com.google.protobuf.ByteString getStateDetailsBytes()
[Output Only] Details about the current state of the peering.
optional string state_details = 95566996;getStateDetailsBytes in interface NetworkPeeringOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static NetworkPeering parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NetworkPeering parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NetworkPeering parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NetworkPeering parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NetworkPeering parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NetworkPeering parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NetworkPeering parseFrom(InputStream input) throws IOException
IOExceptionpublic static NetworkPeering parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static NetworkPeering parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static NetworkPeering parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static NetworkPeering parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static NetworkPeering parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic NetworkPeering.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static NetworkPeering.Builder newBuilder()
public static NetworkPeering.Builder newBuilder(NetworkPeering prototype)
public NetworkPeering.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected NetworkPeering.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static NetworkPeering getDefaultInstance()
public static com.google.protobuf.Parser<NetworkPeering> parser()
public com.google.protobuf.Parser<NetworkPeering> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public NetworkPeering getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.