Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

Commit e5380c5

Browse files
chore: migrate to microgenerator (#121)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/5e11eb13-af38-4b8f-bcc3-5a4567daee97/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 347036369 Source-Link: googleapis/googleapis@6d65640 PiperOrigin-RevId: 346372957 Source-Link: googleapis/googleapis@857f70d PiperOrigin-RevId: 346126713 Source-Link: googleapis/googleapis@b8b2f8c PiperOrigin-RevId: 346120301 Source-Link: googleapis/googleapis@70c794b
1 parent 8f2ae7d commit e5380c5

36 files changed

Lines changed: 4329 additions & 4922 deletions

google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java

Lines changed: 188 additions & 2258 deletions
Large diffs are not rendered by default.

google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.google.analytics.admin.v1alpha;
1718

1819
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse;
@@ -42,7 +43,7 @@
4243
import java.util.List;
4344
import javax.annotation.Generated;
4445

45-
// AUTO-GENERATED DOCUMENTATION AND CLASS
46+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
4647
/**
4748
* Settings class to configure an instance of {@link AnalyticsAdminServiceClient}.
4849
*
@@ -60,23 +61,25 @@
6061
*
6162
* <p>For example, to set the total timeout of getAccount to 30 seconds:
6263
*
63-
* <pre>
64-
* <code>
64+
* <pre>{@code
6565
* AnalyticsAdminServiceSettings.Builder analyticsAdminServiceSettingsBuilder =
6666
* AnalyticsAdminServiceSettings.newBuilder();
6767
* analyticsAdminServiceSettingsBuilder
6868
* .getAccountSettings()
6969
* .setRetrySettings(
70-
* analyticsAdminServiceSettingsBuilder.getAccountSettings().getRetrySettings().toBuilder()
70+
* analyticsAdminServiceSettingsBuilder
71+
* .getAccountSettings()
72+
* .getRetrySettings()
73+
* .toBuilder()
7174
* .setTotalTimeout(Duration.ofSeconds(30))
7275
* .build());
73-
* AnalyticsAdminServiceSettings analyticsAdminServiceSettings = analyticsAdminServiceSettingsBuilder.build();
74-
* </code>
75-
* </pre>
76+
* AnalyticsAdminServiceSettings analyticsAdminServiceSettings =
77+
* analyticsAdminServiceSettingsBuilder.build();
78+
* }</pre>
7679
*/
77-
@Generated("by gapic-generator")
78-
@BetaApi
80+
@Generated("by gapic-generator-java")
7981
public class AnalyticsAdminServiceSettings extends ClientSettings<AnalyticsAdminServiceSettings> {
82+
8083
/** Returns the object with the settings used for calls to getAccount. */
8184
public UnaryCallSettings<GetAccountRequest, Account> getAccountSettings() {
8285
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAccountSettings();
@@ -426,18 +429,15 @@ protected AnalyticsAdminServiceSettings(Builder settingsBuilder) throws IOExcept
426429
/** Builder for AnalyticsAdminServiceSettings. */
427430
public static class Builder
428431
extends ClientSettings.Builder<AnalyticsAdminServiceSettings, Builder> {
432+
429433
protected Builder() throws IOException {
430-
this((ClientContext) null);
434+
this(((ClientContext) null));
431435
}
432436

433437
protected Builder(ClientContext clientContext) {
434438
super(AnalyticsAdminServiceStubSettings.newBuilder(clientContext));
435439
}
436440

437-
private static Builder createDefault() {
438-
return new Builder(AnalyticsAdminServiceStubSettings.newBuilder());
439-
}
440-
441441
protected Builder(AnalyticsAdminServiceSettings settings) {
442442
super(settings.getStubSettings().toBuilder());
443443
}
@@ -446,11 +446,15 @@ protected Builder(AnalyticsAdminServiceStubSettings.Builder stubSettings) {
446446
super(stubSettings);
447447
}
448448

449+
private static Builder createDefault() {
450+
return new Builder(AnalyticsAdminServiceStubSettings.newBuilder());
451+
}
452+
449453
public AnalyticsAdminServiceStubSettings.Builder getStubSettingsBuilder() {
450454
return ((AnalyticsAdminServiceStubSettings.Builder) getStubSettings());
451455
}
452456

453-
// NEXT_MAJOR_VER: remove 'throws Exception'
457+
// NEXT_MAJOR_VER: remove 'throws Exception'.
454458
/**
455459
* Applies the given settings updater function to all of the unary API methods in this service.
456460
*

google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -15,26 +15,15 @@
1515
*/
1616

1717
/**
18-
* A client to Google Analytics Admin API.
18+
* The interfaces provided are listed below, along with usage samples.
1919
*
20-
* <p>The interfaces provided are listed below, along with usage samples.
21-
*
22-
* <p>=========================== AnalyticsAdminServiceClient ===========================
20+
* <p>======================= AnalyticsAdminServiceClient =======================
2321
*
2422
* <p>Service Description: Service Interface for the Analytics Admin API (GA4).
2523
*
2624
* <p>Sample for AnalyticsAdminServiceClient:
27-
*
28-
* <pre>
29-
* <code>
30-
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
31-
* AccountName name = AccountName.of("[ACCOUNT]");
32-
* Account response = analyticsAdminServiceClient.getAccount(name);
33-
* }
34-
* </code>
35-
* </pre>
3625
*/
37-
@Generated("by gapic-generator")
26+
@Generated("by gapic-generator-java")
3827
package com.google.analytics.admin.v1alpha;
3928

4029
import javax.annotation.Generated;

google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.google.analytics.admin.v1alpha.stub;
1718

1819
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse;
@@ -98,20 +99,18 @@
9899
import com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest;
99100
import com.google.analytics.admin.v1alpha.UserLink;
100101
import com.google.analytics.admin.v1alpha.WebDataStream;
101-
import com.google.api.core.BetaApi;
102102
import com.google.api.gax.core.BackgroundResource;
103103
import com.google.api.gax.rpc.UnaryCallable;
104104
import com.google.protobuf.Empty;
105105
import javax.annotation.Generated;
106106

107-
// AUTO-GENERATED DOCUMENTATION AND CLASS
107+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
108108
/**
109-
* Base stub class for Google Analytics Admin API.
109+
* Base stub class for the AnalyticsAdminService service API.
110110
*
111111
* <p>This class is for advanced usage and reflects the underlying API directly.
112112
*/
113113
@Generated("by gapic-generator")
114-
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
115114
public abstract class AnalyticsAdminServiceStub implements BackgroundResource {
116115

117116
public UnaryCallable<GetAccountRequest, Account> getAccountCallable() {

0 commit comments

Comments
 (0)