Class NetworksAddPeeringRequest.Builder (1.53.0)

public static final class NetworksAddPeeringRequest.Builder extends GeneratedMessageV3.Builder<NetworksAddPeeringRequest.Builder> implements NetworksAddPeeringRequestOrBuilder

Protobuf type google.cloud.compute.v1.NetworksAddPeeringRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworksAddPeeringRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworksAddPeeringRequest.Builder
Overrides

build()

public NetworksAddPeeringRequest build()
Returns
Type Description
NetworksAddPeeringRequest

buildPartial()

public NetworksAddPeeringRequest buildPartial()
Returns
Type Description
NetworksAddPeeringRequest

clear()

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

clearAutoCreateRoutes()

public NetworksAddPeeringRequest.Builder clearAutoCreateRoutes()

This field will be deprecated soon. Use exchange_subnet_routes in network_peering 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
Type Description
NetworksAddPeeringRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NetworksAddPeeringRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NetworksAddPeeringRequest.Builder
Overrides

clearName()

public NetworksAddPeeringRequest.Builder clearName()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
NetworksAddPeeringRequest.Builder

This builder for chaining.

clearNetworkPeering()

public NetworksAddPeeringRequest.Builder clearNetworkPeering()

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Returns
Type Description
NetworksAddPeeringRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworksAddPeeringRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NetworksAddPeeringRequest.Builder
Overrides

clearPeerNetwork()

public NetworksAddPeeringRequest.Builder clearPeerNetwork()

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 peer_network = 500625489;

Returns
Type Description
NetworksAddPeeringRequest.Builder

This builder for chaining.

clone()

public NetworksAddPeeringRequest.Builder clone()
Returns
Type Description
NetworksAddPeeringRequest.Builder
Overrides

getAutoCreateRoutes()

public boolean getAutoCreateRoutes()

This field will be deprecated soon. Use exchange_subnet_routes in network_peering 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
Type Description
boolean

The autoCreateRoutes.

getDefaultInstanceForType()

public NetworksAddPeeringRequest getDefaultInstanceForType()
Returns
Type Description
NetworksAddPeeringRequest

getDescriptorForType()

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

getName()

public String getName()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getNetworkPeering()

public NetworkPeering getNetworkPeering()

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Returns
Type Description
NetworkPeering

The networkPeering.

getNetworkPeeringBuilder()

public NetworkPeering.Builder getNetworkPeeringBuilder()

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Returns
Type Description
NetworkPeering.Builder

getNetworkPeeringOrBuilder()

public NetworkPeeringOrBuilder getNetworkPeeringOrBuilder()

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Returns
Type Description
NetworkPeeringOrBuilder

getPeerNetwork()

public String getPeerNetwork()

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 peer_network = 500625489;

Returns
Type Description
String

The peerNetwork.

getPeerNetworkBytes()

public ByteString getPeerNetworkBytes()

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 peer_network = 500625489;

Returns
Type Description
ByteString

The bytes for peerNetwork.

hasAutoCreateRoutes()

public boolean hasAutoCreateRoutes()

This field will be deprecated soon. Use exchange_subnet_routes in network_peering 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
Type Description
boolean

Whether the autoCreateRoutes field is set.

hasName()

public boolean hasName()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasNetworkPeering()

public boolean hasNetworkPeering()

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Returns
Type Description
boolean

Whether the networkPeering field is set.

hasPeerNetwork()

public boolean hasPeerNetwork()

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 peer_network = 500625489;

Returns
Type Description
boolean

Whether the peerNetwork field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworksAddPeeringRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNetworkPeering(NetworkPeering value)

public NetworksAddPeeringRequest.Builder mergeNetworkPeering(NetworkPeering value)

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Parameter
Name Description
value NetworkPeering
Returns
Type Description
NetworksAddPeeringRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworksAddPeeringRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworksAddPeeringRequest.Builder
Overrides

setAutoCreateRoutes(boolean value)

public NetworksAddPeeringRequest.Builder setAutoCreateRoutes(boolean value)

This field will be deprecated soon. Use exchange_subnet_routes in network_peering 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;

Parameter
Name Description
value boolean

The autoCreateRoutes to set.

Returns
Type Description
NetworksAddPeeringRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NetworksAddPeeringRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworksAddPeeringRequest.Builder
Overrides

setName(String value)

public NetworksAddPeeringRequest.Builder setName(String value)

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
NetworksAddPeeringRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NetworksAddPeeringRequest.Builder setNameBytes(ByteString value)

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
NetworksAddPeeringRequest.Builder

This builder for chaining.

setNetworkPeering(NetworkPeering value)

public NetworksAddPeeringRequest.Builder setNetworkPeering(NetworkPeering value)

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Parameter
Name Description
value NetworkPeering
Returns
Type Description
NetworksAddPeeringRequest.Builder

setNetworkPeering(NetworkPeering.Builder builderForValue)

public NetworksAddPeeringRequest.Builder setNetworkPeering(NetworkPeering.Builder builderForValue)

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Parameter
Name Description
builderForValue NetworkPeering.Builder
Returns
Type Description
NetworksAddPeeringRequest.Builder

setPeerNetwork(String value)

public NetworksAddPeeringRequest.Builder setPeerNetwork(String value)

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 peer_network = 500625489;

Parameter
Name Description
value String

The peerNetwork to set.

Returns
Type Description
NetworksAddPeeringRequest.Builder

This builder for chaining.

setPeerNetworkBytes(ByteString value)

public NetworksAddPeeringRequest.Builder setPeerNetworkBytes(ByteString value)

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 peer_network = 500625489;

Parameter
Name Description
value ByteString

The bytes for peerNetwork to set.

Returns
Type Description
NetworksAddPeeringRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NetworksAddPeeringRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NetworksAddPeeringRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworksAddPeeringRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworksAddPeeringRequest.Builder
Overrides