Class NetworkPeering.Builder (0.37.0)

public static final class NetworkPeering.Builder extends GeneratedMessageV3.Builder<NetworkPeering.Builder> implements NetworkPeeringOrBuilder

Details of a network peering.

Protobuf type google.cloud.vmwareengine.v1.NetworkPeering

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NetworkPeering build()
Returns
Type Description
NetworkPeering

buildPartial()

public NetworkPeering buildPartial()
Returns
Type Description
NetworkPeering

clear()

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

clearCreateTime()

public NetworkPeering.Builder clearCreateTime()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkPeering.Builder

clearDescription()

public NetworkPeering.Builder clearDescription()

Optional. User-provided description for this network peering.

string description = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clearExchangeSubnetRoutes()

public NetworkPeering.Builder clearExchangeSubnetRoutes()

Optional. True if full mesh connectivity is created and managed automatically between peered networks; false otherwise. Currently this field is always true because Google Compute Engine automatically creates and manages subnetwork routes between two VPC networks when peering state is 'ACTIVE'.

optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clearExportCustomRoutes()

public NetworkPeering.Builder clearExportCustomRoutes()

Optional. True if custom routes are exported to the peered network; false otherwise. The default value is true.

optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clearExportCustomRoutesWithPublicIp()

public NetworkPeering.Builder clearExportCustomRoutesWithPublicIp()

Optional. True if all subnet routes with a public IP address range are exported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always exported to peers and are not controlled by this field.

optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearImportCustomRoutes()

public NetworkPeering.Builder clearImportCustomRoutes()

Optional. True if custom routes are imported from the peered network; false otherwise. The default value is true.

optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clearImportCustomRoutesWithPublicIp()

public NetworkPeering.Builder clearImportCustomRoutesWithPublicIp()

Optional. True if all subnet routes with public IP address range are imported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always imported to peers and are not controlled by this field.

optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clearName()

public NetworkPeering.Builder clearName()

Output only. The resource name of the network peering. NetworkPeering is a global resource and location can only be global. Resource names are scheme-less URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/global/networkPeerings/my-peering

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPeerMtu()

public NetworkPeering.Builder clearPeerMtu()

Optional. Maximum transmission unit (MTU) in bytes. The default value is 1500. If a value of 0 is provided for this field, VMware Engine uses the default value instead.

int32 peer_mtu = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clearPeerNetwork()

public NetworkPeering.Builder clearPeerNetwork()

Required. The relative resource name of the network to peer with a standard VMware Engine network. The provided network can be a consumer VPC network or another standard VMware Engine network. If the peer_network_type is VMWARE_ENGINE_NETWORK, specify the name in the form: projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}. Otherwise specify the name in the form: projects/{project}/global/networks/{network_id}, where {project} can either be a project number or a project ID.

string peer_network = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clearPeerNetworkType()

public NetworkPeering.Builder clearPeerNetworkType()

Required. The type of the network to peer with the VMware Engine network.

.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clearState()

public NetworkPeering.Builder clearState()

Output only. State of the network peering. This field has a value of 'ACTIVE' when there's a matching configuration in the peer network. New values may be added to this enum when appropriate.

.google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clearStateDetails()

public NetworkPeering.Builder clearStateDetails()

Output only. Output Only. Details about the current state of the network peering.

string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clearUid()

public NetworkPeering.Builder clearUid()

Output only. System-generated unique identifier for the resource.

string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clearUpdateTime()

public NetworkPeering.Builder clearUpdateTime()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkPeering.Builder

clearVmwareEngineNetwork()

public NetworkPeering.Builder clearVmwareEngineNetwork()

Required. The relative resource name of the VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project} can either be a project number or a project ID.

string vmware_engine_network = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public NetworkPeering getDefaultInstanceForType()
Returns
Type Description
NetworkPeering

getDescription()

public String getDescription()

Optional. User-provided description for this network peering.

string description = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. User-provided description for this network peering.

string description = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getExchangeSubnetRoutes()

public boolean getExchangeSubnetRoutes()

