Class FileUpload (0.11.0)

public final class FileUpload extends GeneratedMessageV3 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 Fields

DATA_SOURCE_ID_FIELD_NUMBER

public static final int DATA_SOURCE_ID_FIELD_NUMBER
Field Value
Type Description
int

ISSUES_FIELD_NUMBER

public static final int ISSUES_FIELD_NUMBER
Field Value
Type Description
int

ITEMS_CREATED_FIELD_NUMBER

public static final int ITEMS_CREATED_FIELD_NUMBER
Field Value
Type Description
int

ITEMS_TOTAL_FIELD_NUMBER

public static final int ITEMS_TOTAL_FIELD_NUMBER
Field Value
Type Description
int

ITEMS_UPDATED_FIELD_NUMBER

public static final int ITEMS_UPDATED_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PROCESSING_STATE_FIELD_NUMBER

public static final int PROCESSING_STATE_FIELD_NUMBER
Field Value
Type Description
int

UPLOAD_TIME_FIELD_NUMBER

public static final int UPLOAD_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FileUpload getDefaultInstance()
Returns
Type Description
FileUpload

getDescriptor()

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

newBuilder()

public static FileUpload.Builder newBuilder()
Returns
Type Description
FileUpload.Builder

newBuilder(FileUpload prototype)

public static FileUpload.Builder newBuilder(FileUpload prototype)
Parameter
Name Description
prototype FileUpload
Returns
Type Description
FileUpload.Builder

parseDelimitedFrom(InputStream input)

public static FileUpload parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FileUpload
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileUpload parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileUpload
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FileUpload parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FileUpload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FileUpload parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileUpload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FileUpload parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FileUpload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FileUpload parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileUpload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FileUpload parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FileUpload
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FileUpload parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileUpload
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FileUpload parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FileUpload
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileUpload parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileUpload
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FileUpload parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FileUpload
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FileUpload parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileUpload
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FileUpload> parser()
Returns
Type Description
Parser<FileUpload>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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

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.

getParserForType()

public Parser<FileUpload> getParserForType()
Returns
Type Description
Parser<FileUpload>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FileUpload.Builder newBuilderForType()
Returns
Type Description
FileUpload.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FileUpload.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FileUpload.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public FileUpload.Builder toBuilder()
Returns
Type Description
FileUpload.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException