Class ImportMappingRulesRequest.Builder (2.18.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
TypeDescription
Descriptor

Methods

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

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

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile>
Returns
TypeDescription
ImportMappingRulesRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRulesFiles(ImportMappingRulesRequest.RulesFile value)

public ImportMappingRulesRequest.Builder addRulesFiles(ImportMappingRulesRequest.RulesFile value)

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Parameter
NameDescription
valueImportMappingRulesRequest.RulesFile
Returns
TypeDescription
ImportMappingRulesRequest.Builder

addRulesFiles(ImportMappingRulesRequest.RulesFile.Builder builderForValue)

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

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Parameter
NameDescription
builderForValueImportMappingRulesRequest.RulesFile.Builder
Returns
TypeDescription
ImportMappingRulesRequest.Builder

addRulesFiles(int index, ImportMappingRulesRequest.RulesFile value)

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

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Parameters
NameDescription
indexint
valueImportMappingRulesRequest.RulesFile
Returns
TypeDescription
ImportMappingRulesRequest.Builder

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

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

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Parameters
NameDescription
indexint
builderForValueImportMappingRulesRequest.RulesFile.Builder
Returns
TypeDescription
ImportMappingRulesRequest.Builder

addRulesFilesBuilder()

public ImportMappingRulesRequest.RulesFile.Builder addRulesFilesBuilder()

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Returns
TypeDescription
ImportMappingRulesRequest.RulesFile.Builder

addRulesFilesBuilder(int index)

public ImportMappingRulesRequest.RulesFile.Builder addRulesFilesBuilder(int index)

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ImportMappingRulesRequest.RulesFile.Builder

build()

public ImportMappingRulesRequest build()
Returns
TypeDescription
ImportMappingRulesRequest

buildPartial()

public ImportMappingRulesRequest buildPartial()
Returns
TypeDescription
ImportMappingRulesRequest

clear()

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

clearAutoCommit()

public ImportMappingRulesRequest.Builder clearAutoCommit()

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

bool auto_commit = 6;

Returns
TypeDescription
ImportMappingRulesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clearRulesFiles()

public ImportMappingRulesRequest.Builder clearRulesFiles()

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Returns
TypeDescription
ImportMappingRulesRequest.Builder

clearRulesFormat()

public ImportMappingRulesRequest.Builder clearRulesFormat()

The format of the rules content file.

.google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2;

Returns
TypeDescription
ImportMappingRulesRequest.Builder

This builder for chaining.

clone()

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

getAutoCommit()

public boolean getAutoCommit()

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

bool auto_commit = 6;

Returns
TypeDescription
boolean

The autoCommit.

getDefaultInstanceForType()

public ImportMappingRulesRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportMappingRulesRequest

getDescriptorForType()

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

The bytes for parent.

getRulesFiles(int index)

public ImportMappingRulesRequest.RulesFile getRulesFiles(int index)

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ImportMappingRulesRequest.RulesFile

getRulesFilesBuilder(int index)

public ImportMappingRulesRequest.RulesFile.Builder getRulesFilesBuilder(int index)

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ImportMappingRulesRequest.RulesFile.Builder

getRulesFilesBuilderList()

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

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Returns
TypeDescription
List<Builder>

getRulesFilesCount()

public int getRulesFilesCount()

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Returns
TypeDescription
int

getRulesFilesList()

public List<ImportMappingRulesRequest.RulesFile> getRulesFilesList()

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Returns
TypeDescription
List<RulesFile>

getRulesFilesOrBuilder(int index)

public ImportMappingRulesRequest.RulesFileOrBuilder getRulesFilesOrBuilder(int index)

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ImportMappingRulesRequest.RulesFileOrBuilder

getRulesFilesOrBuilderList()

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

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

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

getRulesFormat()

public ImportRulesFileFormat getRulesFormat()

The format of the rules content file.

.google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2;

Returns
TypeDescription
ImportRulesFileFormat

The rulesFormat.

getRulesFormatValue()

public int getRulesFormatValue()

The format of the rules content file.

.google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for rulesFormat.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportMappingRulesRequest other)

public ImportMappingRulesRequest.Builder mergeFrom(ImportMappingRulesRequest other)
Parameter
NameDescription
otherImportMappingRulesRequest
Returns
TypeDescription
ImportMappingRulesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRulesFiles(int index)

public ImportMappingRulesRequest.Builder removeRulesFiles(int index)

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ImportMappingRulesRequest.Builder

setAutoCommit(boolean value)

public ImportMappingRulesRequest.Builder setAutoCommit(boolean value)

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

bool auto_commit = 6;

Parameter
NameDescription
valueboolean

The autoCommit to set.

Returns
TypeDescription
ImportMappingRulesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setRulesFiles(int index, ImportMappingRulesRequest.RulesFile value)

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

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Parameters
NameDescription
indexint
valueImportMappingRulesRequest.RulesFile
Returns
TypeDescription
ImportMappingRulesRequest.Builder

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

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

One or more rules files.

repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3;

Parameters
NameDescription
indexint
builderForValueImportMappingRulesRequest.RulesFile.Builder
Returns
TypeDescription
ImportMappingRulesRequest.Builder

setRulesFormat(ImportRulesFileFormat value)

public ImportMappingRulesRequest.Builder setRulesFormat(ImportRulesFileFormat value)

The format of the rules content file.

.google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2;

Parameter
NameDescription
valueImportRulesFileFormat

The rulesFormat to set.

Returns
TypeDescription
ImportMappingRulesRequest.Builder

This builder for chaining.

setRulesFormatValue(int value)

public ImportMappingRulesRequest.Builder setRulesFormatValue(int value)

The format of the rules content file.

.google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ImportMappingRulesRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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