Optional. True if full mesh connectivity is created and managed automatically between peered networks; false otherwise. Currently this field is always true because Google Compute Engine automatically creates and manages subnetwork routes between two VPC networks when peering state is 'ACTIVE'.

optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The exchangeSubnetRoutes.

getExportCustomRoutes()

public boolean getExportCustomRoutes()

Optional. True if custom routes are exported to the peered network; false otherwise. The default value is true.

optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The exportCustomRoutes.

getExportCustomRoutesWithPublicIp()

public boolean getExportCustomRoutesWithPublicIp()

Optional. True if all subnet routes with a public IP address range are exported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always exported to peers and are not controlled by this field.

optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The exportCustomRoutesWithPublicIp.

getImportCustomRoutes()

public boolean getImportCustomRoutes()

Optional. True if custom routes are imported from the peered network; false otherwise. The default value is true.

optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The importCustomRoutes.

getImportCustomRoutesWithPublicIp()

public boolean getImportCustomRoutesWithPublicIp()

Optional. True if all subnet routes with public IP address range are imported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always imported to peers and are not controlled by this field.

optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The importCustomRoutesWithPublicIp.

getName()

public String getName()

Output only. The resource name of the network peering. NetworkPeering is a global resource and location can only be global. Resource names are scheme-less URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/global/networkPeerings/my-peering

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the network peering. NetworkPeering is a global resource and location can only be global. Resource names are scheme-less URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/global/networkPeerings/my-peering

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getPeerMtu()

public int getPeerMtu()

Optional. Maximum transmission unit (MTU) in bytes. The default value is 1500. If a value of 0 is provided for this field, VMware Engine uses the default value instead.

int32 peer_mtu = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The peerMtu.

getPeerNetwork()

public String getPeerNetwork()

Required. The relative resource name of the network to peer with a standard VMware Engine network. The provided network can be a consumer VPC network or another standard VMware Engine network. If the peer_network_type is VMWARE_ENGINE_NETWORK, specify the name in the form: projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}. Otherwise specify the name in the form: projects/{project}/global/networks/{network_id}, where {project} can either be a project number or a project ID.

string peer_network = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The peerNetwork.

getPeerNetworkBytes()

public ByteString getPeerNetworkBytes()

Required. The relative resource name of the network to peer with a standard VMware Engine network. The provided network can be a consumer VPC network or another standard VMware Engine network. If the peer_network_type is VMWARE_ENGINE_NETWORK, specify the name in the form: projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}. Otherwise specify the name in the form: projects/{project}/global/networks/{network_id}, where {project} can either be a project number or a project ID.

string peer_network = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for peerNetwork.

getPeerNetworkType()

public NetworkPeering.PeerNetworkType getPeerNetworkType()

Required. The type of the network to peer with the VMware Engine network.

.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NetworkPeering.PeerNetworkType

The peerNetworkType.

getPeerNetworkTypeValue()

public int getPeerNetworkTypeValue()

Required. The type of the network to peer with the VMware Engine network.

.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for peerNetworkType.

getState()

public NetworkPeering.State getState()

Output only. State of the network peering. This field has a value of 'ACTIVE' when there's a matching configuration in the peer network. New values may be added to this enum when appropriate.

.google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkPeering.State

The state.

getStateDetails()

public String getStateDetails()

Output only. Output Only. Details about the current state of the network peering.

string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The stateDetails.

getStateDetailsBytes()

public ByteString getStateDetailsBytes()

Output only. Output Only. Details about the current state of the network peering.

string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for stateDetails.

getStateValue()

public int getStateValue()

Output only. State of the network peering. This field has a value of 'ACTIVE' when there's a matching configuration in the peer network. New values may be added to this enum when appropriate.

.google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUid()

public String getUid()

Output only. System-generated unique identifier for the resource.

string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. System-generated unique identifier for the resource.

string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getVmwareEngineNetwork()

public String getVmwareEngineNetwork()

Required. The relative resource name of the VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project} can either be a project number or a project ID.

