com.google.api.services.appengine.model.FileInfo Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* 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/google/apis-client-generator/
* (build: 2017-11-07 19:12:12 UTC)
* on 2017-12-15 at 01:51:25 UTC
* Modify at your own risk.
*/
package com.google.api.services.appengine.model;
/**
* Single source file that is part of the version to be deployed. Each source file that is deployed
* must be specified separately.
*
* 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 App Engine Admin 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 FileInfo extends com.google.api.client.json.GenericJson {
/**
* The MIME type of the file.Defaults to the value from Google Cloud Storage.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String mimeType;
/**
* The SHA1 hash of the file, in hex.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String sha1Sum;
/**
* URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in
* the form 'http(s)://storage.googleapis.com//'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String sourceUrl;
/**
* The MIME type of the file.Defaults to the value from Google Cloud Storage.
* @return value or {@code null} for none
*/
public java.lang.String getMimeType() {
return mimeType;
}
/**
* The MIME type of the file.Defaults to the value from Google Cloud Storage.
* @param mimeType mimeType or {@code null} for none
*/
public FileInfo setMimeType(java.lang.String mimeType) {
this.mimeType = mimeType;
return this;
}
/**
* The SHA1 hash of the file, in hex.
* @return value or {@code null} for none
*/
public java.lang.String getSha1Sum() {
return sha1Sum;
}
/**
* The SHA1 hash of the file, in hex.
* @param sha1Sum sha1Sum or {@code null} for none
*/
public FileInfo setSha1Sum(java.lang.String sha1Sum) {
this.sha1Sum = sha1Sum;
return this;
}
/**
* URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in
* the form 'http(s)://storage.googleapis.com//'.
* @return value or {@code null} for none
*/
public java.lang.String getSourceUrl() {
return sourceUrl;
}
/**
* URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in
* the form 'http(s)://storage.googleapis.com//'.
* @param sourceUrl sourceUrl or {@code null} for none
*/
public FileInfo setSourceUrl(java.lang.String sourceUrl) {
this.sourceUrl = sourceUrl;
return this;
}
@Override
public FileInfo set(String fieldName, Object value) {
return (FileInfo) super.set(fieldName, value);
}
@Override
public FileInfo clone() {
return (FileInfo) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy