Skip to content

Commit e2f574c

Browse files
fix(deps): Update the Java code generator (gapic-generator-java) to 2.32.0 (#1511)
* fix(deps): Update the Java code generator (gapic-generator-java) to 2.32.0 PiperOrigin-RevId: 599914188 Source-Link: googleapis/googleapis@17e6661 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d86ba5be537e489435105ca85566cc4103301aba Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 9ef4d90 commit e2f574c

File tree

162 files changed

+426
-375
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+426
-375
lines changed

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java

+158-158
Large diffs are not rendered by default.

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java

+31-31
Original file line numberDiff line numberDiff line change
@@ -77,114 +77,114 @@
7777
* threads. In the example above, try-with-resources is used, which automatically calls close().
7878
*
7979
* <table>
80-
* <caption>Methods</caption>
80+
* <caption>Methods</caption>
8181
* <tr>
8282
* <th>Method</th>
8383
* <th>Description</th>
8484
* <th>Method Variants</th>
8585
* </tr>
8686
* <tr>
87-
* <td>DeleteLog</td>
87+
* <td><p> DeleteLog</td>
8888
* <td><p> Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.</td>
8989
* <td>
9090
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
9191
* <ul>
92-
* <li>deleteLog(DeleteLogRequest request)
92+
* <li><p> deleteLog(DeleteLogRequest request)
9393
* </ul>
9494
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
9595
* <ul>
96-
* <li>deleteLog(LogName logName)
97-
* <li>deleteLog(String logName)
96+
* <li><p> deleteLog(LogName logName)
97+
* <li><p> deleteLog(String logName)
9898
* </ul>
9999
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
100100
* <ul>
101-
* <li>deleteLogCallable()
101+
* <li><p> deleteLogCallable()
102102
* </ul>
103103
* </td>
104104
* </tr>
105105
* <tr>
106-
* <td>WriteLogEntries</td>
106+
* <td><p> WriteLogEntries</td>
107107
* <td><p> Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)</td>
108108
* <td>
109109
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
110110
* <ul>
111-
* <li>writeLogEntries(WriteLogEntriesRequest request)
111+
* <li><p> writeLogEntries(WriteLogEntriesRequest request)
112112
* </ul>
113113
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
114114
* <ul>
115-
* <li>writeLogEntries(LogName logName, MonitoredResource resource, Map&lt;String, String&gt; labels, List&lt;LogEntry&gt; entries)
116-
* <li>writeLogEntries(String logName, MonitoredResource resource, Map&lt;String, String&gt; labels, List&lt;LogEntry&gt; entries)
115+
* <li><p> writeLogEntries(LogName logName, MonitoredResource resource, Map&lt;String, String&gt; labels, List&lt;LogEntry&gt; entries)
116+
* <li><p> writeLogEntries(String logName, MonitoredResource resource, Map&lt;String, String&gt; labels, List&lt;LogEntry&gt; entries)
117117
* </ul>
118118
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
119119
* <ul>
120-
* <li>writeLogEntriesCallable()
120+
* <li><p> writeLogEntriesCallable()
121121
* </ul>
122122
* </td>
123123
* </tr>
124124
* <tr>
125-
* <td>ListLogEntries</td>
125+
* <td><p> ListLogEntries</td>
126126
* <td><p> Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see [Exporting Logs](https://cloud.google.com/logging/docs/export).</td>
127127
* <td>
128128
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
129129
* <ul>
130-
* <li>listLogEntries(ListLogEntriesRequest request)
130+
* <li><p> listLogEntries(ListLogEntriesRequest request)
131131
* </ul>
132132
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
133133
* <ul>
134-
* <li>listLogEntries(List&lt;String&gt; resourceNames, String filter, String orderBy)
134+
* <li><p> listLogEntries(List&lt;String&gt; resourceNames, String filter, String orderBy)
135135
* </ul>
136136
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
137137
* <ul>
138-
* <li>listLogEntriesPagedCallable()
139-
* <li>listLogEntriesCallable()
138+
* <li><p> listLogEntriesPagedCallable()
139+
* <li><p> listLogEntriesCallable()
140140
* </ul>
141141
* </td>
142142
* </tr>
143143
* <tr>
144-
* <td>ListMonitoredResourceDescriptors</td>
144+
* <td><p> ListMonitoredResourceDescriptors</td>
145145
* <td><p> Lists the descriptors for monitored resource types used by Logging.</td>
146146
* <td>
147147
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
148148
* <ul>
149-
* <li>listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request)
149+
* <li><p> listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request)
150150
* </ul>
151151
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
152152
* <ul>
153-
* <li>listMonitoredResourceDescriptorsPagedCallable()
154-
* <li>listMonitoredResourceDescriptorsCallable()
153+
* <li><p> listMonitoredResourceDescriptorsPagedCallable()
154+
* <li><p> listMonitoredResourceDescriptorsCallable()
155155
* </ul>
156156
* </td>
157157
* </tr>
158158
* <tr>
159-
* <td>ListLogs</td>
159+
* <td><p> ListLogs</td>
160160
* <td><p> Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.</td>
161161
* <td>
162162
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
163163
* <ul>
164-
* <li>listLogs(ListLogsRequest request)
164+
* <li><p> listLogs(ListLogsRequest request)
165165
* </ul>
166166
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
167167
* <ul>
168-
* <li>listLogs(BillingAccountName parent)
169-
* <li>listLogs(FolderName parent)
170-
* <li>listLogs(OrganizationName parent)
171-
* <li>listLogs(ProjectName parent)
172-
* <li>listLogs(String parent)
168+
* <li><p> listLogs(BillingAccountName parent)
169+
* <li><p> listLogs(FolderName parent)
170+
* <li><p> listLogs(OrganizationName parent)
171+
* <li><p> listLogs(ProjectName parent)
172+
* <li><p> listLogs(String parent)
173173
* </ul>
174174
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
175175
* <ul>
176-
* <li>listLogsPagedCallable()
177-
* <li>listLogsCallable()
176+
* <li><p> listLogsPagedCallable()
177+
* <li><p> listLogsCallable()
178178
* </ul>
179179
* </td>
180180
* </tr>
181181
* <tr>
182-
* <td>TailLogEntries</td>
182+
* <td><p> TailLogEntries</td>
183183
* <td><p> Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.</td>
184184
* <td>
185185
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
186186
* <ul>
187-
* <li>tailLogEntriesCallable()
187+
* <li><p> tailLogEntriesCallable()
188188
* </ul>
189189
* </td>
190190
* </tr>

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java

