Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
chore: migrate to microgenerator (#378)
Browse files Browse the repository at this point in the history
* chore: Remove spurious build warnings by deleting--include_source_info from .bazelrc

Committer: @miraleung
PiperOrigin-RevId: 344134135

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Nov 24 14:38:21 2020 -0800
Source-Repo: googleapis/googleapis
Source-Sha: b11a87f3b54be3a5e42c15020ee1e0781f86da90
Source-Link: googleapis/googleapis@b11a87f

* chore: migrate java-monitoring to the Java microgenerator

Committer: @miraleung
PiperOrigin-RevId: 344845099

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Nov 30 10:51:26 2020 -0800
Source-Repo: googleapis/googleapis
Source-Sha: d04af09f7622b0a6a07497237b17fc9f987cb2ad
Source-Link: googleapis/googleapis@d04af09

* chore: Undo removal of --include_source_info from .bazelrc

Committer: @miraleung
PiperOrigin-RevId: 345067549

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Dec 1 11:49:14 2020 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 8cfc6c874574b649b4524a4ef6a0651533325a84
Source-Link: googleapis/googleapis@8cfc6c8

* fix: Update gapic-generator-java to 0.0.7

Committer: @miraleung
PiperOrigin-RevId: 345476969

Source-Author: Google APIs <noreply@google.com>
Source-Date: Thu Dec 3 10:07:32 2020 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 7be2c821dd88109038c55c89f7dd48f092eeab9d
Source-Link: googleapis/googleapis@7be2c82

* chore: update gapic-generator-java to 0.0.8

Committer: @miraleung
PiperOrigin-RevId: 346126713

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Dec 7 10:39:38 2020 -0800
Source-Repo: googleapis/googleapis
Source-Sha: b8b2f8c288cec1f673bf10aa5008819c1576bf2e
Source-Link: googleapis/googleapis@b8b2f8c

* chore: update gapic-generator-java to 0.0.9

Committer: @miraleung
PiperOrigin-RevId: 346372957

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Dec 8 11:37:30 2020 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 857f70daef9f4c38f042fb3dfb7b8423ae18fd19
Source-Link: googleapis/googleapis@857f70d

* chore: restore resource names

* Update google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java

Co-authored-by: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>

* chore: format files

Co-authored-by: Jeff Ching <chingor@google.com>
Co-authored-by: Neenu Shaji <Neenu1995@users.noreply.github.com>
Co-authored-by: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Co-authored-by: Neenu1995 <neenushaji@google.com>
  • Loading branch information
5 people committed Jan 28, 2021
1 parent 4e992be commit 3945bac
Show file tree
Hide file tree
Showing 70 changed files with 7,208 additions and 6,541 deletions.

Large diffs are not rendered by default.

Expand Up @@ -5,14 +5,15 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.cloud.monitoring.v3;

import static com.google.cloud.monitoring.v3.AlertPolicyServiceClient.ListAlertPoliciesPagedResponse;
Expand Down Expand Up @@ -41,7 +42,7 @@
import java.util.List;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link AlertPolicyServiceClient}.
*
Expand All @@ -58,22 +59,25 @@
*
* <p>For example, to set the total timeout of getAlertPolicy to 30 seconds:
*
* <pre>
* <code>
* <pre>{@code
* AlertPolicyServiceSettings.Builder alertPolicyServiceSettingsBuilder =
* AlertPolicyServiceSettings.newBuilder();
* alertPolicyServiceSettingsBuilder
* .getAlertPolicySettings()
* .setRetrySettings(
* alertPolicyServiceSettingsBuilder.getAlertPolicySettings().getRetrySettings().toBuilder()
* alertPolicyServiceSettingsBuilder
* .getAlertPolicySettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* AlertPolicyServiceSettings alertPolicyServiceSettings = alertPolicyServiceSettingsBuilder.build();
* </code>
* </pre>
* AlertPolicyServiceSettings alertPolicyServiceSettings =
* alertPolicyServiceSettingsBuilder.build();
* }</pre>
*/
@Generated("by gapic-generator")
@Generated("by gapic-generator-java")
public class AlertPolicyServiceSettings extends ClientSettings<AlertPolicyServiceSettings> {

/** Returns the object with the settings used for calls to listAlertPolicies. */
public PagedCallSettings<
ListAlertPoliciesRequest, ListAlertPoliciesResponse, ListAlertPoliciesPagedResponse>
Expand Down Expand Up @@ -161,18 +165,15 @@ protected AlertPolicyServiceSettings(Builder settingsBuilder) throws IOException

/** Builder for AlertPolicyServiceSettings. */
public static class Builder extends ClientSettings.Builder<AlertPolicyServiceSettings, Builder> {

protected Builder() throws IOException {
this((ClientContext) null);
this(((ClientContext) null));
}

protected Builder(ClientContext clientContext) {
super(AlertPolicyServiceStubSettings.newBuilder(clientContext));
}

private static Builder createDefault() {
return new Builder(AlertPolicyServiceStubSettings.newBuilder());
}

protected Builder(AlertPolicyServiceSettings settings) {
super(settings.getStubSettings().toBuilder());
}
Expand All @@ -181,11 +182,15 @@ protected Builder(AlertPolicyServiceStubSettings.Builder stubSettings) {
super(stubSettings);
}

private static Builder createDefault() {
return new Builder(AlertPolicyServiceStubSettings.newBuilder());
}

public AlertPolicyServiceStubSettings.Builder getStubSettingsBuilder() {
return ((AlertPolicyServiceStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'
// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
Expand Down

0 comments on commit 3945bac

Please sign in to comment.