com.google.api.services.analytics.model.Upload Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.analytics.model;
/**
* Metadata returned for an upload operation.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Google Analytics API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Upload extends com.google.api.client.json.GenericJson {
/**
* Account Id to which this upload belongs.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long accountId;
/**
* Custom data source Id to which this data import belongs.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String customDataSourceId;
/**
* Data import errors collection.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List errors;
/**
* A unique ID for this upload.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String id;
/**
* Resource type for Analytics upload.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* Upload status. Possible values: PENDING, COMPLETED, FAILED, DELETING, DELETED.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String status;
/**
* Time this file is uploaded.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private com.google.api.client.util.DateTime uploadTime;
/**
* Account Id to which this upload belongs.
* @return value or {@code null} for none
*/
public java.lang.Long getAccountId() {
return accountId;
}
/**
* Account Id to which this upload belongs.
* @param accountId accountId or {@code null} for none
*/
public Upload setAccountId(java.lang.Long accountId) {
this.accountId = accountId;
return this;
}
/**
* Custom data source Id to which this data import belongs.
* @return value or {@code null} for none
*/
public java.lang.String getCustomDataSourceId() {
return customDataSourceId;
}
/**
* Custom data source Id to which this data import belongs.
* @param customDataSourceId customDataSourceId or {@code null} for none
*/
public Upload setCustomDataSourceId(java.lang.String customDataSourceId) {
this.customDataSourceId = customDataSourceId;
return this;
}
/**
* Data import errors collection.
* @return value or {@code null} for none
*/
public java.util.List getErrors() {
return errors;
}
/**
* Data import errors collection.
* @param errors errors or {@code null} for none
*/
public Upload setErrors(java.util.List errors) {
this.errors = errors;
return this;
}
/**
* A unique ID for this upload.
* @return value or {@code null} for none
*/
public java.lang.String getId() {
return id;
}
/**
* A unique ID for this upload.
* @param id id or {@code null} for none
*/
public Upload setId(java.lang.String id) {
this.id = id;
return this;
}
/**
* Resource type for Analytics upload.
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* Resource type for Analytics upload.
* @param kind kind or {@code null} for none
*/
public Upload setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* Upload status. Possible values: PENDING, COMPLETED, FAILED, DELETING, DELETED.
* @return value or {@code null} for none
*/
public java.lang.String getStatus() {
return status;
}
/**
* Upload status. Possible values: PENDING, COMPLETED, FAILED, DELETING, DELETED.
* @param status status or {@code null} for none
*/
public Upload setStatus(java.lang.String status) {
this.status = status;
return this;
}
/**
* Time this file is uploaded.
* @return value or {@code null} for none
*/
public com.google.api.client.util.DateTime getUploadTime() {
return uploadTime;
}
/**
* Time this file is uploaded.
* @param uploadTime uploadTime or {@code null} for none
*/
public Upload setUploadTime(com.google.api.client.util.DateTime uploadTime) {
this.uploadTime = uploadTime;
return this;
}
@Override
public Upload set(String fieldName, Object value) {
return (Upload) super.set(fieldName, value);
}
@Override
public Upload clone() {
return (Upload) super.clone();
}
}