Class PrivateConnection.Builder (0.39.0)

public static final class PrivateConnection.Builder extends GeneratedMessageV3.Builder<PrivateConnection.Builder> implements PrivateConnectionOrBuilder

Private connection resource that provides connectivity for VMware Engine private clouds.

Protobuf type google.cloud.vmwareengine.v1.PrivateConnection

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PrivateConnection build()
Returns
Type Description
PrivateConnection

buildPartial()

public PrivateConnection buildPartial()
Returns
Type Description
PrivateConnection

clear()

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

clearCreateTime()

public PrivateConnection.Builder clearCreateTime()

Output only. Creation time of this resource.

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

Returns
Type Description
PrivateConnection.Builder

clearDescription()

public PrivateConnection.Builder clearDescription()

Optional. User-provided description for this private connection.

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

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public PrivateConnection.Builder clearName()

Output only. The resource name of the private connection. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/privateConnections/my-connection

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

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPeeringId()

public PrivateConnection.Builder clearPeeringId()

Output only. VPC network peering id between given network VPC and VMwareEngineNetwork.

string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearPeeringState()

public PrivateConnection.Builder clearPeeringState()

Output only. Peering state between service network and VMware Engine network.

.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearRoutingMode()

public PrivateConnection.Builder clearRoutingMode()

Optional. Routing Mode. Default value is set to GLOBAL. For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or REGIONAL, for other types only GLOBAL is supported.

.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearServiceNetwork()

public PrivateConnection.Builder clearServiceNetwork()

Required. Service network to create private connection. Specify the name in the following form: projects/{project}/global/networks/{network_id} For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking VPC, e.g. projects/project-tp/global/networks/servicenetworking. For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC, e.g. projects/project-tp/global/networks/netapp-tenant-vpc. For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g. projects/project-tp/global/networks/dell-tenant-vpc. For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or any other producer VPC to which the VMware Engine Network needs to be connected, e.g. projects/project/global/networks/vpc.

string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearState()

public PrivateConnection.Builder clearState()

Output only. State of the private connection.

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

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearType()

public PrivateConnection.Builder clearType()

Required. Private connection type.

.google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearUid()

public PrivateConnection.Builder clearUid()

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

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

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearUpdateTime()

public PrivateConnection.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
PrivateConnection.Builder

clearVmwareEngineNetwork()

public PrivateConnection.Builder clearVmwareEngineNetwork()

Required. The relative resource name of Legacy VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project}, {location} will be same as specified in private connection resource name and {vmware_engine_network_id} will be in the form of {location}-default e.g. projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.

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

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clearVmwareEngineNetworkCanonical()

public PrivateConnection.Builder clearVmwareEngineNetworkCanonical()

Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

clone()

public PrivateConnection.Builder clone()
Returns
Type Description
PrivateConnection.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 PrivateConnection getDefaultInstanceForType()
Returns
Type Description
PrivateConnection

getDescription()

public String getDescription()

Optional. User-provided description for this private connection.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. User-provided description for this private connection.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getName()

public String getName()

Output only. The resource name of the private connection. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/privateConnections/my-connection

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 private connection. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/privateConnections/my-connection

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

Returns
Type Description
ByteString

The bytes for name.

getPeeringId()

public String getPeeringId()

Output only. VPC network peering id between given network VPC and VMwareEngineNetwork.

string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The peeringId.

getPeeringIdBytes()

public ByteString getPeeringIdBytes()

Output only. VPC network peering id between given network VPC and VMwareEngineNetwork.

string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for peeringId.

getPeeringState()

public PrivateConnection.PeeringState getPeeringState()

Output only. Peering state between service network and VMware Engine network.

.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivateConnection.PeeringState

The peeringState.

getPeeringStateValue()

public int getPeeringStateValue()

Output only. Peering state between service network and VMware Engine network.

.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for peeringState.

getRoutingMode()

public PrivateConnection.RoutingMode getRoutingMode()

Optional. Routing Mode. Default value is set to GLOBAL. For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or REGIONAL, for other types only GLOBAL is supported.

.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateConnection.RoutingMode

The routingMode.

getRoutingModeValue()

