Skip to content
Permalink
Browse files
feat: proto changes (#84)
* changes without context

        autosynth cannot find the source of changes triggered by earlier changes in this
        repository, or by version upgrades to tools such as linters.

* fix: migrate bq/reservation/v1 to grpc_service_config

PiperOrigin-RevId: 320275638

Source-Author: Google APIs <noreply@google.com>
Source-Date: Wed Jul 8 15:15:28 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 907a15ffee603c0bb8c43eac627611d381cd6682
Source-Link: googleapis/googleapis@907a15f
  • Loading branch information
yoshi-automation committed Jul 9, 2020
1 parent c5a00cd commit f154e788cbf09fe6c61bcd1b4be55a206c9d021f

Large diffs are not rendered by default.

@@ -53,16 +53,16 @@
* <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 deleteReservation to 30 seconds:
* <p>For example, to set the total timeout of createReservation to 30 seconds:
*
* <pre>
* <code>
* ReservationServiceSettings.Builder reservationServiceSettingsBuilder =
* ReservationServiceSettings.newBuilder();
* reservationServiceSettingsBuilder
* .deleteReservationSettings()
* .createReservationSettings()
* .setRetrySettings(
* reservationServiceSettingsBuilder.deleteReservationSettings().getRetrySettings().toBuilder()
* reservationServiceSettingsBuilder.createReservationSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ReservationServiceSettings reservationServiceSettings = reservationServiceSettingsBuilder.build();
@@ -72,22 +72,6 @@
@Generated("by gapic-generator")
@BetaApi
public class ReservationServiceSettings extends ClientSettings<ReservationServiceSettings> {
/** Returns the object with the settings used for calls to deleteReservation. */
public UnaryCallSettings<DeleteReservationRequest, Empty> deleteReservationSettings() {
return ((ReservationServiceStubSettings) getStubSettings()).deleteReservationSettings();
}

/** Returns the object with the settings used for calls to deleteCapacityCommitment. */
public UnaryCallSettings<DeleteCapacityCommitmentRequest, Empty>
deleteCapacityCommitmentSettings() {
return ((ReservationServiceStubSettings) getStubSettings()).deleteCapacityCommitmentSettings();
}

/** Returns the object with the settings used for calls to deleteAssignment. */
public UnaryCallSettings<DeleteAssignmentRequest, Empty> deleteAssignmentSettings() {
return ((ReservationServiceStubSettings) getStubSettings()).deleteAssignmentSettings();
}

/** Returns the object with the settings used for calls to createReservation. */
public UnaryCallSettings<CreateReservationRequest, Reservation> createReservationSettings() {
return ((ReservationServiceStubSettings) getStubSettings()).createReservationSettings();
@@ -105,6 +89,11 @@ public UnaryCallSettings<GetReservationRequest, Reservation> getReservationSetti
return ((ReservationServiceStubSettings) getStubSettings()).getReservationSettings();
}

/** Returns the object with the settings used for calls to deleteReservation. */
public UnaryCallSettings<DeleteReservationRequest, Empty> deleteReservationSettings() {
return ((ReservationServiceStubSettings) getStubSettings()).deleteReservationSettings();
}

/** Returns the object with the settings used for calls to updateReservation. */
public UnaryCallSettings<UpdateReservationRequest, Reservation> updateReservationSettings() {
return ((ReservationServiceStubSettings) getStubSettings()).updateReservationSettings();
@@ -131,6 +120,12 @@ public UnaryCallSettings<UpdateReservationRequest, Reservation> updateReservatio
return ((ReservationServiceStubSettings) getStubSettings()).getCapacityCommitmentSettings();
}

/** Returns the object with the settings used for calls to deleteCapacityCommitment. */
public UnaryCallSettings<DeleteCapacityCommitmentRequest, Empty>
deleteCapacityCommitmentSettings() {
return ((ReservationServiceStubSettings) getStubSettings()).deleteCapacityCommitmentSettings();
}

/** Returns the object with the settings used for calls to updateCapacityCommitment. */
public UnaryCallSettings<UpdateCapacityCommitmentRequest, CapacityCommitment>
updateCapacityCommitmentSettings() {
@@ -161,6 +156,11 @@ public UnaryCallSettings<CreateAssignmentRequest, Assignment> createAssignmentSe
return ((ReservationServiceStubSettings) getStubSettings()).listAssignmentsSettings();
}

/** Returns the object with the settings used for calls to deleteAssignment. */
public UnaryCallSettings<DeleteAssignmentRequest, Empty> deleteAssignmentSettings() {
return ((ReservationServiceStubSettings) getStubSettings()).deleteAssignmentSettings();
}

/** Returns the object with the settings used for calls to searchAssignments. */
public PagedCallSettings<
SearchAssignmentsRequest, SearchAssignmentsResponse, SearchAssignmentsPagedResponse>
@@ -281,22 +281,6 @@ public Builder applyToAllUnaryMethods(
return this;
}

/** Returns the builder for the settings used for calls to deleteReservation. */
public UnaryCallSettings.Builder<DeleteReservationRequest, Empty> deleteReservationSettings() {
return getStubSettingsBuilder().deleteReservationSettings();
}

/** Returns the builder for the settings used for calls to deleteCapacityCommitment. */
public UnaryCallSettings.Builder<DeleteCapacityCommitmentRequest, Empty>
deleteCapacityCommitmentSettings() {
return getStubSettingsBuilder().deleteCapacityCommitmentSettings();
}

/** Returns the builder for the settings used for calls to deleteAssignment. */
public UnaryCallSettings.Builder<DeleteAssignmentRequest, Empty> deleteAssignmentSettings() {
return getStubSettingsBuilder().deleteAssignmentSettings();
}

/** Returns the builder for the settings used for calls to createReservation. */
public UnaryCallSettings.Builder<CreateReservationRequest, Reservation>
createReservationSettings() {
@@ -315,6 +299,11 @@ public UnaryCallSettings.Builder<GetReservationRequest, Reservation> getReservat
return getStubSettingsBuilder().getReservationSettings();
}

/** Returns the builder for the settings used for calls to deleteReservation. */
public UnaryCallSettings.Builder<DeleteReservationRequest, Empty> deleteReservationSettings() {
return getStubSettingsBuilder().deleteReservationSettings();
}

/** Returns the builder for the settings used for calls to updateReservation. */
public UnaryCallSettings.Builder<UpdateReservationRequest, Reservation>
updateReservationSettings() {
@@ -342,6 +331,12 @@ public UnaryCallSettings.Builder<GetReservationRequest, Reservation> getReservat
return getStubSettingsBuilder().getCapacityCommitmentSettings();
}

/** Returns the builder for the settings used for calls to deleteCapacityCommitment. */
public UnaryCallSettings.Builder<DeleteCapacityCommitmentRequest, Empty>
deleteCapacityCommitmentSettings() {
return getStubSettingsBuilder().deleteCapacityCommitmentSettings();
}

/** Returns the builder for the settings used for calls to updateCapacityCommitment. */
public UnaryCallSettings.Builder<UpdateCapacityCommitmentRequest, CapacityCommitment>
updateCapacityCommitmentSettings() {
@@ -374,6 +369,11 @@ public UnaryCallSettings.Builder<GetReservationRequest, Reservation> getReservat
return getStubSettingsBuilder().listAssignmentsSettings();
}

/** Returns the builder for the settings used for calls to deleteAssignment. */
public UnaryCallSettings.Builder<DeleteAssignmentRequest, Empty> deleteAssignmentSettings() {
return getStubSettingsBuilder().deleteAssignmentSettings();
}

/** Returns the builder for the settings used for calls to searchAssignments. */
public PagedCallSettings.Builder<
SearchAssignmentsRequest, SearchAssignmentsResponse, SearchAssignmentsPagedResponse>
@@ -40,8 +40,10 @@
* <pre>
* <code>
* try (ReservationServiceClient reservationServiceClient = ReservationServiceClient.create()) {
* ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]");
* reservationServiceClient.deleteReservation(name);
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Reservation reservation = Reservation.newBuilder().build();
* String reservationId = "";
* Reservation response = reservationServiceClient.createReservation(parent, reservation, reservationId);
* }
* </code>
* </pre>

0 comments on commit f154e78

Please sign in to comment.