Class GenerateTcpProxyScriptRequest.Builder (2.45.0)

public static final class GenerateTcpProxyScriptRequest.Builder extends GeneratedMessageV3.Builder<GenerateTcpProxyScriptRequest.Builder> implements GenerateTcpProxyScriptRequestOrBuilder

Request message for 'GenerateTcpProxyScript' request.

Protobuf type google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateTcpProxyScriptRequest build()
Returns
Type Description
GenerateTcpProxyScriptRequest

buildPartial()

public GenerateTcpProxyScriptRequest buildPartial()
Returns
Type Description
GenerateTcpProxyScriptRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMigrationJob()

public GenerateTcpProxyScriptRequest.Builder clearMigrationJob()

Name of the migration job resource to generate the TCP Proxy script.

string migration_job = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVmMachineType()

public GenerateTcpProxyScriptRequest.Builder clearVmMachineType()

Required. The type of the Compute instance that will host the proxy.

string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

clearVmName()

public GenerateTcpProxyScriptRequest.Builder clearVmName()

Required. The name of the Compute instance that will host the proxy.

string vm_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

clearVmSubnet()

public GenerateTcpProxyScriptRequest.Builder clearVmSubnet()

Required. The name of the subnet the Compute instance will use for private connectivity. Must be supplied in the form of projects/{project}/regions/{region}/subnetworks/{subnetwork}. Note: the region for the subnet must match the Compute instance region.

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

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

clearVmZone()

public GenerateTcpProxyScriptRequest.Builder clearVmZone()

Optional. The Google Cloud Platform zone to create the VM in. The fully qualified name of the zone must be specified, including the region name, for example "us-central1-b". If not specified, uses the "-b" zone of the destination Connection Profile's region.

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

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GenerateTcpProxyScriptRequest getDefaultInstanceForType()
Returns
Type Description
GenerateTcpProxyScriptRequest

getDescriptorForType()

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

getMigrationJob()

public String getMigrationJob()

Name of the migration job resource to generate the TCP Proxy script.

string migration_job = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The migrationJob.

getMigrationJobBytes()

public ByteString getMigrationJobBytes()

Name of the migration job resource to generate the TCP Proxy script.

string migration_job = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for migrationJob.

getVmMachineType()

public String getVmMachineType()

Required. The type of the Compute instance that will host the proxy.

string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The vmMachineType.

getVmMachineTypeBytes()

public ByteString getVmMachineTypeBytes()

Required. The type of the Compute instance that will host the proxy.

string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for vmMachineType.

getVmName()

public String getVmName()

Required. The name of the Compute instance that will host the proxy.

string vm_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The vmName.

getVmNameBytes()

public ByteString getVmNameBytes()

Required. The name of the Compute instance that will host the proxy.

string vm_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for vmName.

getVmSubnet()

public String getVmSubnet()

Required. The name of the subnet the Compute instance will use for private connectivity. Must be supplied in the form of projects/{project}/regions/{region}/subnetworks/{subnetwork}. Note: the region for the subnet must match the Compute instance region.

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

Returns
Type Description
String

The vmSubnet.

getVmSubnetBytes()

public ByteString getVmSubnetBytes()

Required. The name of the subnet the Compute instance will use for private connectivity. Must be supplied in the form of projects/{project}/regions/{region}/subnetworks/{subnetwork}. Note: the region for the subnet must match the Compute instance region.

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

Returns
Type Description
ByteString

The bytes for vmSubnet.

getVmZone()

public String getVmZone()

Optional. The Google Cloud Platform zone to create the VM in. The fully qualified name of the zone must be specified, including the region name, for example "us-central1-b". If not specified, uses the "-b" zone of the destination Connection Profile's region.

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

Returns
Type Description
String

The vmZone.

getVmZoneBytes()

public ByteString getVmZoneBytes()

Optional. The Google Cloud Platform zone to create the VM in. The fully qualified name of the zone must be specified, including the region name, for example "us-central1-b". If not specified, uses the "-b" zone of the destination Connection Profile's region.

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

Returns
Type Description
ByteString

The bytes for vmZone.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerateTcpProxyScriptRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMigrationJob(String value)

public GenerateTcpProxyScriptRequest.Builder setMigrationJob(String value)

Name of the migration job resource to generate the TCP Proxy script.

string migration_job = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The migrationJob to set.

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

setMigrationJobBytes(ByteString value)

public GenerateTcpProxyScriptRequest.Builder setMigrationJobBytes(ByteString value)

Name of the migration job resource to generate the TCP Proxy script.

string migration_job = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for migrationJob to set.

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVmMachineType(String value)

public GenerateTcpProxyScriptRequest.Builder setVmMachineType(String value)

Required. The type of the Compute instance that will host the proxy.

string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The vmMachineType to set.

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

setVmMachineTypeBytes(ByteString value)

public GenerateTcpProxyScriptRequest.Builder setVmMachineTypeBytes(ByteString value)

Required. The type of the Compute instance that will host the proxy.

string vm_machine_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for vmMachineType to set.

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

setVmName(String value)

public GenerateTcpProxyScriptRequest.Builder setVmName(String value)

Required. The name of the Compute instance that will host the proxy.

string vm_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The vmName to set.

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

setVmNameBytes(ByteString value)

public GenerateTcpProxyScriptRequest.Builder setVmNameBytes(ByteString value)

Required. The name of the Compute instance that will host the proxy.

string vm_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for vmName to set.

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

setVmSubnet(String value)

public GenerateTcpProxyScriptRequest.Builder setVmSubnet(String value)

Required. The name of the subnet the Compute instance will use for private connectivity. Must be supplied in the form of projects/{project}/regions/{region}/subnetworks/{subnetwork}. Note: the region for the subnet must match the Compute instance region.

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

Parameter
Name Description
value String

The vmSubnet to set.

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

setVmSubnetBytes(ByteString value)

public GenerateTcpProxyScriptRequest.Builder setVmSubnetBytes(ByteString value)

Required. The name of the subnet the Compute instance will use for private connectivity. Must be supplied in the form of projects/{project}/regions/{region}/subnetworks/{subnetwork}. Note: the region for the subnet must match the Compute instance region.

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

Parameter
Name Description
value ByteString

The bytes for vmSubnet to set.

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

setVmZone(String value)

public GenerateTcpProxyScriptRequest.Builder setVmZone(String value)

Optional. The Google Cloud Platform zone to create the VM in. The fully qualified name of the zone must be specified, including the region name, for example "us-central1-b". If not specified, uses the "-b" zone of the destination Connection Profile's region.

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

Parameter
Name Description
value String

The vmZone to set.

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.

setVmZoneBytes(ByteString value)

public GenerateTcpProxyScriptRequest.Builder setVmZoneBytes(ByteString value)

Optional. The Google Cloud Platform zone to create the VM in. The fully qualified name of the zone must be specified, including the region name, for example "us-central1-b". If not specified, uses the "-b" zone of the destination Connection Profile's region.

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

Parameter
Name Description
value ByteString

The bytes for vmZone to set.

Returns
Type Description
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.