Class ImportMappingRulesRequest.RulesFile.Builder (2.27.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()

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

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

Returns
TypeDescription
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
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()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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)

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

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

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)

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

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

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)

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
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)

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
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