Class NetworkPeeringConnectionStatusTrafficConfiguration.Builder (1.93.0)

public static final class NetworkPeeringConnectionStatusTrafficConfiguration.Builder extends GeneratedMessage.Builder<NetworkPeeringConnectionStatusTrafficConfiguration.Builder> implements NetworkPeeringConnectionStatusTrafficConfigurationOrBuilder

Protobuf type google.cloud.compute.v1.NetworkPeeringConnectionStatusTrafficConfiguration

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public NetworkPeeringConnectionStatusTrafficConfiguration build()
Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration

buildPartial()

public NetworkPeeringConnectionStatusTrafficConfiguration buildPartial()
Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration

clear()

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder clear()
Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder
Overrides

clearExportCustomRoutesToPeer()

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder clearExportCustomRoutesToPeer()

Whether custom routes are being exported to the peer network.

optional bool export_custom_routes_to_peer = 286428404;

Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder

This builder for chaining.

clearExportSubnetRoutesWithPublicIpToPeer()

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder clearExportSubnetRoutesWithPublicIpToPeer()

Whether subnet routes with public IP ranges are being exported to the peer network.

optional bool export_subnet_routes_with_public_ip_to_peer = 8358601;

Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder

This builder for chaining.

clearImportCustomRoutesFromPeer()

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder clearImportCustomRoutesFromPeer()

Whether custom routes are being imported from the peer network.

optional bool import_custom_routes_from_peer = 398584470;

Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder

This builder for chaining.

clearImportSubnetRoutesWithPublicIpFromPeer()

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder clearImportSubnetRoutesWithPublicIpFromPeer()

Whether subnet routes with public IP ranges are being imported from the peer network.

optional bool import_subnet_routes_with_public_ip_from_peer = 234712361;

Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder

This builder for chaining.

clearStackType()

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder clearStackType()

Which IP version(s) of traffic and routes are being imported or exported between peer networks. Check the StackType enum for the list of possible values.

optional string stack_type = 425908881;

Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder

This builder for chaining.

getDefaultInstanceForType()

public NetworkPeeringConnectionStatusTrafficConfiguration getDefaultInstanceForType()
Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExportCustomRoutesToPeer()

public boolean getExportCustomRoutesToPeer()

Whether custom routes are being exported to the peer network.

optional bool export_custom_routes_to_peer = 286428404;

Returns
Type Description
boolean

The exportCustomRoutesToPeer.

getExportSubnetRoutesWithPublicIpToPeer()

public boolean getExportSubnetRoutesWithPublicIpToPeer()

Whether subnet routes with public IP ranges are being exported to the peer network.

optional bool export_subnet_routes_with_public_ip_to_peer = 8358601;

Returns
Type Description
boolean

The exportSubnetRoutesWithPublicIpToPeer.

getImportCustomRoutesFromPeer()

public boolean getImportCustomRoutesFromPeer()

Whether custom routes are being imported from the peer network.

optional bool import_custom_routes_from_peer = 398584470;

Returns
Type Description
boolean

The importCustomRoutesFromPeer.

getImportSubnetRoutesWithPublicIpFromPeer()

public boolean getImportSubnetRoutesWithPublicIpFromPeer()

Whether subnet routes with public IP ranges are being imported from the peer network.

optional bool import_subnet_routes_with_public_ip_from_peer = 234712361;

Returns
Type Description
boolean

The importSubnetRoutesWithPublicIpFromPeer.

getStackType()

public String getStackType()

Which IP version(s) of traffic and routes are being imported or exported between peer networks. Check the StackType enum for the list of possible values.

optional string stack_type = 425908881;

Returns
Type Description
String

The stackType.

getStackTypeBytes()

public ByteString getStackTypeBytes()

Which IP version(s) of traffic and routes are being imported or exported between peer networks. Check the StackType enum for the list of possible values.

optional string stack_type = 425908881;

Returns
Type Description
ByteString

The bytes for stackType.

hasExportCustomRoutesToPeer()

public boolean hasExportCustomRoutesToPeer()

Whether custom routes are being exported to the peer network.

