Class ImportMappingRulesRequest.RulesFile.Builder (2.20.0)

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

Details of a single rules file.

Protobuf type google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportMappingRulesRequest.RulesFile build()
Returns
TypeDescription
ImportMappingRulesRequest.RulesFile

buildPartial()

public ImportMappingRulesRequest.RulesFile buildPartial()
Returns
TypeDescription
ImportMappingRulesRequest.RulesFile

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRulesContent()

public ImportMappingRulesRequest.RulesFile.Builder clearRulesContent()

The text content of the rules that needs to be converted.

string rules_content = 2;

Returns
TypeDescription
ImportMappingRulesRequest.RulesFile.Builder

This builder for chaining.

clearRulesSourceFilename()

public ImportMappingRulesRequest.RulesFile.Builder clearRulesSourceFilename()

The filename of the rules that needs to be converted. The filename is used mainly so that future logs of the import rules job contain it, and can therefore be searched by it.

string rules_source_filename = 1;

Returns
TypeDescription
ImportMappingRulesRequest.RulesFile.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportMappingRulesRequest.RulesFile getDefaultInstanceForType()
Returns
TypeDescription
ImportMappingRulesRequest.RulesFile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRulesContent()

public String getRulesContent()

The text content of the rules that needs to be converted.

string rules_content = 2;

Returns
TypeDescription
String

The rulesContent.

getRulesContentBytes()

public ByteString getRulesContentBytes()

The text content of the rules that needs to be converted.

string rules_content = 2;

Returns
TypeDescription
ByteString

The bytes for rulesContent.

getRulesSourceFilename()

public String getRulesSourceFilename()

The filename of the rules that needs to be converted. The filename is used mainly so that future logs of the import rules job contain it, and can therefore be searched by it.

string rules_source_filename = 1;

Returns
TypeDescription
String

The rulesSourceFilename.

getRulesSourceFilenameBytes()

public ByteString getRulesSourceFilenameBytes()

The filename of the rules that needs to be converted. The filename is used mainly so that future logs of the import rules job contain it, and can therefore be searched by it.

string rules_source_filename = 1;

Returns
TypeDescription
ByteString

The bytes for rulesSourceFilename.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportMappingRulesRequest.RulesFile other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRulesContent(String value)

public ImportMappingRulesRequest.RulesFile.Builder setRulesContent(String value)

The text content of the rules that needs to be converted.

string rules_content = 2;

Parameter
NameDescription
valueString

The rulesContent to set.

Returns
TypeDescription
ImportMappingRulesRequest.RulesFile.Builder

This builder for chaining.

setRulesContentBytes(ByteString value)

public ImportMappingRulesRequest.RulesFile.Builder setRulesContentBytes(ByteString value)

The text content of the rules that needs to be converted.

string rules_content = 2;

Parameter
NameDescription
valueByteString

The bytes for rulesContent to set.

Returns
TypeDescription
ImportMappingRulesRequest.RulesFile.Builder

This builder for chaining.

setRulesSourceFilename(String value)

public ImportMappingRulesRequest.RulesFile.Builder setRulesSourceFilename(String value)

The filename of the rules that needs to be converted. The filename is used mainly so that future logs of the import rules job contain it, and can therefore be searched by it.

string rules_source_filename = 1;

Parameter
NameDescription
valueString

The rulesSourceFilename to set.

Returns
TypeDescription
ImportMappingRulesRequest.RulesFile.Builder

This builder for chaining.

setRulesSourceFilenameBytes(ByteString value)

public ImportMappingRulesRequest.RulesFile.Builder setRulesSourceFilenameBytes(ByteString value)

The filename of the rules that needs to be converted. The filename is used mainly so that future logs of the import rules job contain it, and can therefore be searched by it.

string rules_source_filename = 1;

Parameter
NameDescription
valueByteString

The bytes for rulesSourceFilename to set.

Returns
TypeDescription
ImportMappingRulesRequest.RulesFile.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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