Class ImportMappingRulesRequest.Builder (2.43.0)

public static final class ImportMappingRulesRequest.Builder extends GeneratedMessageV3.Builder<ImportMappingRulesRequest.Builder> implements ImportMappingRulesRequestOrBuilder

Request message for 'ImportMappingRules' request.

Protobuf type google.cloud.clouddms.v1.ImportMappingRulesRequest

Static Methods

getDescriptor()

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

Methods

addAllRulesFiles(Iterable<? extends ImportMappingRulesRequest.RulesFile> values)

public ImportMappingRulesRequest.Builder addAllRulesFiles(Iterable<? extends ImportMappingRulesRequest.RulesFile> values)

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile>
Returns
Type Description
ImportMappingRulesRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRulesFiles(ImportMappingRulesRequest.RulesFile value)

public ImportMappingRulesRequest.Builder addRulesFiles(ImportMappingRulesRequest.RulesFile value)

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ImportMappingRulesRequest.RulesFile
Returns
Type Description
ImportMappingRulesRequest.Builder

addRulesFiles(ImportMappingRulesRequest.RulesFile.Builder builderForValue)

public ImportMappingRulesRequest.Builder addRulesFiles(ImportMappingRulesRequest.RulesFile.Builder builderForValue)

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ImportMappingRulesRequest.RulesFile.Builder
Returns
Type Description
ImportMappingRulesRequest.Builder

addRulesFiles(int index, ImportMappingRulesRequest.RulesFile value)

public ImportMappingRulesRequest.Builder addRulesFiles(int index, ImportMappingRulesRequest.RulesFile value)

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ImportMappingRulesRequest.RulesFile
Returns
Type Description
ImportMappingRulesRequest.Builder

addRulesFiles(int index, ImportMappingRulesRequest.RulesFile.Builder builderForValue)

public ImportMappingRulesRequest.Builder addRulesFiles(int index, ImportMappingRulesRequest.RulesFile.Builder builderForValue)

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ImportMappingRulesRequest.RulesFile.Builder
Returns
Type Description
ImportMappingRulesRequest.Builder

addRulesFilesBuilder()

public ImportMappingRulesRequest.RulesFile.Builder addRulesFilesBuilder()

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportMappingRulesRequest.RulesFile.Builder

addRulesFilesBuilder(int index)

public ImportMappingRulesRequest.RulesFile.Builder addRulesFilesBuilder(int index)

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ImportMappingRulesRequest.RulesFile.Builder

build()

public ImportMappingRulesRequest build()
Returns
Type Description
ImportMappingRulesRequest

buildPartial()

public ImportMappingRulesRequest buildPartial()
Returns
Type Description
ImportMappingRulesRequest

clear()

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

clearAutoCommit()

public ImportMappingRulesRequest.Builder clearAutoCommit()

Required. Should the conversion workspace be committed automatically after the import operation.

bool auto_commit = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportMappingRulesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ImportMappingRulesRequest.Builder clearParent()

Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.

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

Returns
Type Description
ImportMappingRulesRequest.Builder

This builder for chaining.

clearRulesFiles()

public ImportMappingRulesRequest.Builder clearRulesFiles()

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportMappingRulesRequest.Builder

clearRulesFormat()

public ImportMappingRulesRequest.Builder clearRulesFormat()

Required. The format of the rules content file.

.google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportMappingRulesRequest.Builder

This builder for chaining.

clone()

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

getAutoCommit()

public boolean getAutoCommit()

Required. Should the conversion workspace be committed automatically after the import operation.

bool auto_commit = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

The autoCommit.

getDefaultInstanceForType()

public ImportMappingRulesRequest getDefaultInstanceForType()
Returns
Type Description
ImportMappingRulesRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.

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

Returns
Type Description
ByteString

The bytes for parent.

getRulesFiles(int index)

public ImportMappingRulesRequest.RulesFile getRulesFiles(int index)

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ImportMappingRulesRequest.RulesFile

getRulesFilesBuilder(int index)

public ImportMappingRulesRequest.RulesFile.Builder getRulesFilesBuilder(int index)

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ImportMappingRulesRequest.RulesFile.Builder

getRulesFilesBuilderList()

public List<ImportMappingRulesRequest.RulesFile.Builder> getRulesFilesBuilderList()

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRulesFilesCount()

public int getRulesFilesCount()

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRulesFilesList()

public List<ImportMappingRulesRequest.RulesFile> getRulesFilesList()

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<RulesFile>

getRulesFilesOrBuilder(int index)

public ImportMappingRulesRequest.RulesFileOrBuilder getRulesFilesOrBuilder(int index)

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ImportMappingRulesRequest.RulesFileOrBuilder

getRulesFilesOrBuilderList()

public List<? extends ImportMappingRulesRequest.RulesFileOrBuilder> getRulesFilesOrBuilderList()

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder>

getRulesFormat()

public ImportRulesFileFormat getRulesFormat()

Required. The format of the rules content file.

.google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportRulesFileFormat

The rulesFormat.

getRulesFormatValue()

public int getRulesFormatValue()

Required. The format of the rules content file.

.google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for rulesFormat.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportMappingRulesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRulesFiles(int index)

public ImportMappingRulesRequest.Builder removeRulesFiles(int index)

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ImportMappingRulesRequest.Builder

setAutoCommit(boolean value)

public ImportMappingRulesRequest.Builder setAutoCommit(boolean value)

Required. Should the conversion workspace be committed automatically after the import operation.

bool auto_commit = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value boolean

The autoCommit to set.

Returns
Type Description
ImportMappingRulesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public ImportMappingRulesRequest.Builder setParent(String value)

Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ImportMappingRulesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportMappingRulesRequest.Builder setParentBytes(ByteString value)

Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ImportMappingRulesRequest.Builder

This builder for chaining.

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

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

setRulesFiles(int index, ImportMappingRulesRequest.RulesFile value)

public ImportMappingRulesRequest.Builder setRulesFiles(int index, ImportMappingRulesRequest.RulesFile value)

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ImportMappingRulesRequest.RulesFile
Returns
Type Description
ImportMappingRulesRequest.Builder

setRulesFiles(int index, ImportMappingRulesRequest.RulesFile.Builder builderForValue)

public ImportMappingRulesRequest.Builder setRulesFiles(int index, ImportMappingRulesRequest.RulesFile.Builder builderForValue)

Required. One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ImportMappingRulesRequest.RulesFile.Builder
Returns
Type Description
ImportMappingRulesRequest.Builder

setRulesFormat(ImportRulesFileFormat value)

public ImportMappingRulesRequest.Builder setRulesFormat(ImportRulesFileFormat value)

Required. The format of the rules content file.

.google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ImportRulesFileFormat

The rulesFormat to set.

Returns
Type Description
ImportMappingRulesRequest.Builder

This builder for chaining.

setRulesFormatValue(int value)

public ImportMappingRulesRequest.Builder setRulesFormatValue(int value)

Required. The format of the rules content file.

.google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
ImportMappingRulesRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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