这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/hermetic_library_generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
- uses: googleapis/sdk-platform-java/.github/scripts@v2.62.3
- uses: googleapis/sdk-platform-java/.github/scripts@v2.63.0
if: env.SHOULD_RUN == 'true'
with:
base_ref: ${{ github.base_ref }}
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-a.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current}
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current}
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-b.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current}
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current}
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-c.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current}
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current}
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ 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.69.0')
implementation platform('com.google.cloud:libraries-bom:26.70.0')
implementation 'com.google.cloud:google-cloud-pubsub'
```
Expand Down
6 changes: 3 additions & 3 deletions generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gapic_generator_version: 2.62.3
googleapis_commitish: 6e79e73204aed17b11e724beebb9cf11f36ea57d
libraries_bom_version: 26.69.0
gapic_generator_version: 2.63.0
googleapis_commitish: c288189b43c016dd3cf1ec73ce3cadee8b732f07
libraries_bom_version: 26.70.0
libraries:
- api_shortname: pubsub
name_pretty: Cloud Pub/Sub
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@ public final Subscription createSubscription(
* .setAnalyticsHubSubscriptionInfo(
* Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
* .addAllMessageTransforms(new ArrayList<MessageTransform>())
* .putAllTags(new HashMap<String, String>())
* .build();
* Subscription response = subscriptionAdminClient.createSubscription(request);
* }
Expand Down Expand Up @@ -1147,6 +1148,7 @@ public final Subscription createSubscription(
* .setAnalyticsHubSubscriptionInfo(
* Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
* .addAllMessageTransforms(new ArrayList<MessageTransform>())
* .putAllTags(new HashMap<String, String>())
* .build();
* ApiFuture<Subscription> future =
* subscriptionAdminClient.createSubscriptionCallable().futureCall(request);
Expand Down Expand Up @@ -3181,6 +3183,7 @@ public final Snapshot createSnapshot(String name, String subscription) {
* .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
* .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
* .putAllLabels(new HashMap<String, String>())
* .putAllTags(new HashMap<String, String>())
* .build();
* Snapshot response = subscriptionAdminClient.createSnapshot(request);
* }
Expand Down Expand Up @@ -3373,6 +3376,7 @@ public final Snapshot createSnapshot(ProjectSnapshotName name, String subscripti
* .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
* .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
* .putAllLabels(new HashMap<String, String>())
* .putAllTags(new HashMap<String, String>())
* .build();
* ApiFuture<Snapshot> future =
* subscriptionAdminClient.createSnapshotCallable().futureCall(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,15 @@ public final Topic createTopic(ProjectTopicName name) {
* .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
* .putAllLabels(new HashMap<String, String>())
* .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build())
* .setKmsKeyName("kmsKeyName412586233")
* .setKmsKeyName(
* CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
* .toString())
* .setSchemaSettings(SchemaSettings.newBuilder().build())
* .setSatisfiesPzs(true)
* .setMessageRetentionDuration(Duration.newBuilder().build())
* .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build())
* .addAllMessageTransforms(new ArrayList<MessageTransform>())
* .putAllTags(new HashMap<String, String>())
* .build();
* Topic response = topicAdminClient.createTopic(request);
* }
Expand Down Expand Up @@ -548,12 +551,15 @@ public final Topic createTopic(Topic request) {
* .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
* .putAllLabels(new HashMap<String, String>())
* .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build())
* .setKmsKeyName("kmsKeyName412586233")
* .setKmsKeyName(
* CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
* .toString())
* .setSchemaSettings(SchemaSettings.newBuilder().build())
* .setSatisfiesPzs(true)
* .setMessageRetentionDuration(Duration.newBuilder().build())
* .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build())
* .addAllMessageTransforms(new ArrayList<MessageTransform>())
* .putAllTags(new HashMap<String, String>())
* .build();
* ApiFuture<Topic> future = topicAdminClient.createTopicCallable().futureCall(request);
* // Do something.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public void createSubscriptionTest() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -205,6 +206,7 @@ public void createSubscriptionTest2() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -275,6 +277,7 @@ public void createSubscriptionTest3() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -345,6 +348,7 @@ public void createSubscriptionTest4() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -415,6 +419,7 @@ public void getSubscriptionTest() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -478,6 +483,7 @@ public void getSubscriptionTest2() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -541,6 +547,7 @@ public void updateSubscriptionTest() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand All @@ -566,6 +573,7 @@ public void updateSubscriptionTest() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();

Expand Down Expand Up @@ -617,6 +625,7 @@ public void updateSubscriptionExceptionTest() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
client.updateSubscription(subscription, updateMask);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public void createSubscriptionTest() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockSubscriber.addResponse(expectedResponse);

Expand Down Expand Up @@ -228,6 +229,7 @@ public void createSubscriptionTest2() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockSubscriber.addResponse(expectedResponse);

Expand Down Expand Up @@ -295,6 +297,7 @@ public void createSubscriptionTest3() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockSubscriber.addResponse(expectedResponse);

Expand Down Expand Up @@ -362,6 +365,7 @@ public void createSubscriptionTest4() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockSubscriber.addResponse(expectedResponse);

Expand Down Expand Up @@ -429,6 +433,7 @@ public void getSubscriptionTest() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockSubscriber.addResponse(expectedResponse);

Expand Down Expand Up @@ -486,6 +491,7 @@ public void getSubscriptionTest2() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockSubscriber.addResponse(expectedResponse);

Expand Down Expand Up @@ -543,6 +549,7 @@ public void updateSubscriptionTest() throws Exception {
.setAnalyticsHubSubscriptionInfo(
Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockSubscriber.addResponse(expectedResponse);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import com.google.protobuf.Duration;
import com.google.protobuf.Empty;
import com.google.protobuf.FieldMask;
import com.google.pubsub.v1.CryptoKeyName;
import com.google.pubsub.v1.DetachSubscriptionRequest;
import com.google.pubsub.v1.DetachSubscriptionResponse;
import com.google.pubsub.v1.IngestionDataSourceSettings;
Expand Down Expand Up @@ -113,12 +114,15 @@ public void createTopicTest() throws Exception {
.setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
.putAllLabels(new HashMap<String, String>())
.setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build())
.setKmsKeyName("kmsKeyName412586233")
.setKmsKeyName(
CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
.toString())
.setSchemaSettings(SchemaSettings.newBuilder().build())
.setSatisfiesPzs(true)
.setMessageRetentionDuration(Duration.newBuilder().build())
.setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -165,12 +169,15 @@ public void createTopicTest2() throws Exception {
.setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
.putAllLabels(new HashMap<String, String>())
.setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build())
.setKmsKeyName("kmsKeyName412586233")
.setKmsKeyName(
CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
.toString())
.setSchemaSettings(SchemaSettings.newBuilder().build())
.setSatisfiesPzs(true)
.setMessageRetentionDuration(Duration.newBuilder().build())
.setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -217,12 +224,15 @@ public void updateTopicTest() throws Exception {
.setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
.putAllLabels(new HashMap<String, String>())
.setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build())
.setKmsKeyName("kmsKeyName412586233")
.setKmsKeyName(
CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
.toString())
.setSchemaSettings(SchemaSettings.newBuilder().build())
.setSatisfiesPzs(true)
.setMessageRetentionDuration(Duration.newBuilder().build())
.setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand All @@ -231,12 +241,15 @@ public void updateTopicTest() throws Exception {
.setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
.putAllLabels(new HashMap<String, String>())
.setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build())
.setKmsKeyName("kmsKeyName412586233")
.setKmsKeyName(
CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
.toString())
.setSchemaSettings(SchemaSettings.newBuilder().build())
.setSatisfiesPzs(true)
.setMessageRetentionDuration(Duration.newBuilder().build())
.setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();

Expand Down Expand Up @@ -271,12 +284,15 @@ public void updateTopicExceptionTest() throws Exception {
.setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
.putAllLabels(new HashMap<String, String>())
.setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build())
.setKmsKeyName("kmsKeyName412586233")
.setKmsKeyName(
CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
.toString())
.setSchemaSettings(SchemaSettings.newBuilder().build())
.setSatisfiesPzs(true)
.setMessageRetentionDuration(Duration.newBuilder().build())
.setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
client.updateTopic(topic, updateMask);
Expand Down Expand Up @@ -381,12 +397,15 @@ public void getTopicTest() throws Exception {
.setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
.putAllLabels(new HashMap<String, String>())
.setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build())
.setKmsKeyName("kmsKeyName412586233")
.setKmsKeyName(
CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
.toString())
.setSchemaSettings(SchemaSettings.newBuilder().build())
.setSatisfiesPzs(true)
.setMessageRetentionDuration(Duration.newBuilder().build())
.setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -433,12 +452,15 @@ public void getTopicTest2() throws Exception {
.setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
.putAllLabels(new HashMap<String, String>())
.setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build())
.setKmsKeyName("kmsKeyName412586233")
.setKmsKeyName(
CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
.toString())
.setSchemaSettings(SchemaSettings.newBuilder().build())
.setSatisfiesPzs(true)
.setMessageRetentionDuration(Duration.newBuilder().build())
.setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build())
.addAllMessageTransforms(new ArrayList<MessageTransform>())
.putAllTags(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down
Loading