public int getRoutingModeValue()

Optional. Routing Mode. Default value is set to GLOBAL. For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or REGIONAL, for other types only GLOBAL is supported.

.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for routingMode.

getServiceNetwork()

public String getServiceNetwork()

Required. Service network to create private connection. Specify the name in the following form: projects/{project}/global/networks/{network_id} For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking VPC, e.g. projects/project-tp/global/networks/servicenetworking. For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC, e.g. projects/project-tp/global/networks/netapp-tenant-vpc. For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g. projects/project-tp/global/networks/dell-tenant-vpc. For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or any other producer VPC to which the VMware Engine Network needs to be connected, e.g. projects/project/global/networks/vpc.

string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The serviceNetwork.

getServiceNetworkBytes()

public ByteString getServiceNetworkBytes()

Required. Service network to create private connection. Specify the name in the following form: projects/{project}/global/networks/{network_id} For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking VPC, e.g. projects/project-tp/global/networks/servicenetworking. For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC, e.g. projects/project-tp/global/networks/netapp-tenant-vpc. For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g. projects/project-tp/global/networks/dell-tenant-vpc. For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or any other producer VPC to which the VMware Engine Network needs to be connected, e.g. projects/project/global/networks/vpc.

string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for serviceNetwork.

getState()

public PrivateConnection.State getState()

Output only. State of the private connection.

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

Returns
Type Description
PrivateConnection.State

The state.

getStateValue()

public int getStateValue()

Output only. State of the private connection.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getType()

public PrivateConnection.Type getType()

Required. Private connection type.

.google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PrivateConnection.Type

The type.

getTypeValue()

public int getTypeValue()

Required. Private connection type.

.google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for type.

getUid()

public String getUid()

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

