Class NetworksAddPeeringRequest.Builder (1.12.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworksAddPeeringRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworksAddPeeringRequest.Builder
Overrides

build()

public NetworksAddPeeringRequest build()
Returns
TypeDescription
NetworksAddPeeringRequest

buildPartial()

public NetworksAddPeeringRequest buildPartial()
Returns
TypeDescription
NetworksAddPeeringRequest

clear()

public NetworksAddPeeringRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
NetworksAddPeeringRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NetworksAddPeeringRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NetworksAddPeeringRequest.Builder
Overrides

clearName()

public NetworksAddPeeringRequest.Builder clearName()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
TypeDescription
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
TypeDescription
NetworksAddPeeringRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworksAddPeeringRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
NetworksAddPeeringRequest.Builder

This builder for chaining.

clone()

public NetworksAddPeeringRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
boolean

The autoCreateRoutes.

getDefaultInstanceForType()

public NetworksAddPeeringRequest getDefaultInstanceForType()
Returns
TypeDescription
NetworksAddPeeringRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the peerNetwork field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworksAddPeeringRequest other)

public NetworksAddPeeringRequest.Builder mergeFrom(NetworksAddPeeringRequest other)
Parameter
NameDescription
otherNetworksAddPeeringRequest
Returns
TypeDescription
NetworksAddPeeringRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworksAddPeeringRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworksAddPeeringRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NetworksAddPeeringRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueNetworkPeering
Returns
TypeDescription
NetworksAddPeeringRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworksAddPeeringRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The autoCreateRoutes to set.

Returns
TypeDescription
NetworksAddPeeringRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NetworksAddPeeringRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueNetworkPeering
Returns
TypeDescription
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
NameDescription
builderForValueNetworkPeering.Builder
Returns
TypeDescription
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
NameDescription
valueString

The peerNetwork to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for peerNetwork to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NetworksAddPeeringRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworksAddPeeringRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworksAddPeeringRequest.Builder
Overrides