Class PrivateConnection.Builder (0.22.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PrivateConnection build()
Returns
TypeDescription
PrivateConnection

buildPartial()

public PrivateConnection buildPartial()
Returns
TypeDescription
PrivateConnection

clear()

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

clearDescription()

public PrivateConnection.Builder clearDescription()

Optional. User-provided description for this private connection.

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

Returns
TypeDescription
PrivateConnection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PrivateConnection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
PrivateConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public PrivateConnection getDefaultInstanceForType()
Returns
TypeDescription
PrivateConnection

getDescription()

public String getDescription()

Optional. User-provided description for this private connection.

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

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. User-provided description for this private connection.

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

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
PrivateConnection.Builder

mergeFrom(PrivateConnection other)

public PrivateConnection.Builder mergeFrom(PrivateConnection other)
Parameter
NameDescription
otherPrivateConnection
Returns
TypeDescription
PrivateConnection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PrivateConnection.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PrivateConnection.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivateConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

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

The bytes for description to set.

Returns
TypeDescription
PrivateConnection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

The peeringId to set.

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

The bytes for peeringId to set.

Returns
TypeDescription
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
NameDescription
valuePrivateConnection.PeeringState

The peeringState to set.

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

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuePrivateConnection.RoutingMode

The routingMode to set.

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

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

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

The serviceNetwork to set.

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

The bytes for serviceNetwork to set.

Returns
TypeDescription
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
NameDescription
valuePrivateConnection.State

The state to set.

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

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

Returns
TypeDescription
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
NameDescription
valuePrivateConnection.Type

The type to set.

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

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

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

The uid to set.

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

The bytes for uid to set.

Returns
TypeDescription
PrivateConnection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PrivateConnection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The vmwareEngineNetwork to set.

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

The bytes for vmwareEngineNetwork to set.

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

The vmwareEngineNetworkCanonical to set.

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

The bytes for vmwareEngineNetworkCanonical to set.

Returns
TypeDescription
PrivateConnection.Builder

This builder for chaining.