string vmware_engine_network = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The vmwareEngineNetwork.

getVmwareEngineNetworkBytes()

public ByteString getVmwareEngineNetworkBytes()

Required. The relative resource name of the VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project} can either be a project number or a project ID.

string vmware_engine_network = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for vmwareEngineNetwork.

hasCreateTime()

public boolean hasCreateTime()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasExchangeSubnetRoutes()

public boolean hasExchangeSubnetRoutes()

Optional. True if full mesh connectivity is created and managed automatically between peered networks; false otherwise. Currently this field is always true because Google Compute Engine automatically creates and manages subnetwork routes between two VPC networks when peering state is 'ACTIVE'.

optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the exchangeSubnetRoutes field is set.

hasExportCustomRoutes()

public boolean hasExportCustomRoutes()

Optional. True if custom routes are exported to the peered network; false otherwise. The default value is true.

optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the exportCustomRoutes field is set.

hasExportCustomRoutesWithPublicIp()

public boolean hasExportCustomRoutesWithPublicIp()

Optional. True if all subnet routes with a public IP address range are exported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always exported to peers and are not controlled by this field.

optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the exportCustomRoutesWithPublicIp field is set.

hasImportCustomRoutes()

public boolean hasImportCustomRoutes()

Optional. True if custom routes are imported from the peered network; false otherwise. The default value is true.

optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the importCustomRoutes field is set.

hasImportCustomRoutesWithPublicIp()

public boolean hasImportCustomRoutesWithPublicIp()

Optional. True if all subnet routes with public IP address range are imported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always imported to peers and are not controlled by this field.

optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the importCustomRoutesWithPublicIp field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public NetworkPeering.Builder mergeCreateTime(Timestamp value)

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
NetworkPeering.Builder

mergeFrom(NetworkPeering other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public NetworkPeering.Builder mergeUpdateTime(Timestamp value)

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
NetworkPeering.Builder

setCreateTime(Timestamp value)

public NetworkPeering.Builder setCreateTime(Timestamp value)

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
NetworkPeering.Builder

setCreateTime(Timestamp.Builder builderForValue)

public NetworkPeering.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
NetworkPeering.Builder

setDescription(String value)

public NetworkPeering.Builder setDescription(String value)

Optional. User-provided description for this network peering.

string description = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public NetworkPeering.Builder setDescriptionBytes(ByteString value)

Optional. User-provided description for this network peering.

string description = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setExchangeSubnetRoutes(boolean value)

public NetworkPeering.Builder setExchangeSubnetRoutes(boolean value)

Optional. True if full mesh connectivity is created and managed automatically between peered networks; false otherwise. Currently this field is always true because Google Compute Engine automatically creates and manages subnetwork routes between two VPC networks when peering state is 'ACTIVE'.

optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The exchangeSubnetRoutes to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setExportCustomRoutes(boolean value)

public NetworkPeering.Builder setExportCustomRoutes(boolean value)

Optional. True if custom routes are exported to the peered network; false otherwise. The default value is true.

optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The exportCustomRoutes to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setExportCustomRoutesWithPublicIp(boolean value)

public NetworkPeering.Builder setExportCustomRoutesWithPublicIp(boolean value)

Optional. True if all subnet routes with a public IP address range are exported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always exported to peers and are not controlled by this field.

optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The exportCustomRoutesWithPublicIp to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setImportCustomRoutes(boolean value)

public NetworkPeering.Builder setImportCustomRoutes(boolean value)

Optional. True if custom routes are imported from the peered network; false otherwise. The default value is true.

optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The importCustomRoutes to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setImportCustomRoutesWithPublicIp(boolean value)

public NetworkPeering.Builder setImportCustomRoutesWithPublicIp(boolean value)

Optional. True if all subnet routes with public IP address range are imported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always imported to peers and are not controlled by this field.

optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The importCustomRoutesWithPublicIp to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setName(String value)

public NetworkPeering.Builder setName(String value)

Output only. The resource name of the network peering. NetworkPeering is a global resource and location can only be global. Resource names are scheme-less URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/global/networkPeerings/my-peering

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NetworkPeering.Builder setNameBytes(ByteString value)

Output only. The resource name of the network peering. NetworkPeering is a global resource and location can only be global. Resource names are scheme-less URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/global/networkPeerings/my-peering

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setPeerMtu(int value)

public NetworkPeering.Builder setPeerMtu(int value)

Optional. Maximum transmission unit (MTU) in bytes. The default value is 1500. If a value of 0 is provided for this field, VMware Engine uses the default value instead.

int32 peer_mtu = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The peerMtu to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setPeerNetwork(String value)

public NetworkPeering.Builder setPeerNetwork(String value)

Required. The relative resource name of the network to peer with a standard VMware Engine network. The provided network can be a consumer VPC network or another standard VMware Engine network. If the peer_network_type is VMWARE_ENGINE_NETWORK, specify the name in the form: projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}. Otherwise specify the name in the form: projects/{project}/global/networks/{network_id}, where {project} can either be a project number or a project ID.

