Skip to content
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
5251cdb
chore: Update generation configuration at Fri Aug 23 02:15:42 UTC 2024
cloud-java-bot Aug 23, 2024
ccf2283
chore: Update generation configuration at Sat Aug 24 02:15:12 UTC 2024
cloud-java-bot Aug 24, 2024
8ecaa18
chore: Update generation configuration at Tue Aug 27 02:16:44 UTC 2024
cloud-java-bot Aug 27, 2024
92b3115
chore: Update generation configuration at Wed Aug 28 02:17:17 UTC 2024
cloud-java-bot Aug 28, 2024
644eda6
chore: Update generation configuration at Thu Aug 29 02:18:26 UTC 2024
cloud-java-bot Aug 29, 2024
3fe3d4f
chore: generate libraries at Thu Aug 29 02:18:49 UTC 2024
cloud-java-bot Aug 29, 2024
06ad9f3
chore: Update generation configuration at Fri Aug 30 02:18:53 UTC 2024
cloud-java-bot Aug 30, 2024
cb6f07f
chore: Update generation configuration at Sat Aug 31 02:17:58 UTC 2024
cloud-java-bot Aug 31, 2024
ea4f18d
chore: Update generation configuration at Wed Sep 4 02:19:01 UTC 2024
cloud-java-bot Sep 4, 2024
287d845
chore: Update generation configuration at Thu Sep 5 02:19:25 UTC 2024
cloud-java-bot Sep 5, 2024
f5807cf
chore: Update generation configuration at Fri Sep 6 02:19:15 UTC 2024
cloud-java-bot Sep 6, 2024
a71e4cb
chore: Update generation configuration at Sat Sep 7 02:17:43 UTC 2024
cloud-java-bot Sep 7, 2024
d34faf2
chore: Update generation configuration at Sun Sep 8 02:23:02 UTC 2024
cloud-java-bot Sep 8, 2024
be2524b
chore: Update generation configuration at Tue Sep 10 02:20:20 UTC 2024
cloud-java-bot Sep 10, 2024
59b65f7
chore: Update generation configuration at Tue Sep 10 19:32:08 UTC 2024
cloud-java-bot Sep 10, 2024
d2fa8cb
chore: generate libraries at Tue Sep 10 19:32:36 UTC 2024
cloud-java-bot Sep 10, 2024
d80de60
chore: Update generation configuration at Wed Sep 11 02:19:38 UTC 2024
cloud-java-bot Sep 11, 2024
4be999c
chore: Update generation configuration at Thu Sep 12 02:19:52 UTC 2024
cloud-java-bot Sep 12, 2024
ebe64e3
chore: Update generation configuration at Fri Sep 13 02:20:41 UTC 2024
cloud-java-bot Sep 13, 2024
95a35b5
chore: Update generation configuration at Sat Sep 14 02:18:52 UTC 2024
cloud-java-bot Sep 14, 2024
ea4921c
chore: Update generation configuration at Mon Sep 16 02:25:14 UTC 2024
cloud-java-bot Sep 16, 2024
dd405f0
chore: Update generation configuration at Tue Sep 17 02:08:31 UTC 2024
cloud-java-bot Sep 17, 2024
1cc5c4b
chore: Update generation configuration at Wed Sep 18 02:20:29 UTC 2024
cloud-java-bot Sep 18, 2024
de51956
chore: Update generation configuration at Thu Sep 19 02:21:54 UTC 2024
cloud-java-bot Sep 19, 2024
2206f15
chore: generate libraries at Thu Sep 19 02:22:18 UTC 2024
cloud-java-bot Sep 19, 2024
fea467c
chore: Update generation configuration at Fri Sep 20 02:21:43 UTC 2024
cloud-java-bot Sep 20, 2024
3b66fe1
chore: generate libraries at Fri Sep 20 02:22:39 UTC 2024
cloud-java-bot Sep 20, 2024
44e3696
chore: Update generation configuration at Sat Sep 21 02:22:41 UTC 2024
cloud-java-bot Sep 21, 2024
703bc7f
chore: Update generation configuration at Tue Sep 24 02:23:50 UTC 2024
cloud-java-bot Sep 24, 2024
9656370
chore: Update generation configuration at Wed Sep 25 02:24:25 UTC 2024
cloud-java-bot Sep 25, 2024
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,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.44.0')
implementation platform('com.google.cloud:libraries-bom:26.47.0')

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

