Class ImportDataFile.Builder (0.36.0)

public static final class ImportDataFile.Builder extends GeneratedMessageV3.Builder<ImportDataFile.Builder> implements ImportDataFileOrBuilder

A resource that represents a payload file in an import job.

Protobuf type google.cloud.migrationcenter.v1.ImportDataFile

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportDataFile build()
Returns
Type Description
ImportDataFile

buildPartial()

public ImportDataFile buildPartial()
Returns
Type Description
ImportDataFile

clear()

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

clearCreateTime()

public ImportDataFile.Builder clearCreateTime()

Output only. The timestamp when the file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImportDataFile.Builder

clearDisplayName()

public ImportDataFile.Builder clearDisplayName()

User-friendly display name. Maximum length is 63 characters.

string display_name = 6;

Returns
Type Description
ImportDataFile.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFileInfo()

public ImportDataFile.Builder clearFileInfo()
Returns
Type Description
ImportDataFile.Builder

clearFormat()

public ImportDataFile.Builder clearFormat()

Required. The payload format.

.google.cloud.migrationcenter.v1.ImportJobFormat format = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportDataFile.Builder

This builder for chaining.

clearName()

public ImportDataFile.Builder clearName()

Output only. The name of the file.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImportDataFile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public ImportDataFile.Builder clearState()

Output only. The state of the import data file.

.google.cloud.migrationcenter.v1.ImportDataFile.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImportDataFile.Builder

This builder for chaining.

clearUploadFileInfo()

public ImportDataFile.Builder clearUploadFileInfo()

Information about a file that is uploaded to a storage service.

.google.cloud.migrationcenter.v1.UploadFileInfo upload_file_info = 5;

Returns
Type Description
ImportDataFile.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ImportDataFile getDefaultInstanceForType()
Returns
Type Description
ImportDataFile

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

User-friendly display name. Maximum length is 63 characters.

string display_name = 6;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

User-friendly display name. Maximum length is 63 characters.

string display_name = 6;

Returns
Type Description
ByteString

The bytes for displayName.

getFileInfoCase()

public ImportDataFile.FileInfoCase getFileInfoCase()
Returns
Type Description
ImportDataFile.FileInfoCase

getFormat()

public ImportJobFormat getFormat()

Required. The payload format.

.google.cloud.migrationcenter.v1.ImportJobFormat format = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportJobFormat

The format.

getFormatValue()

public int getFormatValue()

Required. The payload format.

.google.cloud.migrationcenter.v1.ImportJobFormat format = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for format.

getName()

public String getName()

Output only. The name of the file.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the file.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getState()

public ImportDataFile.State getState()

Output only. The state of the import data file.

.google.cloud.migrationcenter.v1.ImportDataFile.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImportDataFile.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the import data file.

.google.cloud.migrationcenter.v1.ImportDataFile.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUploadFileInfo()

public UploadFileInfo getUploadFileInfo()

Information about a file that is uploaded to a storage service.

.google.cloud.migrationcenter.v1.UploadFileInfo upload_file_info = 5;

Returns
Type Description
UploadFileInfo

The uploadFileInfo.

getUploadFileInfoBuilder()

public UploadFileInfo.Builder getUploadFileInfoBuilder()

Information about a file that is uploaded to a storage service.

.google.cloud.migrationcenter.v1.UploadFileInfo upload_file_info = 5;

Returns
Type Description
UploadFileInfo.Builder

getUploadFileInfoOrBuilder()

public UploadFileInfoOrBuilder getUploadFileInfoOrBuilder()

Information about a file that is uploaded to a storage service.

.google.cloud.migrationcenter.v1.UploadFileInfo upload_file_info = 5;

Returns
Type Description
UploadFileInfoOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUploadFileInfo()

public boolean hasUploadFileInfo()

Information about a file that is uploaded to a storage service.

.google.cloud.migrationcenter.v1.UploadFileInfo upload_file_info = 5;

Returns
Type Description
boolean

Whether the uploadFileInfo field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public ImportDataFile.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ImportDataFile.Builder

mergeFrom(ImportDataFile other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUploadFileInfo(UploadFileInfo value)

public ImportDataFile.Builder mergeUploadFileInfo(UploadFileInfo value)

Information about a file that is uploaded to a storage service.

.google.cloud.migrationcenter.v1.UploadFileInfo upload_file_info = 5;

Parameter
Name Description
value UploadFileInfo
Returns
Type Description
ImportDataFile.Builder

setCreateTime(Timestamp value)

public ImportDataFile.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ImportDataFile.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ImportDataFile.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ImportDataFile.Builder

setDisplayName(String value)

public ImportDataFile.Builder setDisplayName(String value)

User-friendly display name. Maximum length is 63 characters.

string display_name = 6;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ImportDataFile.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ImportDataFile.Builder setDisplayNameBytes(ByteString value)

User-friendly display name. Maximum length is 63 characters.

string display_name = 6;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ImportDataFile.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFormat(ImportJobFormat value)

public ImportDataFile.Builder setFormat(ImportJobFormat value)

Required. The payload format.

.google.cloud.migrationcenter.v1.ImportJobFormat format = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ImportJobFormat

The format to set.

Returns
Type Description
ImportDataFile.Builder

This builder for chaining.

setFormatValue(int value)

public ImportDataFile.Builder setFormatValue(int value)

Required. The payload format.

.google.cloud.migrationcenter.v1.ImportJobFormat format = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
ImportDataFile.Builder

This builder for chaining.

setName(String value)

public ImportDataFile.Builder setName(String value)

Output only. The name of the file.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ImportDataFile.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ImportDataFile.Builder setNameBytes(ByteString value)

Output only. The name of the file.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ImportDataFile.Builder

This builder for chaining.

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

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

setState(ImportDataFile.State value)

public ImportDataFile.Builder setState(ImportDataFile.State value)

Output only. The state of the import data file.

.google.cloud.migrationcenter.v1.ImportDataFile.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ImportDataFile.State

The state to set.

Returns
Type Description
ImportDataFile.Builder

This builder for chaining.

setStateValue(int value)

public ImportDataFile.Builder setStateValue(int value)

Output only. The state of the import data file.

.google.cloud.migrationcenter.v1.ImportDataFile.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
ImportDataFile.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUploadFileInfo(UploadFileInfo value)

public ImportDataFile.Builder setUploadFileInfo(UploadFileInfo value)

Information about a file that is uploaded to a storage service.

.google.cloud.migrationcenter.v1.UploadFileInfo upload_file_info = 5;

Parameter
Name Description
value UploadFileInfo
Returns
Type Description
ImportDataFile.Builder

setUploadFileInfo(UploadFileInfo.Builder builderForValue)

public ImportDataFile.Builder setUploadFileInfo(UploadFileInfo.Builder builderForValue)

Information about a file that is uploaded to a storage service.

.google.cloud.migrationcenter.v1.UploadFileInfo upload_file_info = 5;

Parameter
Name Description
builderForValue UploadFileInfo.Builder
Returns
Type Description
ImportDataFile.Builder