string peer_network = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The peerNetwork to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setPeerNetworkBytes(ByteString value)

public NetworkPeering.Builder setPeerNetworkBytes(ByteString value)

Required. The relative resource name of the network to peer with a standard VMware Engine network. The provided network can be a consumer VPC network or another standard VMware Engine network. If the peer_network_type is VMWARE_ENGINE_NETWORK, specify the name in the form: projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}. Otherwise specify the name in the form: projects/{project}/global/networks/{network_id}, where {project} can either be a project number or a project ID.

string peer_network = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for peerNetwork to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setPeerNetworkType(NetworkPeering.PeerNetworkType value)

public NetworkPeering.Builder setPeerNetworkType(NetworkPeering.PeerNetworkType value)

Required. The type of the network to peer with the VMware Engine network.

.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value NetworkPeering.PeerNetworkType

The peerNetworkType to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setPeerNetworkTypeValue(int value)

public NetworkPeering.Builder setPeerNetworkTypeValue(int value)

Required. The type of the network to peer with the VMware Engine network.

.google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for peerNetworkType to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

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

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

setState(NetworkPeering.State value)

public NetworkPeering.Builder setState(NetworkPeering.State value)

Output only. State of the network peering. This field has a value of 'ACTIVE' when there's a matching configuration in the peer network. New values may be added to this enum when appropriate.

.google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value NetworkPeering.State

The state to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setStateDetails(String value)

public NetworkPeering.Builder setStateDetails(String value)

Output only. Output Only. Details about the current state of the network peering.

string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The stateDetails to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setStateDetailsBytes(ByteString value)

public NetworkPeering.Builder setStateDetailsBytes(ByteString value)

Output only. Output Only. Details about the current state of the network peering.

string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for stateDetails to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setStateValue(int value)

public NetworkPeering.Builder setStateValue(int value)

Output only. State of the network peering. This field has a value of 'ACTIVE' when there's a matching configuration in the peer network. New values may be added to this enum when appropriate.

.google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setUid(String value)

public NetworkPeering.Builder setUid(String value)

Output only. System-generated unique identifier for the resource.

string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setUidBytes(ByteString value)

public NetworkPeering.Builder setUidBytes(ByteString value)

Output only. System-generated unique identifier for the resource.

string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public NetworkPeering.Builder setUpdateTime(Timestamp value)

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
NetworkPeering.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public NetworkPeering.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
NetworkPeering.Builder

setVmwareEngineNetwork(String value)

public NetworkPeering.Builder setVmwareEngineNetwork(String value)

Required. The relative resource name of the VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project} can either be a project number or a project ID.

string vmware_engine_network = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The vmwareEngineNetwork to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.

setVmwareEngineNetworkBytes(ByteString value)

public NetworkPeering.Builder setVmwareEngineNetworkBytes(ByteString value)

Required. The relative resource name of the VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project} can either be a project number or a project ID.

string vmware_engine_network = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for vmwareEngineNetwork to set.

Returns
Type Description
NetworkPeering.Builder

This builder for chaining.