Package com.google.cloud.compute.v1
Class NetworkPeering.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NetworkPeering.Builder>
com.google.cloud.compute.v1.NetworkPeering.Builder
- All Implemented Interfaces:
NetworkPeeringOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NetworkPeering
public static final class NetworkPeering.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()This field will be deprecated soon.Output only.Indicates whether full mesh connectivity is created and managed automatically between peered networks.Whether to export the custom routes to peer network.Whether subnet routes with public IP range are exported.Whether to import the custom routes from peer network.Whether subnet routes with public IP range are imported.Name of this peering.The URL of the peer network.Output only.Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.Output only.Output only.The update strategy determines the semantics for updates and deletes to the peering connection configuration.booleanThis field will be deprecated soon.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIndicates whether full mesh connectivity is created and managed automatically between peered networks.booleanWhether to export the custom routes to peer network.booleanWhether subnet routes with public IP range are exported.booleanWhether to import the custom routes from peer network.booleanWhether subnet routes with public IP range are imported.getName()Name of this peering.com.google.protobuf.ByteStringName of this peering.The URL of the peer network.com.google.protobuf.ByteStringThe URL of the peer network.intOutput only.Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.com.google.protobuf.ByteStringWhich IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.getState()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.The update strategy determines the semantics for updates and deletes to the peering connection configuration.com.google.protobuf.ByteStringThe update strategy determines the semantics for updates and deletes to the peering connection configuration.booleanThis field will be deprecated soon.booleanOutput only.booleanIndicates whether full mesh connectivity is created and managed automatically between peered networks.booleanWhether to export the custom routes to peer network.booleanWhether subnet routes with public IP range are exported.booleanWhether to import the custom routes from peer network.booleanWhether subnet routes with public IP range are imported.booleanhasName()Name of this peering.booleanThe URL of the peer network.booleanOutput only.booleanWhich IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.booleanhasState()Output only.booleanOutput only.booleanThe update strategy determines the semantics for updates and deletes to the peering connection configuration.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOutput only.mergeFrom(NetworkPeering other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAutoCreateRoutes(boolean value) This field will be deprecated soon.Output only.setConnectionStatus(NetworkPeeringConnectionStatus.Builder builderForValue) Output only.setExchangeSubnetRoutes(boolean value) Indicates whether full mesh connectivity is created and managed automatically between peered networks.setExportCustomRoutes(boolean value) Whether to export the custom routes to peer network.setExportSubnetRoutesWithPublicIp(boolean value) Whether subnet routes with public IP range are exported.setImportCustomRoutes(boolean value) Whether to import the custom routes from peer network.setImportSubnetRoutesWithPublicIp(boolean value) Whether subnet routes with public IP range are imported.Name of this peering.setNameBytes(com.google.protobuf.ByteString value) Name of this peering.setNetwork(String value) The URL of the peer network.setNetworkBytes(com.google.protobuf.ByteString value) The URL of the peer network.setPeerMtu(int value) Output only.setStackType(String value) Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.setStackTypeBytes(com.google.protobuf.ByteString value) Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.Output only.setStateBytes(com.google.protobuf.ByteString value) Output only.setStateDetails(String value) Output only.setStateDetailsBytes(com.google.protobuf.ByteString value) Output only.setUpdateStrategy(String value) The update strategy determines the semantics for updates and deletes to the peering connection configuration.setUpdateStrategyBytes(com.google.protobuf.ByteString value) The update strategy determines the semantics for updates and deletes to the peering connection configuration.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NetworkPeering.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NetworkPeering.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<NetworkPeering.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkPeering.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NetworkPeering.Builder>
-
mergeFrom
public NetworkPeering.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkPeering.Builder>- Throws:
IOException
-
hasAutoCreateRoutes
public boolean hasAutoCreateRoutes()This field will be deprecated soon. Use theexchange_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 isACTIVE.
optional bool auto_create_routes = 57454941;- Specified by:
hasAutoCreateRoutesin interfaceNetworkPeeringOrBuilder- Returns:
- Whether the autoCreateRoutes field is set.
-
getAutoCreateRoutes
public boolean getAutoCreateRoutes()This field will be deprecated soon. Use theexchange_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 isACTIVE.
optional bool auto_create_routes = 57454941;- Specified by:
getAutoCreateRoutesin interfaceNetworkPeeringOrBuilder- Returns:
- The autoCreateRoutes.
-
setAutoCreateRoutes
This field will be deprecated soon. Use theexchange_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 isACTIVE.
optional bool auto_create_routes = 57454941;- Parameters:
value- The autoCreateRoutes to set.- Returns:
- This builder for chaining.
-
clearAutoCreateRoutes
This field will be deprecated soon. Use theexchange_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 isACTIVE.
optional bool auto_create_routes = 57454941;- Returns:
- This builder for chaining.
-
hasConnectionStatus
public boolean hasConnectionStatus()Output only. [Output Only] The effective state of the peering connection as a whole.
optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555;- Specified by:
hasConnectionStatusin interfaceNetworkPeeringOrBuilder- Returns:
- Whether the connectionStatus field is set.
-
getConnectionStatus
Output only. [Output Only] The effective state of the peering connection as a whole.
optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555;- Specified by:
getConnectionStatusin interfaceNetworkPeeringOrBuilder- Returns:
- The connectionStatus.
-
setConnectionStatus
Output only. [Output Only] The effective state of the peering connection as a whole.
optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555; -
setConnectionStatus
public NetworkPeering.Builder setConnectionStatus(NetworkPeeringConnectionStatus.Builder builderForValue) Output only. [Output Only] The effective state of the peering connection as a whole.
optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555; -
mergeConnectionStatus
Output only. [Output Only] The effective state of the peering connection as a whole.
optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555; -
clearConnectionStatus
Output only. [Output Only] The effective state of the peering connection as a whole.
optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555; -
getConnectionStatusBuilder
Output only. [Output Only] The effective state of the peering connection as a whole.
optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555; -
getConnectionStatusOrBuilder
Output only. [Output Only] The effective state of the peering connection as a whole.
optional .google.cloud.compute.v1.NetworkPeeringConnectionStatus connection_status = 525629555;- Specified by:
getConnectionStatusOrBuilderin interfaceNetworkPeeringOrBuilder
-
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 isACTIVE.
optional bool exchange_subnet_routes = 26322256;- Specified by:
hasExchangeSubnetRoutesin interfaceNetworkPeeringOrBuilder- Returns:
- Whether the exchangeSubnetRoutes field is set.
-
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 isACTIVE.
optional bool exchange_subnet_routes = 26322256;- Specified by:
getExchangeSubnetRoutesin interfaceNetworkPeeringOrBuilder- Returns:
- The exchangeSubnetRoutes.
-
setExchangeSubnetRoutes
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 isACTIVE.
optional bool exchange_subnet_routes = 26322256;- Parameters:
value- The exchangeSubnetRoutes to set.- Returns:
- This builder for chaining.
-
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 isACTIVE.
optional bool exchange_subnet_routes = 26322256;- Returns:
- This builder for chaining.
-
hasExportCustomRoutes
public boolean hasExportCustomRoutes()Whether to export the custom routes to peer network. The default value is false.
optional bool export_custom_routes = 60281485;- Specified by:
hasExportCustomRoutesin interfaceNetworkPeeringOrBuilder- Returns:
- Whether the exportCustomRoutes field is set.
-
getExportCustomRoutes
public boolean getExportCustomRoutes()Whether to export the custom routes to peer network. The default value is false.
optional bool export_custom_routes = 60281485;- Specified by:
getExportCustomRoutesin interfaceNetworkPeeringOrBuilder- Returns:
- The exportCustomRoutes.
-
setExportCustomRoutes
Whether to export the custom routes to peer network. The default value is false.
optional bool export_custom_routes = 60281485;- Parameters:
value- The exportCustomRoutes to set.- Returns:
- This builder for chaining.
-
clearExportCustomRoutes
Whether to export the custom routes to peer network. The default value is false.
optional bool export_custom_routes = 60281485;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasExportSubnetRoutesWithPublicIpin interfaceNetworkPeeringOrBuilder- Returns:
- Whether the exportSubnetRoutesWithPublicIp field is set.
-
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;- Specified by:
getExportSubnetRoutesWithPublicIpin interfaceNetworkPeeringOrBuilder- Returns:
- The exportSubnetRoutesWithPublicIp.
-
setExportSubnetRoutesWithPublicIp
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;- Parameters:
value- The exportSubnetRoutesWithPublicIp to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasImportCustomRoutes
public boolean hasImportCustomRoutes()Whether to import the custom routes from peer network. The default value is false.
optional bool import_custom_routes = 197982398;- Specified by:
hasImportCustomRoutesin interfaceNetworkPeeringOrBuilder- Returns:
- Whether the importCustomRoutes field is set.
-
getImportCustomRoutes
public boolean getImportCustomRoutes()Whether to import the custom routes from peer network. The default value is false.
optional bool import_custom_routes = 197982398;- Specified by:
getImportCustomRoutesin interfaceNetworkPeeringOrBuilder- Returns:
- The importCustomRoutes.
-
setImportCustomRoutes
Whether to import the custom routes from peer network. The default value is false.
optional bool import_custom_routes = 197982398;- Parameters:
value- The importCustomRoutes to set.- Returns:
- This builder for chaining.
-
clearImportCustomRoutes
Whether to import the custom routes from peer network. The default value is false.
optional bool import_custom_routes = 197982398;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasImportSubnetRoutesWithPublicIpin interfaceNetworkPeeringOrBuilder- Returns:
- Whether the importSubnetRoutesWithPublicIp field is set.
-
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;- Specified by:
getImportSubnetRoutesWithPublicIpin interfaceNetworkPeeringOrBuilder- Returns:
- The importSubnetRoutesWithPublicIp.
-
setImportSubnetRoutesWithPublicIp
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;- Parameters:
value- The importSubnetRoutesWithPublicIp to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()Name of this peering. Provided by the client when the peering is created. The name must comply withRFC1035. 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;- Specified by:
hasNamein interfaceNetworkPeeringOrBuilder- Returns:
- Whether the name field is set.
-
getName
Name of this peering. Provided by the client when the peering is created. The name must comply withRFC1035. 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;- Specified by:
getNamein interfaceNetworkPeeringOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of this peering. Provided by the client when the peering is created. The name must comply withRFC1035. 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;- Specified by:
getNameBytesin interfaceNetworkPeeringOrBuilder- Returns:
- The bytes for name.
-
setName
Name of this peering. Provided by the client when the peering is created. The name must comply withRFC1035. 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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of this peering. Provided by the client when the peering is created. The name must comply withRFC1035. 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;- Returns:
- This builder for chaining.
-
setNameBytes
Name of this peering. Provided by the client when the peering is created. The name must comply withRFC1035. 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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasNetworkin interfaceNetworkPeeringOrBuilder- Returns:
- Whether the network field is set.
-
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;- Specified by:
getNetworkin interfaceNetworkPeeringOrBuilder- Returns:
- The network.
-
getNetworkBytes
public 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;- Specified by:
getNetworkBytesin interfaceNetworkPeeringOrBuilder- Returns:
- The bytes for network.
-
setNetwork
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;- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setNetworkBytes
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;- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
hasPeerMtu
public boolean hasPeerMtu()Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network.
optional int32 peer_mtu = 69584721;- Specified by:
hasPeerMtuin interfaceNetworkPeeringOrBuilder- Returns:
- Whether the peerMtu field is set.
-
getPeerMtu
public int getPeerMtu()Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network.
optional int32 peer_mtu = 69584721;- Specified by:
getPeerMtuin interfaceNetworkPeeringOrBuilder- Returns:
- The peerMtu.
-
setPeerMtu
Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network.
optional int32 peer_mtu = 69584721;- Parameters:
value- The peerMtu to set.- Returns:
- This builder for chaining.
-
clearPeerMtu
Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network.
optional int32 peer_mtu = 69584721;- Returns:
- This builder for chaining.
-
hasStackType
public 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;- Specified by:
hasStackTypein interfaceNetworkPeeringOrBuilder- Returns:
- Whether the stackType field is set.
-
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;- Specified by:
getStackTypein interfaceNetworkPeeringOrBuilder- Returns:
- The stackType.
-
getStackTypeBytes
public 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;- Specified by:
getStackTypeBytesin interfaceNetworkPeeringOrBuilder- Returns:
- The bytes for stackType.
-
setStackType
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;- Parameters:
value- The stackType to set.- Returns:
- This builder for chaining.
-
clearStackType
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;- Returns:
- This builder for chaining.
-
setStackTypeBytes
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;- Parameters:
value- The bytes for stackType to set.- Returns:
- This builder for chaining.
-
hasState
public boolean hasState()Output only. [Output Only] State for the peering. Check the State enum for the list of possible values.
optional string state = 109757585;- Specified by:
hasStatein interfaceNetworkPeeringOrBuilder- Returns:
- Whether the state field is set.
-
getState
Output only. [Output Only] State for the peering. Check the State enum for the list of possible values.
optional string state = 109757585;- Specified by:
getStatein interfaceNetworkPeeringOrBuilder- Returns:
- The state.
-
getStateBytes
public com.google.protobuf.ByteString getStateBytes()Output only. [Output Only] State for the peering. Check the State enum for the list of possible values.
optional string state = 109757585;- Specified by:
getStateBytesin interfaceNetworkPeeringOrBuilder- Returns:
- The bytes for state.
-
setState
Output only. [Output Only] State for the peering. Check the State enum for the list of possible values.
optional string state = 109757585;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. [Output Only] State for the peering. Check the State enum for the list of possible values.
optional string state = 109757585;- Returns:
- This builder for chaining.
-
setStateBytes
Output only. [Output Only] State for the peering. Check the State enum for the list of possible values.
optional string state = 109757585;- Parameters:
value- The bytes for state to set.- Returns:
- This builder for chaining.
-
hasStateDetails
public boolean hasStateDetails()Output only. [Output Only] Details about the current state of the peering.
optional string state_details = 95566996;- Specified by:
hasStateDetailsin interfaceNetworkPeeringOrBuilder- Returns:
- Whether the stateDetails field is set.
-
getStateDetails
Output only. [Output Only] Details about the current state of the peering.
optional string state_details = 95566996;- Specified by:
getStateDetailsin interfaceNetworkPeeringOrBuilder- Returns:
- The stateDetails.
-
getStateDetailsBytes
public com.google.protobuf.ByteString getStateDetailsBytes()Output only. [Output Only] Details about the current state of the peering.
optional string state_details = 95566996;- Specified by:
getStateDetailsBytesin interfaceNetworkPeeringOrBuilder- Returns:
- The bytes for stateDetails.
-
setStateDetails
Output only. [Output Only] Details about the current state of the peering.
optional string state_details = 95566996;- Parameters:
value- The stateDetails to set.- Returns:
- This builder for chaining.
-
clearStateDetails
Output only. [Output Only] Details about the current state of the peering.
optional string state_details = 95566996;- Returns:
- This builder for chaining.
-
setStateDetailsBytes
Output only. [Output Only] Details about the current state of the peering.
optional string state_details = 95566996;- Parameters:
value- The bytes for stateDetails to set.- Returns:
- This builder for chaining.
-
hasUpdateStrategy
public boolean hasUpdateStrategy()The update strategy determines the semantics for updates and deletes to the peering connection configuration. Check the UpdateStrategy enum for the list of possible values.
optional string update_strategy = 6123049;- Specified by:
hasUpdateStrategyin interfaceNetworkPeeringOrBuilder- Returns:
- Whether the updateStrategy field is set.
-
getUpdateStrategy
The update strategy determines the semantics for updates and deletes to the peering connection configuration. Check the UpdateStrategy enum for the list of possible values.
optional string update_strategy = 6123049;- Specified by:
getUpdateStrategyin interfaceNetworkPeeringOrBuilder- Returns:
- The updateStrategy.
-
getUpdateStrategyBytes
public com.google.protobuf.ByteString getUpdateStrategyBytes()The update strategy determines the semantics for updates and deletes to the peering connection configuration. Check the UpdateStrategy enum for the list of possible values.
optional string update_strategy = 6123049;- Specified by:
getUpdateStrategyBytesin interfaceNetworkPeeringOrBuilder- Returns:
- The bytes for updateStrategy.
-
setUpdateStrategy
The update strategy determines the semantics for updates and deletes to the peering connection configuration. Check the UpdateStrategy enum for the list of possible values.
optional string update_strategy = 6123049;- Parameters:
value- The updateStrategy to set.- Returns:
- This builder for chaining.
-
clearUpdateStrategy
The update strategy determines the semantics for updates and deletes to the peering connection configuration. Check the UpdateStrategy enum for the list of possible values.
optional string update_strategy = 6123049;- Returns:
- This builder for chaining.
-
setUpdateStrategyBytes
The update strategy determines the semantics for updates and deletes to the peering connection configuration. Check the UpdateStrategy enum for the list of possible values.
optional string update_strategy = 6123049;- Parameters:
value- The bytes for updateStrategy to set.- Returns:
- This builder for chaining.
-