+27-27
Original file line numberDiff line numberDiff line change
@@ -65,105 +65,105 @@
6565
* threads. In the example above, try-with-resources is used, which automatically calls close().
6666
*
6767
* <table>
68-
* <caption>Methods</caption>
68+
* <caption>Methods</caption>
6969
* <tr>
7070
* <th>Method</th>
7171
* <th>Description</th>
7272
* <th>Method Variants</th>
7373
* </tr>
7474
* <tr>
75-
* <td>ListLogMetrics</td>
75+
* <td><p> ListLogMetrics</td>
7676
* <td><p> Lists logs-based metrics.</td>
7777
* <td>
7878
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
7979
* <ul>
80-
* <li>listLogMetrics(ListLogMetricsRequest request)
80+
* <li><p> listLogMetrics(ListLogMetricsRequest request)
8181
* </ul>
8282
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
8383
* <ul>
84-
* <li>listLogMetrics(ProjectName parent)
85-
* <li>listLogMetrics(String parent)
84+
* <li><p> listLogMetrics(ProjectName parent)
85+
* <li><p> listLogMetrics(String parent)
8686
* </ul>
8787
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
8888
* <ul>
89-
* <li>listLogMetricsPagedCallable()
90-
* <li>listLogMetricsCallable()
89+
* <li><p> listLogMetricsPagedCallable()
90+
* <li><p> listLogMetricsCallable()
9191
* </ul>
9292
* </td>
9393
* </tr>
9494
* <tr>
95-
* <td>GetLogMetric</td>
95+
* <td><p> GetLogMetric</td>
9696
* <td><p> Gets a logs-based metric.</td>
9797
* <td>
9898
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
9999
* <ul>
100-
* <li>getLogMetric(GetLogMetricRequest request)
100+
* <li><p> getLogMetric(GetLogMetricRequest request)
101101
* </ul>
102102
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
103103
* <ul>
104-
* <li>getLogMetric(LogMetricName metricName)
105-
* <li>getLogMetric(String metricName)
104+
* <li><p> getLogMetric(LogMetricName metricName)
105+
* <li><p> getLogMetric(String metricName)
106106
* </ul>
107107
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
108108
* <ul>
109-
* <li>getLogMetricCallable()
109+
* <li><p> getLogMetricCallable()
110110
* </ul>
111111
* </td>
112112
* </tr>
113113
* <tr>
114-
* <td>CreateLogMetric</td>
114+
* <td><p> CreateLogMetric</td>
115115
* <td><p> Creates a logs-based metric.</td>
116116
* <td>
117117
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
118118
* <ul>
119-
* <li>createLogMetric(CreateLogMetricRequest request)
119+
* <li><p> createLogMetric(CreateLogMetricRequest request)
120120
* </ul>
121121
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
122122
* <ul>
123-
* <li>createLogMetric(ProjectName parent, LogMetric metric)
124-
* <li>createLogMetric(String parent, LogMetric metric)
123+
* <li><p> createLogMetric(ProjectName parent, LogMetric metric)
124+
* <li><p> createLogMetric(String parent, LogMetric metric)
125125
* </ul>
126126
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
127127
* <ul>
128-
* <li>createLogMetricCallable()
128+
* <li><p> createLogMetricCallable()
129129
* </ul>
130130
* </td>
131131
* </tr>
132132
* <tr>
133-
* <td>UpdateLogMetric</td>
133+
* <td><p> UpdateLogMetric</td>
134134
* <td><p> Creates or updates a logs-based metric.</td>
135135
* <td>
136136
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
137137
* <ul>
138-
* <li>updateLogMetric(UpdateLogMetricRequest request)
138+
* <li><p> updateLogMetric(UpdateLogMetricRequest request)
139139
* </ul>
140140
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
141141
* <ul>
142-
* <li>updateLogMetric(LogMetricName metricName, LogMetric metric)
143-
* <li>updateLogMetric(String metricName, LogMetric metric)
142+
* <li><p> updateLogMetric(LogMetricName metricName, LogMetric metric)
143+
* <li><p> updateLogMetric(String metricName, LogMetric metric)
144144
* </ul>
145145
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
146146
* <ul>
147-
* <li>updateLogMetricCallable()
147+
* <li><p> updateLogMetricCallable()
148148
* </ul>
149149
* </td>
150150
* </tr>
151151
* <tr>
152-
* <td>DeleteLogMetric</td>
152+
* <td><p> DeleteLogMetric</td>
153153
* <td><p> Deletes a logs-based metric.</td>
154154
* <td>
155155
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
156156
* <ul>
157-
* <li>deleteLogMetric(DeleteLogMetricRequest request)
157+
* <li><p> deleteLogMetric(DeleteLogMetricRequest request)
158158
* </ul>
159159
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
160160
* <ul>
161-
* <li>deleteLogMetric(LogMetricName metricName)
162-
* <li>deleteLogMetric(String metricName)
161+
* <li><p> deleteLogMetric(LogMetricName metricName)
162+
* <li><p> deleteLogMetric(String metricName)
163163
* </ul>
164164
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
165165
* <ul>
166-
* <li>deleteLogMetricCallable()
166+
* <li><p> deleteLogMetricCallable()
167167
* </ul>
168168
* </td>
169169
* </tr>

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java

