Class FileUpload.Builder (0.10.0)

public static final class FileUpload.Builder extends GeneratedMessageV3.Builder<FileUpload.Builder> implements FileUploadOrBuilder

The file upload of a specific data source, that is, the result of the retrieval of the data source at a certain timestamp computed asynchronously when the data source processing is finished. Only applicable to file data sources.

Protobuf type google.shopping.merchant.datasources.v1beta.FileUpload

Implements

FileUploadOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllIssues(Iterable<? extends FileUpload.Issue> values)

public FileUpload.Builder addAllIssues(Iterable<? extends FileUpload.Issue> values)

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.datasources.v1beta.FileUpload.Issue>
Returns
Type Description
FileUpload.Builder

addIssues(FileUpload.Issue value)

public FileUpload.Builder addIssues(FileUpload.Issue value)

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FileUpload.Issue
Returns
Type Description
FileUpload.Builder

addIssues(FileUpload.Issue.Builder builderForValue)

public FileUpload.Builder addIssues(FileUpload.Issue.Builder builderForValue)

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue FileUpload.Issue.Builder
Returns
Type Description
FileUpload.Builder

addIssues(int index, FileUpload.Issue value)

public FileUpload.Builder addIssues(int index, FileUpload.Issue value)

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value FileUpload.Issue
Returns
Type Description
FileUpload.Builder

addIssues(int index, FileUpload.Issue.Builder builderForValue)

public FileUpload.Builder addIssues(int index, FileUpload.Issue.Builder builderForValue)

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue FileUpload.Issue.Builder
Returns
Type Description
FileUpload.Builder

addIssuesBuilder()

public FileUpload.Issue.Builder addIssuesBuilder()

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileUpload.Issue.Builder

addIssuesBuilder(int index)

public FileUpload.Issue.Builder addIssuesBuilder(int index)

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
FileUpload.Issue.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FileUpload build()
Returns
Type Description
FileUpload

buildPartial()

public FileUpload buildPartial()
Returns
Type Description
FileUpload

clear()

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

clearDataSourceId()

public FileUpload.Builder clearDataSourceId()

Output only. The data source id.

int64 data_source_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileUpload.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIssues()

public FileUpload.Builder clearIssues()

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileUpload.Builder

clearItemsCreated()

public FileUpload.Builder clearItemsCreated()

Output only. The number of items in the data source that were created.

int64 items_created = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileUpload.Builder

This builder for chaining.

clearItemsTotal()

public FileUpload.Builder clearItemsTotal()

Output only. The number of items in the data source that were processed.

int64 items_total = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileUpload.Builder

This builder for chaining.

clearItemsUpdated()

public FileUpload.Builder clearItemsUpdated()

Output only. The number of items in the data source that were updated.

int64 items_updated = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileUpload.Builder

This builder for chaining.

clearName()

public FileUpload.Builder clearName()

Identifier. The name of the data source file upload. Format: {datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}

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

Returns
Type Description
FileUpload.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProcessingState()

public FileUpload.Builder clearProcessingState()

Output only. The processing state of the data source.

.google.shopping.merchant.datasources.v1beta.FileUpload.ProcessingState processing_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileUpload.Builder

This builder for chaining.

clearUploadTime()

public FileUpload.Builder clearUploadTime()

Output only. The date at which the file of the data source was uploaded.

.google.protobuf.Timestamp upload_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileUpload.Builder

clone()

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

getDataSourceId()

public long getDataSourceId()

Output only. The data source id.

int64 data_source_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The dataSourceId.

getDefaultInstanceForType()

public FileUpload getDefaultInstanceForType()
Returns
Type Description
FileUpload

getDescriptorForType()

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

getIssues(int index)

public FileUpload.Issue getIssues(int index)

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
FileUpload.Issue

getIssuesBuilder(int index)

public FileUpload.Issue.Builder getIssuesBuilder(int index)

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
FileUpload.Issue.Builder

getIssuesBuilderList()

public List<FileUpload.Issue.Builder> getIssuesBuilderList()

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getIssuesCount()

public int getIssuesCount()

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getIssuesList()

public List<FileUpload.Issue> getIssuesList()

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Issue>

getIssuesOrBuilder(int index)

public FileUpload.IssueOrBuilder getIssuesOrBuilder(int index)

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
FileUpload.IssueOrBuilder

getIssuesOrBuilderList()

public List<? extends FileUpload.IssueOrBuilder> getIssuesOrBuilderList()

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.shopping.merchant.datasources.v1beta.FileUpload.IssueOrBuilder>

getItemsCreated()

public long getItemsCreated()

Output only. The number of items in the data source that were created.

int64 items_created = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The itemsCreated.

getItemsTotal()

public long getItemsTotal()

Output only. The number of items in the data source that were processed.

