Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* 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.
*/
package com.google.cloud.storage.spi;
import com.google.api.services.storage.model.Bucket;
import com.google.api.services.storage.model.StorageObject;
import com.google.cloud.storage.StorageException;
import java.io.InputStream;
import java.util.Map;
import java.util.Objects;
public interface StorageRpc {
// These options are part of the Google Cloud storage header options
enum Option {
PREDEFINED_ACL("predefinedAcl"),
PREDEFINED_DEFAULT_OBJECT_ACL("predefinedDefaultObjectAcl"),
IF_METAGENERATION_MATCH("ifMetagenerationMatch"),
IF_METAGENERATION_NOT_MATCH("ifMetagenerationNotMatch"),
IF_GENERATION_MATCH("ifGenerationMatch"),
IF_GENERATION_NOT_MATCH("ifGenerationNotMatch"),
IF_SOURCE_METAGENERATION_MATCH("ifSourceMetagenerationMatch"),
IF_SOURCE_METAGENERATION_NOT_MATCH("ifSourceMetagenerationNotMatch"),
IF_SOURCE_GENERATION_MATCH("ifSourceGenerationMatch"),
IF_SOURCE_GENERATION_NOT_MATCH("ifSourceGenerationNotMatch"),
PREFIX("prefix"),
MAX_RESULTS("maxResults"),
PAGE_TOKEN("pageToken"),
DELIMITER("delimiter"),
VERSIONS("versions"),
FIELDS("fields");
private final String value;
Option(String value) {
this.value = value;
}
public String value() {
return value;
}
@SuppressWarnings("unchecked")
T get(Map