Class ImportDataFile.Builder (0.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportDataFile build()
Returns
TypeDescription
ImportDataFile

buildPartial()

public ImportDataFile buildPartial()
Returns
TypeDescription
ImportDataFile

clear()

public ImportDataFile.Builder clear()
Returns
TypeDescription
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
TypeDescription
ImportDataFile.Builder

clearDisplayName()

public ImportDataFile.Builder clearDisplayName()

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

string display_name = 6;

Returns
TypeDescription
ImportDataFile.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFileInfo()

public ImportDataFile.Builder clearFileInfo()
Returns
TypeDescription
ImportDataFile.Builder

clearFormat()

public ImportDataFile.Builder clearFormat()

Required. The payload format.

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

Returns
TypeDescription
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
TypeDescription
ImportDataFile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ImportDataFile.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ImportDataFile getDefaultInstanceForType()
Returns
TypeDescription
ImportDataFile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

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

string display_name = 6;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

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

string display_name = 6;

Returns
TypeDescription
ByteString

The bytes for displayName.

getFileInfoCase()

public ImportDataFile.FileInfoCase getFileInfoCase()
Returns
TypeDescription
ImportDataFile.FileInfoCase

getFormat()

public ImportJobFormat getFormat()

Required. The payload format.

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

Returns
TypeDescription
ImportJobFormat

The format.

getFormatValue()

public int getFormatValue()

Required. The payload format.

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

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

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the file.

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

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

Whether the uploadFileInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
ImportDataFile.Builder

mergeFrom(ImportDataFile other)

public ImportDataFile.Builder mergeFrom(ImportDataFile other)
Parameter
NameDescription
otherImportDataFile
Returns
TypeDescription
ImportDataFile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportDataFile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueUploadFileInfo
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

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

The bytes for displayName to set.

Returns
TypeDescription
ImportDataFile.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The format to set.

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

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

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueImportDataFile.State

The state to set.

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

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

Returns
TypeDescription
ImportDataFile.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportDataFile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueUploadFileInfo
Returns
TypeDescription
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
NameDescription
builderForValueUploadFileInfo.Builder
Returns
TypeDescription
ImportDataFile.Builder