int64 items_total = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The itemsTotal.

getItemsUpdated()

public long getItemsUpdated()

Output only. The number of items in the data source that were updated.

int64 items_updated = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The itemsUpdated.

getName()

public String getName()

Identifier. The name of the data source file upload. Format: {datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the data source file upload. Format: {datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}

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

Returns
Type Description
ByteString

The bytes for name.

getProcessingState()

public FileUpload.ProcessingState getProcessingState()

Output only. The processing state of the data source.

.google.shopping.merchant.datasources.v1beta.FileUpload.ProcessingState processing_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileUpload.ProcessingState

The processingState.

getProcessingStateValue()

public int getProcessingStateValue()

Output only. The processing state of the data source.

.google.shopping.merchant.datasources.v1beta.FileUpload.ProcessingState processing_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for processingState.

getUploadTime()

public Timestamp getUploadTime()

Output only. The date at which the file of the data source was uploaded.

.google.protobuf.Timestamp upload_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The uploadTime.

getUploadTimeBuilder()

public Timestamp.Builder getUploadTimeBuilder()

Output only. The date at which the file of the data source was uploaded.

.google.protobuf.Timestamp upload_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUploadTimeOrBuilder()

public TimestampOrBuilder getUploadTimeOrBuilder()

Output only. The date at which the file of the data source was uploaded.

.google.protobuf.Timestamp upload_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasUploadTime()

public boolean hasUploadTime()

Output only. The date at which the file of the data source was uploaded.

.google.protobuf.Timestamp upload_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the uploadTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(FileUpload other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUploadTime(Timestamp value)

public FileUpload.Builder mergeUploadTime(Timestamp value)

Output only. The date at which the file of the data source was uploaded.

.google.protobuf.Timestamp upload_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FileUpload.Builder

removeIssues(int index)

public FileUpload.Builder removeIssues(int index)

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
FileUpload.Builder

setDataSourceId(long value)

public FileUpload.Builder setDataSourceId(long value)

Output only. The data source id.

int64 data_source_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The dataSourceId to set.

Returns
Type Description
FileUpload.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIssues(int index, FileUpload.Issue value)

public FileUpload.Builder setIssues(int index, FileUpload.Issue value)

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value FileUpload.Issue
Returns
Type Description
FileUpload.Builder

setIssues(int index, FileUpload.Issue.Builder builderForValue)

public FileUpload.Builder setIssues(int index, FileUpload.Issue.Builder builderForValue)

Output only. The list of issues occurring in the data source.

repeated .google.shopping.merchant.datasources.v1beta.FileUpload.Issue issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue FileUpload.Issue.Builder
Returns
Type Description
FileUpload.Builder

setItemsCreated(long value)

public FileUpload.Builder setItemsCreated(long value)

Output only. The number of items in the data source that were created.

int64 items_created = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The itemsCreated to set.

Returns
Type Description
FileUpload.Builder

This builder for chaining.

setItemsTotal(long value)

public FileUpload.Builder setItemsTotal(long value)

Output only. The number of items in the data source that were processed.

int64 items_total = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The itemsTotal to set.

Returns
Type Description
FileUpload.Builder

This builder for chaining.

setItemsUpdated(long value)

public FileUpload.Builder setItemsUpdated(long value)

Output only. The number of items in the data source that were updated.

int64 items_updated = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The itemsUpdated to set.

Returns
Type Description
FileUpload.Builder

This builder for chaining.

setName(String value)

public FileUpload.Builder setName(String value)

Identifier. The name of the data source file upload. Format: {datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
FileUpload.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FileUpload.Builder setNameBytes(ByteString value)

Identifier. The name of the data source file upload. Format: {datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
FileUpload.Builder

This builder for chaining.

setProcessingState(FileUpload.ProcessingState value)

public FileUpload.Builder setProcessingState(FileUpload.ProcessingState value)

Output only. The processing state of the data source.

.google.shopping.merchant.datasources.v1beta.FileUpload.ProcessingState processing_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FileUpload.ProcessingState

The processingState to set.

Returns
Type Description
FileUpload.Builder

This builder for chaining.

setProcessingStateValue(int value)

public FileUpload.Builder setProcessingStateValue(int value)

Output only. The processing state of the data source.

.google.shopping.merchant.datasources.v1beta.FileUpload.ProcessingState processing_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
FileUpload.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUploadTime(Timestamp value)

public FileUpload.Builder setUploadTime(Timestamp value)

Output only. The date at which the file of the data source was uploaded.

.google.protobuf.Timestamp upload_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
FileUpload.Builder

setUploadTime(Timestamp.Builder builderForValue)

public FileUpload.Builder setUploadTime(Timestamp.Builder builderForValue)

Output only. The date at which the file of the data source was uploaded.

.google.protobuf.Timestamp upload_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
FileUpload.Builder