```Groovy
implementation 'com.google.cloud:google-cloud-logging:3.20.0'
implementation 'com.google.cloud:google-cloud-logging:3.20.1'
```

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

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.20.0"
libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.20.1"
```
<!-- {x-version-update-end} -->

Expand Down Expand Up @@ -465,7 +465,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-logging/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-logging.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/3.20.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/3.20.1
[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
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.44.0
googleapis_commitish: 54d659d0ae74f39e92755948b821a1495b3cb3c8
libraries_bom_version: 26.44.0
gapic_generator_version: 2.45.0
googleapis_commitish: a18d9b2c3563527b26c4b713469e795b92795271
libraries_bom_version: 26.47.0
libraries:
- api_shortname: logging
name_pretty: Cloud Logging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
* <p>For example, to set the total timeout of getBucket to 30 seconds:
* <p>For example, to set the
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
* of getBucket:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
Expand All @@ -117,10 +119,46 @@
* .getBucketSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
* .setMaxAttempts(5)
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
* .setRetryDelayMultiplier(1.3)
* .setRpcTimeoutMultiplier(1.5)
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* ConfigSettings configSettings = configSettingsBuilder.build();
* }</pre>
*
* Please refer to the [Client Side Retry
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
* additional support in setting retries.
*
* <p>To configure the RetrySettings of a Long Running Operation method, create an
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
* configure the RetrySettings for createBucketAsync:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* ConfigSettings.Builder configSettingsBuilder = ConfigSettings.newBuilder();
* TimedRetryAlgorithm timedRetryAlgorithm =
* OperationalTimedPollAlgorithm.create(
* RetrySettings.newBuilder()
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
* .setRetryDelayMultiplier(1.5)
* .setMaxRetryDelay(Duration.ofMillis(5000))
* .setTotalTimeoutDuration(Duration.ofHours(24))
* .build());
* configSettingsBuilder
* .createClusterOperationSettings()
* .setPollingAlgorithm(timedRetryAlgorithm)
* .build();
* }</pre>
*/
@Generated("by gapic-generator-java")
public class ConfigSettings extends ClientSettings<ConfigSettings> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
* <p>For example, to set the total timeout of deleteLog to 30 seconds:
* <p>For example, to set the
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
* of deleteLog:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
Expand All @@ -80,10 +82,21 @@
* .deleteLogSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
* .setMaxAttempts(5)
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
* .setRetryDelayMultiplier(1.3)
* .setRpcTimeoutMultiplier(1.5)
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* LoggingSettings loggingSettings = loggingSettingsBuilder.build();
* }</pre>
*
* Please refer to the [Client Side Retry
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
* additional support in setting retries.
*/
@Generated("by gapic-generator-java")
public class LoggingSettings extends ClientSettings<LoggingSettings> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
* <p>For example, to set the total timeout of getLogMetric to 30 seconds:
* <p>For example, to set the
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
* of getLogMetric:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
Expand All @@ -72,10 +74,21 @@
* .getLogMetricSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
* .setMaxAttempts(5)
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
* .setRetryDelayMultiplier(1.3)
* .setRpcTimeoutMultiplier(1.5)
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* MetricsSettings metricsSettings = metricsSettingsBuilder.build();
* }</pre>
*
* Please refer to the [Client Side Retry
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
* additional support in setting retries.
*/
@Generated("by gapic-generator-java")
public class MetricsSettings extends ClientSettings<MetricsSettings> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
* <p>For example, to set the total timeout of getBucket to 30 seconds:
* <p>For example, to set the
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
* of getBucket:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
Expand All @@ -137,10 +139,47 @@
* .getBucketSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
* .setMaxAttempts(5)
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
* .setRetryDelayMultiplier(1.3)
* .setRpcTimeoutMultiplier(1.5)
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* ConfigServiceV2StubSettings configSettings = configSettingsBuilder.build();
* }</pre>
*
* Please refer to the [Client Side Retry
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
* additional support in setting retries.
*
* <p>To configure the RetrySettings of a Long Running Operation method, create an
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
* configure the RetrySettings for createBucketAsync:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* ConfigServiceV2StubSettings.Builder configSettingsBuilder =
* ConfigServiceV2StubSettings.newBuilder();
* TimedRetryAlgorithm timedRetryAlgorithm =
* OperationalTimedPollAlgorithm.create(
* RetrySettings.newBuilder()
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
* .setRetryDelayMultiplier(1.5)
* .setMaxRetryDelay(Duration.ofMillis(5000))
* .setTotalTimeoutDuration(Duration.ofHours(24))
* .build());
* configSettingsBuilder
* .createClusterOperationSettings()
* .setPollingAlgorithm(timedRetryAlgorithm)
* .build();
* }</pre>
*/
@Generated("by gapic-generator-java")
public class ConfigServiceV2StubSettings extends StubSettings<ConfigServiceV2StubSettings> {
Expand Down Expand Up @@ -234,9 +273,7 @@ public String extractNextToken(ListBucketsResponse payload) {

@Override
public Iterable<LogBucket> extractResources(ListBucketsResponse payload) {
return payload.getBucketsList() == null
? ImmutableList.<LogBucket>of()
: payload.getBucketsList();
return payload.getBucketsList();
}
};

Expand Down Expand Up @@ -270,9 +307,7 @@ public String extractNextToken(ListViewsResponse payload) {

@Override
public Iterable<LogView> extractResources(ListViewsResponse payload) {
return payload.getViewsList() == null
? ImmutableList.<LogView>of()
: payload.getViewsList();
return payload.getViewsList();
}
};

Expand Down Expand Up @@ -306,9 +341,7 @@ public String extractNextToken(ListSinksResponse payload) {

@Override
public Iterable<LogSink> extractResources(ListSinksResponse payload) {
return payload.getSinksList() == null
? ImmutableList.<LogSink>of()
: payload.getSinksList();
return payload.getSinksList();
}
};

Expand Down Expand Up @@ -342,9 +375,7 @@ public String extractNextToken(ListLinksResponse payload) {

@Override
public Iterable<Link> extractResources(ListLinksResponse payload) {
return payload.getLinksList() == null
? ImmutableList.<Link>of()
: payload.getLinksList();
return payload.getLinksList();
}
};

Expand Down Expand Up @@ -380,9 +411,7 @@ public String extractNextToken(ListExclusionsResponse payload) {

@Override
public Iterable<LogExclusion> extractResources(ListExclusionsResponse payload) {
return payload.getExclusionsList() == null
? ImmutableList.<LogExclusion>of()
: payload.getExclusionsList();
return payload.getExclusionsList();
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
* <p>For example, to set the total timeout of deleteLog to 30 seconds:
* <p>For example, to set the
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
* of deleteLog:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
Expand All @@ -107,10 +109,21 @@
* .deleteLogSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
* .setMaxAttempts(5)
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
* .setRetryDelayMultiplier(1.3)
* .setRpcTimeoutMultiplier(1.5)
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* LoggingServiceV2StubSettings loggingSettings = loggingSettingsBuilder.build();
* }</pre>
*
* Please refer to the [Client Side Retry
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
* additional support in setting retries.
*/
@Generated("by gapic-generator-java")
public class LoggingServiceV2StubSettings extends StubSettings<LoggingServiceV2StubSettings> {
Expand Down Expand Up @@ -171,9 +184,7 @@ public String extractNextToken(ListLogEntriesResponse payload) {

@Override
public Iterable<LogEntry> extractResources(ListLogEntriesResponse payload) {
return payload.getEntriesList() == null
? ImmutableList.<LogEntry>of()
: payload.getEntriesList();
return payload.getEntriesList();
}
};

Expand Down Expand Up @@ -220,9 +231,7 @@ public String extractNextToken(ListMonitoredResourceDescriptorsResponse payload)
@Override
public Iterable<MonitoredResourceDescriptor> extractResources(
ListMonitoredResourceDescriptorsResponse payload) {
return payload.getResourceDescriptorsList() == null
? ImmutableList.<MonitoredResourceDescriptor>of()
: payload.getResourceDescriptorsList();
return payload.getResourceDescriptorsList();
}
};

Expand Down Expand Up @@ -256,9 +265,7 @@ public String extractNextToken(ListLogsResponse payload) {

@Override
public Iterable<String> extractResources(ListLogsResponse payload) {
return payload.getLogNamesList() == null
? ImmutableList.<String>of()
: payload.getLogNamesList();
return payload.getLogNamesList();
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
* <p>For example, to set the total timeout of getLogMetric to 30 seconds:
* <p>For example, to set the
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
* of getLogMetric:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
Expand All @@ -89,10 +91,21 @@
* .getLogMetricSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
* .setMaxAttempts(5)
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
* .setRetryDelayMultiplier(1.3)
* .setRpcTimeoutMultiplier(1.5)
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* MetricsServiceV2StubSettings metricsSettings = metricsSettingsBuilder.build();
* }</pre>
*
* Please refer to the [Client Side Retry
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
* additional support in setting retries.
*/
@Generated("by gapic-generator-java")
public class MetricsServiceV2StubSettings extends StubSettings<MetricsServiceV2StubSettings> {
Expand Down Expand Up @@ -145,9 +158,7 @@ public String extractNextToken(ListLogMetricsResponse payload) {

@Override
public Iterable<LogMetric> extractResources(ListLogMetricsResponse payload) {
return payload.getMetricsList() == null
? ImmutableList.<LogMetric>of()
: payload.getMetricsList();
return payload.getMetricsList();
}
};

Expand Down
Loading
Loading