Class GenerateTcpProxyScriptRequest.Builder (2.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateTcpProxyScriptRequest build()
Returns
TypeDescription
GenerateTcpProxyScriptRequest

buildPartial()

public GenerateTcpProxyScriptRequest buildPartial()
Returns
TypeDescription
GenerateTcpProxyScriptRequest

clear()

public GenerateTcpProxyScriptRequest.Builder clear()
Returns
TypeDescription
GenerateTcpProxyScriptRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public GenerateTcpProxyScriptRequest.Builder clone()
Returns
TypeDescription
GenerateTcpProxyScriptRequest.Builder
Overrides

getDefaultInstanceForType()

public GenerateTcpProxyScriptRequest getDefaultInstanceForType()
Returns
TypeDescription
GenerateTcpProxyScriptRequest

getDescriptorForType()

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

The bytes for vmZone.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GenerateTcpProxyScriptRequest other)

public GenerateTcpProxyScriptRequest.Builder mergeFrom(GenerateTcpProxyScriptRequest other)
Parameter
NameDescription
otherGenerateTcpProxyScriptRequest
Returns
TypeDescription
GenerateTcpProxyScriptRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateTcpProxyScriptRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GenerateTcpProxyScriptRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The migrationJob to set.

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

The bytes for migrationJob to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The vmMachineType to set.

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

The bytes for vmMachineType to set.

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

The vmName to set.

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

The bytes for vmName to set.

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

The vmSubnet to set.

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

The bytes for vmSubnet to set.

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

The vmZone to set.

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

The bytes for vmZone to set.

Returns
TypeDescription
GenerateTcpProxyScriptRequest.Builder

This builder for chaining.