+18-1
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,15 @@ public ConfigServiceV2Stub createStub() throws IOException {
679679
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
680680
}
681681

682+
/** Returns the endpoint set by the user or the the service's default endpoint. */
683+
@Override
684+
public String getEndpoint() {
685+
if (super.getEndpoint() != null) {
686+
return super.getEndpoint();
687+
}
688+
return getDefaultEndpoint();
689+
}
690+
682691
/** Returns the default service name. */
683692
@Override
684693
public String getServiceName() {
@@ -1066,7 +1075,6 @@ private static Builder createDefault() {
10661075
builder.setTransportChannelProvider(defaultTransportChannelProvider());
10671076
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
10681077
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
1069-
builder.setEndpoint(getDefaultEndpoint());
10701078
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
10711079
builder.setSwitchToMtlsEndpointAllowed(true);
10721080

@@ -1581,6 +1589,15 @@ public UnaryCallSettings.Builder<CopyLogEntriesRequest, Operation> copyLogEntrie
15811589
return copyLogEntriesOperationSettings;
15821590
}
15831591

1592+
/** Returns the endpoint set by the user or the the service's default endpoint. */
1593+
@Override
1594+
public String getEndpoint() {
1595+
if (super.getEndpoint() != null) {
1596+
return super.getEndpoint();
1597+
}
1598+
return getDefaultEndpoint();
1599+
}
1600+
15841601
@Override
15851602
public ConfigServiceV2StubSettings build() throws IOException {
15861603
return new ConfigServiceV2StubSettings(this);

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java

+18-1
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,15 @@ public LoggingServiceV2Stub createStub() throws IOException {
438438
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
439439
}
440440

441+
/** Returns the endpoint set by the user or the the service's default endpoint. */
442+
@Override
443+
public String getEndpoint() {
444+
if (super.getEndpoint() != null) {
445+
return super.getEndpoint();
446+
}
447+
return getDefaultEndpoint();
448+
}
449+
441450
/** Returns the default service name. */
442451
@Override
443452
public String getServiceName() {
@@ -642,7 +651,6 @@ private static Builder createDefault() {
642651
builder.setTransportChannelProvider(defaultTransportChannelProvider());
643652
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
644653
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
645-
builder.setEndpoint(getDefaultEndpoint());
646654
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
647655
builder.setSwitchToMtlsEndpointAllowed(true);
648656

@@ -748,6 +756,15 @@ public UnaryCallSettings.Builder<DeleteLogRequest, Empty> deleteLogSettings() {
748756
return tailLogEntriesSettings;
749757
}
750758

759+
/** Returns the endpoint set by the user or the the service's default endpoint. */
760+
@Override
761+
public String getEndpoint() {
762+
if (super.getEndpoint() != null) {
763+
return super.getEndpoint();
764+
}
765+
return getDefaultEndpoint();
766+
}
767+
751768
@Override
752769
public LoggingServiceV2StubSettings build() throws IOException {
753770
return new LoggingServiceV2StubSettings(this);

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java

+18-1
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,15 @@ public MetricsServiceV2Stub createStub() throws IOException {
206206
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
207207
}
208208

209+
/** Returns the endpoint set by the user or the the service's default endpoint. */
210+
@Override
211+
public String getEndpoint() {
212+
if (super.getEndpoint() != null) {
213+
return super.getEndpoint();
214+
}
215+
return getDefaultEndpoint();
216+
}
217+
209218
/** Returns the default service name. */
210219
@Override
211220
public String getServiceName() {
@@ -387,7 +396,6 @@ private static Builder createDefault() {
387396
builder.setTransportChannelProvider(defaultTransportChannelProvider());
388397
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
389398
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
390-
builder.setEndpoint(getDefaultEndpoint());
391399
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
392400
builder.setSwitchToMtlsEndpointAllowed(true);
393401

@@ -465,6 +473,15 @@ public UnaryCallSettings.Builder<DeleteLogMetricRequest, Empty> deleteLogMetricS
465473
return deleteLogMetricSettings;
466474
}
467475

476+
/** Returns the endpoint set by the user or the the service's default endpoint. */
477+
@Override
478+
public String getEndpoint() {
479+
if (super.getEndpoint() != null) {
480+
return super.getEndpoint();
481+
}
482+
return getDefaultEndpoint();
483+
}
484+
468485
@Override
469486
public MetricsServiceV2StubSettings build() throws IOException {
470487
return new MetricsServiceV2StubSettings(this);

0 commit comments

Comments
 (0)