Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
"api_shortname": "storage",
"name_pretty": "Cloud Storage",
"product_documentation": "https://cloud.google.com/storage",
"client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-storage/latest/history",
"api_description": "is a durable and highly available object storage service. Google Cloud Storage is almost infinitely scalable and guarantees consistency: when a write succeeds, the latest copy of the object will be returned to any GET, globally.",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559782",
"client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-storage/latest/history",
"release_level": "stable",
"transport": "grpc",
"language": "java",
"repo": "googleapis/java-storage",
"repo_short": "java-storage",
"distribution_name": "com.google.cloud:google-cloud-storage",
"codeowner_team": "@googleapis/cloud-storage-dpe",
"api_id": "storage.googleapis.com",
"requires_billing": true,
"library_type": "GAPIC_COMBO",
"extra_versioned_modules": "gapic-google-cloud-storage-v2",
"excluded_poms": "google-cloud-storage-bom,google-cloud-storage"
}
"requires_billing": true,
"codeowner_team": "@googleapis/cloud-storage-dpe",
"excluded_poms": "google-cloud-storage-bom,google-cloud-storage",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559782",
"extra_versioned_modules": "gapic-google-cloud-storage-v2"
}
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.33.0')
implementation platform('com.google.cloud:libraries-bom:26.40.0')

implementation 'com.google.cloud:google-cloud-storage'
```
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-storage:2.34.0'
implementation 'com.google.cloud:google-cloud-storage:2.40.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.34.0"
libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.40.0"
```
<!-- {x-version-update-end} -->

Expand Down Expand Up @@ -338,6 +338,10 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-storage/tree/

To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting].

## Transport

Cloud Storage uses gRPC for the transport layer.

## Supported Java Versions

Java 8 or above is required for using this client.
Expand Down Expand Up @@ -430,7 +434,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-storage/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storage.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage/2.34.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage/2.40.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -3576,6 +3576,7 @@ public final ListObjectsPagedResponse listObjects(String parent) {
* .setLexicographicStart("lexicographicStart-2093413008")
* .setLexicographicEnd("lexicographicEnd1646968169")
* .setSoftDeleted(true)
* .setIncludeFoldersAsPrefixes(true)
* .setMatchGlob("matchGlob613636317")
* .build();
* for (Object element : storageClient.listObjects(request).iterateAll()) {
Expand Down Expand Up @@ -3617,6 +3618,7 @@ public final ListObjectsPagedResponse listObjects(ListObjectsRequest request) {
* .setLexicographicStart("lexicographicStart-2093413008")
* .setLexicographicEnd("lexicographicEnd1646968169")
* .setSoftDeleted(true)
* .setIncludeFoldersAsPrefixes(true)
* .setMatchGlob("matchGlob613636317")
* .build();
* ApiFuture<Object> future = storageClient.listObjectsPagedCallable().futureCall(request);
Expand Down Expand Up @@ -3658,6 +3660,7 @@ public final ListObjectsPagedResponse listObjects(ListObjectsRequest request) {
* .setLexicographicStart("lexicographicStart-2093413008")
* .setLexicographicEnd("lexicographicEnd1646968169")
* .setSoftDeleted(true)
* .setIncludeFoldersAsPrefixes(true)
* .setMatchGlob("matchGlob613636317")
* .build();
* while (true) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -22,7 +22,6 @@
import static com.google.storage.v2.StorageClient.ListObjectsPagedResponse;

import com.google.api.core.ApiFunction;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
Expand Down Expand Up @@ -293,7 +292,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() {
return StorageStubSettings.defaultTransportChannelProvider();
}

@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return StorageStubSettings.defaultApiClientHeaderProviderBuilder();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -23,7 +23,6 @@

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
Expand Down Expand Up @@ -626,15 +625,6 @@ public StorageStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}

/** Returns the endpoint set by the user or the the service's default endpoint. */
@Override
public String getEndpoint() {
if (super.getEndpoint() != null) {
return super.getEndpoint();
}
return getDefaultEndpoint();
}

/** Returns the default service name. */
@Override
public String getServiceName() {
Expand Down Expand Up @@ -678,7 +668,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() {
return defaultGrpcTransportProviderBuilder().build();
}

@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return ApiClientHeaderProvider.newBuilder()
.setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(StorageStubSettings.class))
Expand Down Expand Up @@ -1342,15 +1331,6 @@ public UnaryCallSettings.Builder<GetHmacKeyRequest, HmacKeyMetadata> getHmacKeyS
return updateHmacKeySettings;
}

/** Returns the endpoint set by the user or the the service's default endpoint. */
@Override
public String getEndpoint() {
if (super.getEndpoint() != null) {
return super.getEndpoint();
}
return getDefaultEndpoint();
}

@Override
public StorageStubSettings build() throws IOException {
return new StorageStubSettings(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Bucket$HierarchicalNamespace",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Bucket$HierarchicalNamespace$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Bucket$IamConfig",
"queryAllDeclaredConstructors": true,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading