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

[CHANGE ME] Re-generated to pick up changes from googleapis. #84

Merged
merged 2 commits into from Jul 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -20,7 +20,7 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-bigqueryreservation</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
</dependency>
```

Expand Down

Large diffs are not rendered by default.

Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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() {
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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() {
Expand All @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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>
Expand Down
Expand Up @@ -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>
Expand Down