Class ImportMappingRulesRequest.RulesFile.Builder (2.48.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportMappingRulesRequest.RulesFile build()
Returns
Type Description
ImportMappingRulesRequest.RulesFile

buildPartial()

public ImportMappingRulesRequest.RulesFile buildPartial()
Returns
Type Description
ImportMappingRulesRequest.RulesFile

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRulesContent()

public ImportMappingRulesRequest.RulesFile.Builder clearRulesContent()

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

string rules_content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportMappingRulesRequest.RulesFile.Builder

This builder for chaining.

clearRulesSourceFilename()

public ImportMappingRulesRequest.RulesFile.Builder clearRulesSourceFilename()

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportMappingRulesRequest.RulesFile.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportMappingRulesRequest.RulesFile getDefaultInstanceForType()
Returns
Type Description
ImportMappingRulesRequest.RulesFile

getDescriptorForType()

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

getRulesContent()

public String getRulesContent()

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

string rules_content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The rulesContent.

getRulesContentBytes()

public ByteString getRulesContentBytes()

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

string rules_content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for rulesContent.

getRulesSourceFilename()

public String getRulesSourceFilename()

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The rulesSourceFilename.

getRulesSourceFilenameBytes()

public ByteString getRulesSourceFilenameBytes()

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for rulesSourceFilename.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportMappingRulesRequest.RulesFile other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ImportMappingRulesRequest.RulesFile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImportMappingRulesRequest.RulesFile.Builder
Overrides

setRulesContent(String value)

public ImportMappingRulesRequest.RulesFile.Builder setRulesContent(String value)

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

string rules_content = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The rulesContent to set.

Returns
Type Description
ImportMappingRulesRequest.RulesFile.Builder

This builder for chaining.

setRulesContentBytes(ByteString value)

public ImportMappingRulesRequest.RulesFile.Builder setRulesContentBytes(ByteString value)

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

string rules_content = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for rulesContent to set.

Returns
Type Description
ImportMappingRulesRequest.RulesFile.Builder

This builder for chaining.

setRulesSourceFilename(String value)

public ImportMappingRulesRequest.RulesFile.Builder setRulesSourceFilename(String value)

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The rulesSourceFilename to set.

Returns
Type Description
ImportMappingRulesRequest.RulesFile.Builder

This builder for chaining.

setRulesSourceFilenameBytes(ByteString value)

public ImportMappingRulesRequest.RulesFile.Builder setRulesSourceFilenameBytes(ByteString value)

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for rulesSourceFilename to set.

Returns
Type Description
ImportMappingRulesRequest.RulesFile.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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