optional bool export_custom_routes_to_peer = 286428404;

Returns
Type Description
boolean

Whether the exportCustomRoutesToPeer field is set.

hasExportSubnetRoutesWithPublicIpToPeer()

public boolean hasExportSubnetRoutesWithPublicIpToPeer()

Whether subnet routes with public IP ranges are being exported to the peer network.

optional bool export_subnet_routes_with_public_ip_to_peer = 8358601;

Returns
Type Description
boolean

Whether the exportSubnetRoutesWithPublicIpToPeer field is set.

hasImportCustomRoutesFromPeer()

public boolean hasImportCustomRoutesFromPeer()

Whether custom routes are being imported from the peer network.

optional bool import_custom_routes_from_peer = 398584470;

Returns
Type Description
boolean

Whether the importCustomRoutesFromPeer field is set.

hasImportSubnetRoutesWithPublicIpFromPeer()

public boolean hasImportSubnetRoutesWithPublicIpFromPeer()

Whether subnet routes with public IP ranges are being imported from the peer network.

optional bool import_subnet_routes_with_public_ip_from_peer = 234712361;

Returns
Type Description
boolean

Whether the importSubnetRoutesWithPublicIpFromPeer field is set.

hasStackType()

public boolean hasStackType()

Which IP version(s) of traffic and routes are being imported or exported between peer networks. Check the StackType enum for the list of possible values.

optional string stack_type = 425908881;

Returns
Type Description
boolean

Whether the stackType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworkPeeringConnectionStatusTrafficConfiguration other)

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder mergeFrom(NetworkPeeringConnectionStatusTrafficConfiguration other)
Parameter
Name Description
other NetworkPeeringConnectionStatusTrafficConfiguration
Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder
Overrides

setExportCustomRoutesToPeer(boolean value)

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder setExportCustomRoutesToPeer(boolean value)

Whether custom routes are being exported to the peer network.

optional bool export_custom_routes_to_peer = 286428404;

Parameter
Name Description
value boolean

The exportCustomRoutesToPeer to set.

Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder

This builder for chaining.

setExportSubnetRoutesWithPublicIpToPeer(boolean value)

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder setExportSubnetRoutesWithPublicIpToPeer(boolean value)

Whether subnet routes with public IP ranges are being exported to the peer network.

optional bool export_subnet_routes_with_public_ip_to_peer = 8358601;

Parameter
Name Description
value boolean

The exportSubnetRoutesWithPublicIpToPeer to set.

Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder

This builder for chaining.

setImportCustomRoutesFromPeer(boolean value)

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder setImportCustomRoutesFromPeer(boolean value)

Whether custom routes are being imported from the peer network.

optional bool import_custom_routes_from_peer = 398584470;

Parameter
Name Description
value boolean

The importCustomRoutesFromPeer to set.

Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder

This builder for chaining.

setImportSubnetRoutesWithPublicIpFromPeer(boolean value)

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder setImportSubnetRoutesWithPublicIpFromPeer(boolean value)

Whether subnet routes with public IP ranges are being imported from the peer network.

optional bool import_subnet_routes_with_public_ip_from_peer = 234712361;

Parameter
Name Description
value boolean

The importSubnetRoutesWithPublicIpFromPeer to set.

Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder

This builder for chaining.

setStackType(String value)

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder setStackType(String value)

Which IP version(s) of traffic and routes are being imported or exported between peer networks. Check the StackType enum for the list of possible values.

optional string stack_type = 425908881;

Parameter
Name Description
value String

The stackType to set.

Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder

This builder for chaining.

setStackTypeBytes(ByteString value)

public NetworkPeeringConnectionStatusTrafficConfiguration.Builder setStackTypeBytes(ByteString value)

Which IP version(s) of traffic and routes are being imported or exported between peer networks. Check the StackType enum for the list of possible values.

optional string stack_type = 425908881;

Parameter
Name Description
value ByteString

The bytes for stackType to set.

Returns
Type Description
NetworkPeeringConnectionStatusTrafficConfiguration.Builder

This builder for chaining.