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.GeneratedMessageV3.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.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 typegoogle.cloud.compute.v1.NetworkPeering
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkPeering.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NetworkPeeringbuild()NetworkPeeringbuildPartial()NetworkPeering.Builderclear()NetworkPeering.BuilderclearAutoCreateRoutes()This field will be deprecated soon.NetworkPeering.BuilderclearExchangeSubnetRoutes()Indicates whether full mesh connectivity is created and managed automatically between peered networks.NetworkPeering.BuilderclearExportCustomRoutes()Whether to export the custom routes to peer network.NetworkPeering.BuilderclearExportSubnetRoutesWithPublicIp()Whether subnet routes with public IP range are exported.NetworkPeering.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)NetworkPeering.BuilderclearImportCustomRoutes()Whether to import the custom routes from peer network.NetworkPeering.BuilderclearImportSubnetRoutesWithPublicIp()Whether subnet routes with public IP range are imported.NetworkPeering.BuilderclearName()Name of this peering.NetworkPeering.BuilderclearNetwork()The URL of the peer network.NetworkPeering.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)NetworkPeering.BuilderclearPeerMtu()Maximum Transmission Unit in bytes.NetworkPeering.BuilderclearStackType()Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.NetworkPeering.BuilderclearState()[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`.NetworkPeering.BuilderclearStateDetails()[Output Only] Details about the current state of the peering.NetworkPeering.Builderclone()booleangetAutoCreateRoutes()This field will be deprecated soon.NetworkPeeringgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetExchangeSubnetRoutes()Indicates whether full mesh connectivity is created and managed automatically between peered networks.booleangetExportCustomRoutes()Whether to export the custom routes to peer network.booleangetExportSubnetRoutesWithPublicIp()Whether subnet routes with public IP range are exported.booleangetImportCustomRoutes()Whether to import the custom routes from peer network.booleangetImportSubnetRoutesWithPublicIp()Whether subnet routes with public IP range are imported.StringgetName()Name of this peering.com.google.protobuf.ByteStringgetNameBytes()Name of this peering.StringgetNetwork()The URL of the peer network.com.google.protobuf.ByteStringgetNetworkBytes()The URL of the peer network.intgetPeerMtu()Maximum Transmission Unit in bytes.StringgetStackType()Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.com.google.protobuf.ByteStringgetStackTypeBytes()Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.StringgetState()[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`.com.google.protobuf.ByteStringgetStateBytes()[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`.StringgetStateDetails()[Output Only] Details about the current state of the peering.com.google.protobuf.ByteStringgetStateDetailsBytes()[Output Only] Details about the current state of the peering.booleanhasAutoCreateRoutes()This field will be deprecated soon.booleanhasExchangeSubnetRoutes()Indicates whether full mesh connectivity is created and managed automatically between peered networks.booleanhasExportCustomRoutes()Whether to export the custom routes to peer network.booleanhasExportSubnetRoutesWithPublicIp()Whether subnet routes with public IP range are exported.booleanhasImportCustomRoutes()Whether to import the custom routes from peer network.booleanhasImportSubnetRoutesWithPublicIp()Whether subnet routes with public IP range are imported.booleanhasName()Name of this peering.booleanhasNetwork()The URL of the peer network.booleanhasPeerMtu()Maximum Transmission Unit in bytes.booleanhasStackType()Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.booleanhasState()[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`.booleanhasStateDetails()[Output Only] Details about the current state of the peering.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()NetworkPeering.BuildermergeFrom(NetworkPeering other)NetworkPeering.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)NetworkPeering.BuildermergeFrom(com.google.protobuf.Message other)NetworkPeering.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)NetworkPeering.BuildersetAutoCreateRoutes(boolean value)This field will be deprecated soon.NetworkPeering.BuildersetExchangeSubnetRoutes(boolean value)Indicates whether full mesh connectivity is created and managed automatically between peered networks.NetworkPeering.BuildersetExportCustomRoutes(boolean value)Whether to export the custom routes to peer network.NetworkPeering.BuildersetExportSubnetRoutesWithPublicIp(boolean value)Whether subnet routes with public IP range are exported.NetworkPeering.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NetworkPeering.BuildersetImportCustomRoutes(boolean value)Whether to import the custom routes from peer network.NetworkPeering.BuildersetImportSubnetRoutesWithPublicIp(boolean value)Whether subnet routes with public IP range are imported.NetworkPeering.BuildersetName(String value)Name of this peering.NetworkPeering.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of this peering.NetworkPeering.BuildersetNetwork(String value)The URL of the peer network.NetworkPeering.BuildersetNetworkBytes(com.google.protobuf.ByteString value)The URL of the peer network.NetworkPeering.BuildersetPeerMtu(int value)Maximum Transmission Unit in bytes.NetworkPeering.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)NetworkPeering.BuildersetStackType(String value)Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.NetworkPeering.BuildersetStackTypeBytes(com.google.protobuf.ByteString value)Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.NetworkPeering.BuildersetState(String value)[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`.NetworkPeering.BuildersetStateBytes(com.google.protobuf.ByteString value)[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`.NetworkPeering.BuildersetStateDetails(String value)[Output Only] Details about the current state of the peering.NetworkPeering.BuildersetStateDetailsBytes(com.google.protobuf.ByteString value)[Output Only] Details about the current state of the peering.NetworkPeering.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkPeering.Builder>
-
clear
public NetworkPeering.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<NetworkPeering.Builder>
-
getDefaultInstanceForType
public NetworkPeering getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public NetworkPeering build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NetworkPeering buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NetworkPeering.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkPeering.Builder>
-
setField
public NetworkPeering.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkPeering.Builder>
-
clearField
public NetworkPeering.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkPeering.Builder>
-
clearOneof
public NetworkPeering.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkPeering.Builder>
-
setRepeatedField
public NetworkPeering.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkPeering.Builder>
-
addRepeatedField
public NetworkPeering.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkPeering.Builder>
-
mergeFrom
public NetworkPeering.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkPeering.Builder>
-
mergeFrom
public NetworkPeering.Builder mergeFrom(NetworkPeering other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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 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;- Specified by:
hasAutoCreateRoutesin interfaceNetworkPeeringOrBuilder- Returns:
- Whether the autoCreateRoutes field is set.
-
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;- Specified by:
getAutoCreateRoutesin interfaceNetworkPeeringOrBuilder- Returns:
- The autoCreateRoutes.
-
setAutoCreateRoutes
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;- Parameters:
value- The autoCreateRoutes to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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;- 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 is ACTIVE.
optional bool exchange_subnet_routes = 26322256;- Specified by:
getExchangeSubnetRoutesin interfaceNetworkPeeringOrBuilder- Returns:
- The exchangeSubnetRoutes.
-
setExchangeSubnetRoutes
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;- Parameters:
value- The exchangeSubnetRoutes to set.- Returns:
- 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;- 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
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;- Parameters:
value- The exportCustomRoutes to set.- Returns:
- 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;- 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
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;- Parameters:
value- The exportSubnetRoutesWithPublicIp to set.- Returns:
- 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;- 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
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;- Parameters:
value- The importCustomRoutes to set.- Returns:
- This builder for chaining.
-
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;- 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
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;- Parameters:
value- The importSubnetRoutesWithPublicIp to set.- Returns:
- 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;- 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 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;- Specified by:
hasNamein interfaceNetworkPeeringOrBuilder- Returns:
- Whether the name field is set.
-
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]([-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 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;- Specified by:
getNameBytesin interfaceNetworkPeeringOrBuilder- Returns:
- The bytes for name.
-
setName
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]([-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
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]([-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
public NetworkPeering.Builder setNameBytes(com.google.protobuf.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]([-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
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;- 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
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;- Parameters:
value- The network to set.- Returns:
- 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;- Returns:
- This builder for chaining.
-
setNetworkBytes
public NetworkPeering.Builder setNetworkBytes(com.google.protobuf.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;- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
hasPeerMtu
public boolean hasPeerMtu()
Maximum Transmission Unit in bytes.
optional int32 peer_mtu = 69584721;- Specified by:
hasPeerMtuin interfaceNetworkPeeringOrBuilder- Returns:
- Whether the peerMtu field is set.
-
getPeerMtu
public int getPeerMtu()
Maximum Transmission Unit in bytes.
optional int32 peer_mtu = 69584721;- Specified by:
getPeerMtuin interfaceNetworkPeeringOrBuilder- Returns:
- The peerMtu.
-
setPeerMtu
public NetworkPeering.Builder setPeerMtu(int value)
Maximum Transmission Unit in bytes.
optional int32 peer_mtu = 69584721;- Parameters:
value- The peerMtu to set.- Returns:
- This builder for chaining.
-
clearPeerMtu
public NetworkPeering.Builder clearPeerMtu()
Maximum Transmission Unit in bytes.
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
public 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;- 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
public NetworkPeering.Builder setStackType(String value)
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
public NetworkPeering.Builder 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
public NetworkPeering.Builder setStackTypeBytes(com.google.protobuf.ByteString value)
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] 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;- Specified by:
hasStatein interfaceNetworkPeeringOrBuilder- Returns:
- Whether the state field is set.
-
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;- Specified by:
getStatein interfaceNetworkPeeringOrBuilder- Returns:
- The state.
-
getStateBytes
public 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;- Specified by:
getStateBytesin interfaceNetworkPeeringOrBuilder- Returns:
- The bytes for state.
-
setState
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;- Parameters:
value- The state to set.- Returns:
- 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;- Returns:
- This builder for chaining.
-
setStateBytes
public NetworkPeering.Builder setStateBytes(com.google.protobuf.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;- Parameters:
value- The bytes for state to set.- Returns:
- This builder for chaining.
-
hasStateDetails
public boolean hasStateDetails()
[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
public String getStateDetails()
[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] Details about the current state of the peering.
optional string state_details = 95566996;- Specified by:
getStateDetailsBytesin interfaceNetworkPeeringOrBuilder- Returns:
- The bytes for stateDetails.
-
setStateDetails
public NetworkPeering.Builder setStateDetails(String value)
[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
public NetworkPeering.Builder clearStateDetails()
[Output Only] Details about the current state of the peering.
optional string state_details = 95566996;- Returns:
- This builder for chaining.
-
setStateDetailsBytes
public NetworkPeering.Builder setStateDetailsBytes(com.google.protobuf.ByteString value)
[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.
-
setUnknownFields
public final NetworkPeering.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkPeering.Builder>
-
mergeUnknownFields
public final NetworkPeering.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkPeering.Builder>
-
-