- 1.65.0 (latest)
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class NetworkPeering.Builder extends GeneratedMessageV3.Builder<NetworkPeering.Builder> 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > NetworkPeering.BuilderImplements
NetworkPeeringOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NetworkPeering.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
NetworkPeering.Builder |
build()
public NetworkPeering build()
Type | Description |
NetworkPeering |
buildPartial()
public NetworkPeering buildPartial()
Type | Description |
NetworkPeering |
clear()
public NetworkPeering.Builder clear()
Type | Description |
NetworkPeering.Builder |
clearAutoCreateRoutes()
public NetworkPeering.Builder clearAutoCreateRoutes()
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;
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
clearExchangeSubnetRoutes()
public NetworkPeering.Builder clearExchangeSubnetRoutes()
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;
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
clearExportCustomRoutes()
public NetworkPeering.Builder clearExportCustomRoutes()
Whether to export the custom routes to peer network. The default value is false.
optional bool export_custom_routes = 60281485;
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
clearExportSubnetRoutesWithPublicIp()
public NetworkPeering.Builder clearExportSubnetRoutesWithPublicIp()
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;
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public NetworkPeering.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
NetworkPeering.Builder |
clearImportCustomRoutes()
public NetworkPeering.Builder clearImportCustomRoutes()
Whether to import the custom routes from peer network. The default value is false.
optional bool import_custom_routes = 197982398;
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
clearImportSubnetRoutesWithPublicIp()
public NetworkPeering.Builder clearImportSubnetRoutesWithPublicIp()
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;
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
clearName()
public NetworkPeering.Builder clearName()
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?
. 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;
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
clearNetwork()
public NetworkPeering.Builder clearNetwork()
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;
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public NetworkPeering.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
NetworkPeering.Builder |
clearPeerMtu()
public NetworkPeering.Builder clearPeerMtu()
Maximum Transmission Unit in bytes.
optional int32 peer_mtu = 69584721;
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
clearState()
public NetworkPeering.Builder clearState()
[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;
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
clearStateDetails()
public NetworkPeering.Builder clearStateDetails()
[Output Only] Details about the current state of the peering.
optional string state_details = 95566996;
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
clone()
public NetworkPeering.Builder clone()
Type | Description |
NetworkPeering.Builder |
getAutoCreateRoutes()
public 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;
Type | Description |
boolean | The autoCreateRoutes. |
getDefaultInstanceForType()
public NetworkPeering getDefaultInstanceForType()
Type | Description |
NetworkPeering |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getExchangeSubnetRoutes()
public 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;
Type | Description |
boolean | The exchangeSubnetRoutes. |
getExportCustomRoutes()
public boolean getExportCustomRoutes()
Whether to export the custom routes to peer network. The default value is false.
optional bool export_custom_routes = 60281485;
Type | Description |
boolean | The exportCustomRoutes. |
getExportSubnetRoutesWithPublicIp()
public 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;
Type | Description |
boolean | The exportSubnetRoutesWithPublicIp. |
getImportCustomRoutes()
public boolean getImportCustomRoutes()
Whether to import the custom routes from peer network. The default value is false.
optional bool import_custom_routes = 197982398;
Type | Description |
boolean | The importCustomRoutes. |
getImportSubnetRoutesWithPublicIp()
public 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;
Type | Description |
boolean | The importSubnetRoutesWithPublicIp. |
getName()
public 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?
. 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;
Type | Description |
String | The name. |
getNameBytes()
public 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?
. 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;
Type | Description |
ByteString | The bytes for name. |
getNetwork()
public 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;
Type | Description |
String | The network. |
getNetworkBytes()
public 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;
Type | Description |
ByteString | The bytes for network. |
getPeerMtu()
public int getPeerMtu()
Maximum Transmission Unit in bytes.
optional int32 peer_mtu = 69584721;
Type | Description |
int | The peerMtu. |
getState()
public 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;
Type | Description |
String | The state. |
getStateBytes()
public 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;
Type | Description |
ByteString | The bytes for state. |
getStateDetails()
public String getStateDetails()
[Output Only] Details about the current state of the peering.
optional string state_details = 95566996;
Type | Description |
String | The stateDetails. |
getStateDetailsBytes()
public ByteString getStateDetailsBytes()
[Output Only] Details about the current state of the peering.
optional string state_details = 95566996;
Type | Description |
ByteString | The bytes for stateDetails. |
hasAutoCreateRoutes()
public 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;
Type | Description |
boolean | Whether the autoCreateRoutes field is set. |
hasExchangeSubnetRoutes()
public 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;
Type | Description |
boolean | Whether the exchangeSubnetRoutes field is set. |
hasExportCustomRoutes()
public boolean hasExportCustomRoutes()
Whether to export the custom routes to peer network. The default value is false.
optional bool export_custom_routes = 60281485;
Type | Description |
boolean | Whether the exportCustomRoutes field is set. |
hasExportSubnetRoutesWithPublicIp()
public 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;
Type | Description |
boolean | Whether the exportSubnetRoutesWithPublicIp field is set. |
hasImportCustomRoutes()
public boolean hasImportCustomRoutes()
Whether to import the custom routes from peer network. The default value is false.
optional bool import_custom_routes = 197982398;
Type | Description |
boolean | Whether the importCustomRoutes field is set. |
hasImportSubnetRoutesWithPublicIp()
public 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;
Type | Description |
boolean | Whether the importSubnetRoutesWithPublicIp field is set. |
hasName()
public 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?
. 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;
Type | Description |
boolean | Whether the name field is set. |
hasNetwork()
public 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;
Type | Description |
boolean | Whether the network field is set. |
hasPeerMtu()
public boolean hasPeerMtu()
Maximum Transmission Unit in bytes.
optional int32 peer_mtu = 69584721;
Type | Description |
boolean | Whether the peerMtu field is set. |
hasState()
public 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;
Type | Description |
boolean | Whether the state field is set. |
hasStateDetails()
public boolean hasStateDetails()
[Output Only] Details about the current state of the peering.
optional string state_details = 95566996;
Type | Description |
boolean | Whether the stateDetails field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(NetworkPeering other)
public NetworkPeering.Builder mergeFrom(NetworkPeering other)
Name | Description |
other | NetworkPeering |
Type | Description |
NetworkPeering.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NetworkPeering.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
NetworkPeering.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public NetworkPeering.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
NetworkPeering.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NetworkPeering.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
NetworkPeering.Builder |
setAutoCreateRoutes(boolean value)
public NetworkPeering.Builder setAutoCreateRoutes(boolean value)
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;
Name | Description |
value | boolean The autoCreateRoutes to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setExchangeSubnetRoutes(boolean value)
public NetworkPeering.Builder setExchangeSubnetRoutes(boolean value)
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;
Name | Description |
value | boolean The exchangeSubnetRoutes to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setExportCustomRoutes(boolean value)
public NetworkPeering.Builder setExportCustomRoutes(boolean value)
Whether to export the custom routes to peer network. The default value is false.
optional bool export_custom_routes = 60281485;
Name | Description |
value | boolean The exportCustomRoutes to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setExportSubnetRoutesWithPublicIp(boolean value)
public NetworkPeering.Builder setExportSubnetRoutesWithPublicIp(boolean value)
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;
Name | Description |
value | boolean The exportSubnetRoutesWithPublicIp to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public NetworkPeering.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
NetworkPeering.Builder |
setImportCustomRoutes(boolean value)
public NetworkPeering.Builder setImportCustomRoutes(boolean value)
Whether to import the custom routes from peer network. The default value is false.
optional bool import_custom_routes = 197982398;
Name | Description |
value | boolean The importCustomRoutes to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setImportSubnetRoutesWithPublicIp(boolean value)
public NetworkPeering.Builder setImportSubnetRoutesWithPublicIp(boolean value)
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;
Name | Description |
value | boolean The importSubnetRoutesWithPublicIp to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setName(String value)
public NetworkPeering.Builder setName(String value)
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?
. 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;
Name | Description |
value | String The name to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public NetworkPeering.Builder setNameBytes(ByteString value)
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?
. 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;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setNetwork(String value)
public NetworkPeering.Builder setNetwork(String value)
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;
Name | Description |
value | String The network to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setNetworkBytes(ByteString value)
public NetworkPeering.Builder setNetworkBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for network to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setPeerMtu(int value)
public NetworkPeering.Builder setPeerMtu(int value)
Maximum Transmission Unit in bytes.
optional int32 peer_mtu = 69584721;
Name | Description |
value | int The peerMtu to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NetworkPeering.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
NetworkPeering.Builder |
setState(String value)
public NetworkPeering.Builder setState(String value)
[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;
Name | Description |
value | String The state to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setStateBytes(ByteString value)
public NetworkPeering.Builder setStateBytes(ByteString value)
[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;
Name | Description |
value | ByteString The bytes for state to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setStateDetails(String value)
public NetworkPeering.Builder setStateDetails(String value)
[Output Only] Details about the current state of the peering.
optional string state_details = 95566996;
Name | Description |
value | String The stateDetails to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setStateDetailsBytes(ByteString value)
public NetworkPeering.Builder setStateDetailsBytes(ByteString value)
[Output Only] Details about the current state of the peering.
optional string state_details = 95566996;
Name | Description |
value | ByteString The bytes for stateDetails to set. |
Type | Description |
NetworkPeering.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final NetworkPeering.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
NetworkPeering.Builder |