string uid = 14 [(.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 = 14 [(.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 Legacy VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project}, {location} will be same as specified in private connection resource name and {vmware_engine_network_id} will be in the form of {location}-default e.g. projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.

string vmware_engine_network = 8 [(.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 Legacy VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project}, {location} will be same as specified in private connection resource name and {vmware_engine_network_id} will be in the form of {location}-default e.g. projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.

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

Returns
Type Description
ByteString

The bytes for vmwareEngineNetwork.

getVmwareEngineNetworkCanonical()

public String getVmwareEngineNetworkCanonical()

Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The vmwareEngineNetworkCanonical.

getVmwareEngineNetworkCanonicalBytes()

public ByteString getVmwareEngineNetworkCanonicalBytes()

Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for vmwareEngineNetworkCanonical.

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.

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 PrivateConnection.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
PrivateConnection.Builder

mergeFrom(PrivateConnection other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public PrivateConnection.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
PrivateConnection.Builder

setCreateTime(Timestamp value)

public PrivateConnection.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
PrivateConnection.Builder

setCreateTime(Timestamp.Builder builderForValue)

public PrivateConnection.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
PrivateConnection.Builder

setDescription(String value)

public PrivateConnection.Builder setDescription(String value)

Optional. User-provided description for this private connection.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public PrivateConnection.Builder setDescriptionBytes(ByteString value)

Optional. User-provided description for this private connection.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public PrivateConnection.Builder setName(String value)

Output only. The resource name of the private connection. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/privateConnections/my-connection

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PrivateConnection.Builder setNameBytes(ByteString value)

Output only. The resource name of the private connection. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/privateConnections/my-connection

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setPeeringId(String value)

public PrivateConnection.Builder setPeeringId(String value)

Output only. VPC network peering id between given network VPC and VMwareEngineNetwork.

string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The peeringId to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setPeeringIdBytes(ByteString value)

public PrivateConnection.Builder setPeeringIdBytes(ByteString value)

Output only. VPC network peering id between given network VPC and VMwareEngineNetwork.

string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for peeringId to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setPeeringState(PrivateConnection.PeeringState value)

public PrivateConnection.Builder setPeeringState(PrivateConnection.PeeringState value)

Output only. Peering state between service network and VMware Engine network.

.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PrivateConnection.PeeringState

The peeringState to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setPeeringStateValue(int value)

public PrivateConnection.Builder setPeeringStateValue(int value)

Output only. Peering state between service network and VMware Engine network.

.google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

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

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

setRoutingMode(PrivateConnection.RoutingMode value)

public PrivateConnection.Builder setRoutingMode(PrivateConnection.RoutingMode value)

Optional. Routing Mode. Default value is set to GLOBAL. For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or REGIONAL, for other types only GLOBAL is supported.

.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PrivateConnection.RoutingMode

The routingMode to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setRoutingModeValue(int value)

public PrivateConnection.Builder setRoutingModeValue(int value)

Optional. Routing Mode. Default value is set to GLOBAL. For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or REGIONAL, for other types only GLOBAL is supported.

.google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setServiceNetwork(String value)

public PrivateConnection.Builder setServiceNetwork(String value)

Required. Service network to create private connection. Specify the name in the following form: projects/{project}/global/networks/{network_id} For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking VPC, e.g. projects/project-tp/global/networks/servicenetworking. For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC, e.g. projects/project-tp/global/networks/netapp-tenant-vpc. For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g. projects/project-tp/global/networks/dell-tenant-vpc. For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or any other producer VPC to which the VMware Engine Network needs to be connected, e.g. projects/project/global/networks/vpc.

string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The serviceNetwork to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setServiceNetworkBytes(ByteString value)

public PrivateConnection.Builder setServiceNetworkBytes(ByteString value)

Required. Service network to create private connection. Specify the name in the following form: projects/{project}/global/networks/{network_id} For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking VPC, e.g. projects/project-tp/global/networks/servicenetworking. For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC, e.g. projects/project-tp/global/networks/netapp-tenant-vpc. For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g. projects/project-tp/global/networks/dell-tenant-vpc. For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or any other producer VPC to which the VMware Engine Network needs to be connected, e.g. projects/project/global/networks/vpc.

string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for serviceNetwork to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setState(PrivateConnection.State value)

public PrivateConnection.Builder setState(PrivateConnection.State value)

Output only. State of the private connection.

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

Parameter
Name Description
value PrivateConnection.State

The state to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setStateValue(int value)

public PrivateConnection.Builder setStateValue(int value)

Output only. State of the private connection.

.google.cloud.vmwareengine.v1.PrivateConnection.State state = 5 [(.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
PrivateConnection.Builder

This builder for chaining.

setType(PrivateConnection.Type value)

public PrivateConnection.Builder setType(PrivateConnection.Type value)

Required. Private connection type.

.google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PrivateConnection.Type

The type to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setTypeValue(int value)

public PrivateConnection.Builder setTypeValue(int value)

Required. Private connection type.

.google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setUid(String value)

public PrivateConnection.Builder setUid(String value)

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

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

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setUidBytes(ByteString value)

public PrivateConnection.Builder setUidBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public PrivateConnection.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
PrivateConnection.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public PrivateConnection.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
PrivateConnection.Builder

setVmwareEngineNetwork(String value)

public PrivateConnection.Builder setVmwareEngineNetwork(String value)

Required. The relative resource name of Legacy VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project}, {location} will be same as specified in private connection resource name and {vmware_engine_network_id} will be in the form of {location}-default e.g. projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.

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

Parameter
Name Description
value String

The vmwareEngineNetwork to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setVmwareEngineNetworkBytes(ByteString value)

public PrivateConnection.Builder setVmwareEngineNetworkBytes(ByteString value)

Required. The relative resource name of Legacy VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project}, {location} will be same as specified in private connection resource name and {vmware_engine_network_id} will be in the form of {location}-default e.g. projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.

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

Parameter
Name Description
value ByteString

The bytes for vmwareEngineNetwork to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setVmwareEngineNetworkCanonical(String value)

public PrivateConnection.Builder setVmwareEngineNetworkCanonical(String value)

Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The vmwareEngineNetworkCanonical to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.

setVmwareEngineNetworkCanonicalBytes(ByteString value)

public PrivateConnection.Builder setVmwareEngineNetworkCanonicalBytes(ByteString value)

Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for vmwareEngineNetworkCanonical to set.

Returns
Type Description
PrivateConnection.Builder

This builder for chaining.