Class ApplyConversionWorkspaceRequest.Builder (2.26.0)

public static final class ApplyConversionWorkspaceRequest.Builder extends GeneratedMessageV3.Builder<ApplyConversionWorkspaceRequest.Builder> implements ApplyConversionWorkspaceRequestOrBuilder

Request message for 'ApplyConversionWorkspace' request.

Protobuf type google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ApplyConversionWorkspaceRequest build()
Returns
TypeDescription
ApplyConversionWorkspaceRequest

buildPartial()

public ApplyConversionWorkspaceRequest buildPartial()
Returns
TypeDescription
ApplyConversionWorkspaceRequest

clear()

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

clearAutoCommit()

public ApplyConversionWorkspaceRequest.Builder clearAutoCommit()

Optional. Specifies whether the conversion workspace is to be committed automatically after the apply.

bool auto_commit = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

This builder for chaining.

clearConnectionProfile()

public ApplyConversionWorkspaceRequest.Builder clearConnectionProfile()

Optional. Fully qualified (Uri) name of the destination connection profile.

string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

This builder for chaining.

clearDestination()

public ApplyConversionWorkspaceRequest.Builder clearDestination()
Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

clearDryRun()

public ApplyConversionWorkspaceRequest.Builder clearDryRun()

Optional. Only validates the apply process, but doesn't change the destination database. Only works for PostgreSQL destination connection profile.

bool dry_run = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ApplyConversionWorkspaceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder
Overrides

clearFilter()

public ApplyConversionWorkspaceRequest.Builder clearFilter()

Filter which entities to apply. Leaving this field empty will apply all of the entities. Supports Google AIP 160 based filtering.

string filter = 2;

Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

This builder for chaining.

clearName()

public ApplyConversionWorkspaceRequest.Builder clearName()

Required. The name of the conversion workspace resource for which to apply the draft tree. Must be in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ApplyConversionWorkspaceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder
Overrides

clone()

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

getAutoCommit()

public boolean getAutoCommit()

Optional. Specifies whether the conversion workspace is to be committed automatically after the apply.

bool auto_commit = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The autoCommit.

getConnectionProfile()

public String getConnectionProfile()

Optional. Fully qualified (Uri) name of the destination connection profile.

string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The connectionProfile.

getConnectionProfileBytes()

public ByteString getConnectionProfileBytes()

Optional. Fully qualified (Uri) name of the destination connection profile.

string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for connectionProfile.

getDefaultInstanceForType()

public ApplyConversionWorkspaceRequest getDefaultInstanceForType()
Returns
TypeDescription
ApplyConversionWorkspaceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestinationCase()

public ApplyConversionWorkspaceRequest.DestinationCase getDestinationCase()
Returns
TypeDescription
ApplyConversionWorkspaceRequest.DestinationCase

getDryRun()

public boolean getDryRun()

Optional. Only validates the apply process, but doesn't change the destination database. Only works for PostgreSQL destination connection profile.

bool dry_run = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The dryRun.

getFilter()

public String getFilter()

Filter which entities to apply. Leaving this field empty will apply all of the entities. Supports Google AIP 160 based filtering.

string filter = 2;

Returns
TypeDescription
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Filter which entities to apply. Leaving this field empty will apply all of the entities. Supports Google AIP 160 based filtering.

string filter = 2;

Returns
TypeDescription
ByteString

The bytes for filter.

getName()

public String getName()

Required. The name of the conversion workspace resource for which to apply the draft tree. Must be in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the conversion workspace resource for which to apply the draft tree. Must be in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

hasConnectionProfile()

public boolean hasConnectionProfile()

Optional. Fully qualified (Uri) name of the destination connection profile.

string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the connectionProfile field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ApplyConversionWorkspaceRequest other)

public ApplyConversionWorkspaceRequest.Builder mergeFrom(ApplyConversionWorkspaceRequest other)
Parameter
NameDescription
otherApplyConversionWorkspaceRequest
Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAutoCommit(boolean value)

public ApplyConversionWorkspaceRequest.Builder setAutoCommit(boolean value)

Optional. Specifies whether the conversion workspace is to be committed automatically after the apply.

bool auto_commit = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The autoCommit to set.

Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

This builder for chaining.

setConnectionProfile(String value)

public ApplyConversionWorkspaceRequest.Builder setConnectionProfile(String value)

Optional. Fully qualified (Uri) name of the destination connection profile.

string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The connectionProfile to set.

Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

This builder for chaining.

setConnectionProfileBytes(ByteString value)

public ApplyConversionWorkspaceRequest.Builder setConnectionProfileBytes(ByteString value)

Optional. Fully qualified (Uri) name of the destination connection profile.

string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for connectionProfile to set.

Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

This builder for chaining.

setDryRun(boolean value)

public ApplyConversionWorkspaceRequest.Builder setDryRun(boolean value)

Optional. Only validates the apply process, but doesn't change the destination database. Only works for PostgreSQL destination connection profile.

bool dry_run = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The dryRun to set.

Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilter(String value)

public ApplyConversionWorkspaceRequest.Builder setFilter(String value)

Filter which entities to apply. Leaving this field empty will apply all of the entities. Supports Google AIP 160 based filtering.

string filter = 2;

Parameter
NameDescription
valueString

The filter to set.

Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public ApplyConversionWorkspaceRequest.Builder setFilterBytes(ByteString value)

Filter which entities to apply. Leaving this field empty will apply all of the entities. Supports Google AIP 160 based filtering.

string filter = 2;

Parameter
NameDescription
valueByteString

The bytes for filter to set.

Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

This builder for chaining.

setName(String value)

public ApplyConversionWorkspaceRequest.Builder setName(String value)

Required. The name of the conversion workspace resource for which to apply the draft tree. Must be in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ApplyConversionWorkspaceRequest.Builder setNameBytes(ByteString value)

Required. The name of the conversion workspace resource for which to apply the draft tree. Must be in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder

This builder for chaining.

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

public ApplyConversionWorkspaceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ApplyConversionWorkspaceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ApplyConversionWorkspaceRequest.Builder
Overrides