Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
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 updateDataset to 30 seconds:
* <p>For example, to set the total timeout of getDataset to 30 seconds:
*
* <pre>
* <code>
* AutoMlSettings.Builder autoMlSettingsBuilder =
* AutoMlSettings.newBuilder();
* autoMlSettingsBuilder
* .updateDatasetSettings()
* .getDatasetSettings()
* .setRetrySettings(
* autoMlSettingsBuilder.updateDatasetSettings().getRetrySettings().toBuilder()
* autoMlSettingsBuilder.getDatasetSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* AutoMlSettings autoMlSettings = autoMlSettingsBuilder.build();
Expand All @@ -72,6 +72,32 @@
@Generated("by gapic-generator")
@BetaApi
public class AutoMlSettings extends ClientSettings<AutoMlSettings> {
/** Returns the object with the settings used for calls to deleteDataset. */
public UnaryCallSettings<DeleteDatasetRequest, Operation> deleteDatasetSettings() {
return ((AutoMlStubSettings) getStubSettings()).deleteDatasetSettings();
}

/** Returns the object with the settings used for calls to deleteDataset. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings<DeleteDatasetRequest, Empty, OperationMetadata>
deleteDatasetOperationSettings() {
return ((AutoMlStubSettings) getStubSettings()).deleteDatasetOperationSettings();
}

/** Returns the object with the settings used for calls to deleteModel. */
public UnaryCallSettings<DeleteModelRequest, Operation> deleteModelSettings() {
return ((AutoMlStubSettings) getStubSettings()).deleteModelSettings();
}

/** Returns the object with the settings used for calls to deleteModel. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings<DeleteModelRequest, Empty, OperationMetadata>
deleteModelOperationSettings() {
return ((AutoMlStubSettings) getStubSettings()).deleteModelOperationSettings();
}

/** Returns the object with the settings used for calls to createDataset. */
public UnaryCallSettings<CreateDatasetRequest, Operation> createDatasetSettings() {
return ((AutoMlStubSettings) getStubSettings()).createDatasetSettings();
Expand All @@ -85,11 +111,6 @@ public UnaryCallSettings<CreateDatasetRequest, Operation> createDatasetSettings(
return ((AutoMlStubSettings) getStubSettings()).createDatasetOperationSettings();
}

/** Returns the object with the settings used for calls to updateDataset. */
public UnaryCallSettings<UpdateDatasetRequest, Dataset> updateDatasetSettings() {
return ((AutoMlStubSettings) getStubSettings()).updateDatasetSettings();
}

/** Returns the object with the settings used for calls to getDataset. */
public UnaryCallSettings<GetDatasetRequest, Dataset> getDatasetSettings() {
return ((AutoMlStubSettings) getStubSettings()).getDatasetSettings();
Expand All @@ -101,17 +122,9 @@ public UnaryCallSettings<GetDatasetRequest, Dataset> getDatasetSettings() {
return ((AutoMlStubSettings) getStubSettings()).listDatasetsSettings();
}

/** Returns the object with the settings used for calls to deleteDataset. */
public UnaryCallSettings<DeleteDatasetRequest, Operation> deleteDatasetSettings() {
return ((AutoMlStubSettings) getStubSettings()).deleteDatasetSettings();
}

/** Returns the object with the settings used for calls to deleteDataset. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings<DeleteDatasetRequest, Empty, OperationMetadata>
deleteDatasetOperationSettings() {
return ((AutoMlStubSettings) getStubSettings()).deleteDatasetOperationSettings();
/** Returns the object with the settings used for calls to updateDataset. */
public UnaryCallSettings<UpdateDatasetRequest, Dataset> updateDatasetSettings() {
return ((AutoMlStubSettings) getStubSettings()).updateDatasetSettings();
}

/** Returns the object with the settings used for calls to importData. */
Expand Down Expand Up @@ -163,28 +176,15 @@ public UnaryCallSettings<GetModelRequest, Model> getModelSettings() {
return ((AutoMlStubSettings) getStubSettings()).getModelSettings();
}

/** Returns the object with the settings used for calls to updateModel. */
public UnaryCallSettings<UpdateModelRequest, Model> updateModelSettings() {
return ((AutoMlStubSettings) getStubSettings()).updateModelSettings();
}

/** Returns the object with the settings used for calls to listModels. */
public PagedCallSettings<ListModelsRequest, ListModelsResponse, ListModelsPagedResponse>
listModelsSettings() {
return ((AutoMlStubSettings) getStubSettings()).listModelsSettings();
}

/** Returns the object with the settings used for calls to deleteModel. */
public UnaryCallSettings<DeleteModelRequest, Operation> deleteModelSettings() {
return ((AutoMlStubSettings) getStubSettings()).deleteModelSettings();
}

/** Returns the object with the settings used for calls to deleteModel. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings<DeleteModelRequest, Empty, OperationMetadata>
deleteModelOperationSettings() {
return ((AutoMlStubSettings) getStubSettings()).deleteModelOperationSettings();
/** Returns the object with the settings used for calls to updateModel. */
public UnaryCallSettings<UpdateModelRequest, Model> updateModelSettings() {
return ((AutoMlStubSettings) getStubSettings()).updateModelSettings();
}

/** Returns the object with the settings used for calls to deployModel. */
Expand Down Expand Up @@ -337,6 +337,32 @@ public Builder applyToAllUnaryMethods(
return this;
}

/** Returns the builder for the settings used for calls to deleteDataset. */
public UnaryCallSettings.Builder<DeleteDatasetRequest, Operation> deleteDatasetSettings() {
return getStubSettingsBuilder().deleteDatasetSettings();
}

/** Returns the builder for the settings used for calls to deleteDataset. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder<DeleteDatasetRequest, Empty, OperationMetadata>
deleteDatasetOperationSettings() {
return getStubSettingsBuilder().deleteDatasetOperationSettings();
}

/** Returns the builder for the settings used for calls to deleteModel. */
public UnaryCallSettings.Builder<DeleteModelRequest, Operation> deleteModelSettings() {
return getStubSettingsBuilder().deleteModelSettings();
}

/** Returns the builder for the settings used for calls to deleteModel. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder<DeleteModelRequest, Empty, OperationMetadata>
deleteModelOperationSettings() {
return getStubSettingsBuilder().deleteModelOperationSettings();
}

/** Returns the builder for the settings used for calls to createDataset. */
public UnaryCallSettings.Builder<CreateDatasetRequest, Operation> createDatasetSettings() {
return getStubSettingsBuilder().createDatasetSettings();
Expand All @@ -350,11 +376,6 @@ public UnaryCallSettings.Builder<CreateDatasetRequest, Operation> createDatasetS
return getStubSettingsBuilder().createDatasetOperationSettings();
}

/** Returns the builder for the settings used for calls to updateDataset. */
public UnaryCallSettings.Builder<UpdateDatasetRequest, Dataset> updateDatasetSettings() {
return getStubSettingsBuilder().updateDatasetSettings();
}

/** Returns the builder for the settings used for calls to getDataset. */
public UnaryCallSettings.Builder<GetDatasetRequest, Dataset> getDatasetSettings() {
return getStubSettingsBuilder().getDatasetSettings();
Expand All @@ -367,17 +388,9 @@ public UnaryCallSettings.Builder<GetDatasetRequest, Dataset> getDatasetSettings(
return getStubSettingsBuilder().listDatasetsSettings();
}

/** Returns the builder for the settings used for calls to deleteDataset. */
public UnaryCallSettings.Builder<DeleteDatasetRequest, Operation> deleteDatasetSettings() {
return getStubSettingsBuilder().deleteDatasetSettings();
}

/** Returns the builder for the settings used for calls to deleteDataset. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder<DeleteDatasetRequest, Empty, OperationMetadata>
deleteDatasetOperationSettings() {
return getStubSettingsBuilder().deleteDatasetOperationSettings();
/** Returns the builder for the settings used for calls to updateDataset. */
public UnaryCallSettings.Builder<UpdateDatasetRequest, Dataset> updateDatasetSettings() {
return getStubSettingsBuilder().updateDatasetSettings();
}

/** Returns the builder for the settings used for calls to importData. */
Expand Down Expand Up @@ -430,28 +443,15 @@ public UnaryCallSettings.Builder<GetModelRequest, Model> getModelSettings() {
return getStubSettingsBuilder().getModelSettings();
}

/** Returns the builder for the settings used for calls to updateModel. */
public UnaryCallSettings.Builder<UpdateModelRequest, Model> updateModelSettings() {
return getStubSettingsBuilder().updateModelSettings();
}

/** Returns the builder for the settings used for calls to listModels. */
public PagedCallSettings.Builder<ListModelsRequest, ListModelsResponse, ListModelsPagedResponse>
listModelsSettings() {
return getStubSettingsBuilder().listModelsSettings();
}

/** Returns the builder for the settings used for calls to deleteModel. */
public UnaryCallSettings.Builder<DeleteModelRequest, Operation> deleteModelSettings() {
return getStubSettingsBuilder().deleteModelSettings();
}

/** Returns the builder for the settings used for calls to deleteModel. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder<DeleteModelRequest, Empty, OperationMetadata>
deleteModelOperationSettings() {
return getStubSettingsBuilder().deleteModelOperationSettings();
/** Returns the builder for the settings used for calls to updateModel. */
public UnaryCallSettings.Builder<UpdateModelRequest, Model> updateModelSettings() {
return getStubSettingsBuilder().updateModelSettings();
}

/** Returns the builder for the settings used for calls to deployModel. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,50 +19,49 @@
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>============ AutoMlClient ============
* <p>======================= PredictionServiceClient =======================
*
* <p>Service Description: AutoML Server API.
*
* <p>The resource names are assigned by the server. The server never reuses names that it has
* created after the resources with those names are deleted.
*
* <p>An ID of a resource is the last element of the item's resource name. For
* `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then the id for the item
* is `{dataset_id}`.
*
* <p>Currently the only supported `location_id` is "us-central1".
* <p>Service Description: AutoML Prediction API.
*
* <p>On any input that is documented to expect a string parameter in snake_case or kebab-case,
* either of those cases is accepted.
*
* <p>Sample for AutoMlClient:
* <p>Sample for PredictionServiceClient:
*
* <pre>
* <code>
* try (AutoMlClient autoMlClient = AutoMlClient.create()) {
* Dataset dataset = Dataset.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
* Dataset response = autoMlClient.updateDataset(dataset, updateMask);
* try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
* ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
* ExamplePayload payload = ExamplePayload.newBuilder().build();
* Map&lt;String, String&gt; params = new HashMap&lt;&gt;();
* PredictResponse response = predictionServiceClient.predict(name, payload, params);
* }
* </code>
* </pre>
*
* ======================= PredictionServiceClient =======================
* ============ AutoMlClient ============
*
* <p>Service Description: AutoML Prediction API.
* <p>Service Description: AutoML Server API.
*
* <p>The resource names are assigned by the server. The server never reuses names that it has
* created after the resources with those names are deleted.
*
* <p>An ID of a resource is the last element of the item's resource name. For
* `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then the id for the item
* is `{dataset_id}`.
*
* <p>Currently the only supported `location_id` is "us-central1".
*
* <p>On any input that is documented to expect a string parameter in snake_case or kebab-case,
* either of those cases is accepted.
*
* <p>Sample for PredictionServiceClient:
* <p>Sample for AutoMlClient:
*
* <pre>
* <code>
* try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
* ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
* ExamplePayload payload = ExamplePayload.newBuilder().build();
* Map&lt;String, String&gt; params = new HashMap&lt;&gt;();
* PredictResponse response = predictionServiceClient.predict(name, payload, params);
* try (AutoMlClient autoMlClient = AutoMlClient.create()) {
* DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
* Dataset response = autoMlClient.getDataset(name);
* }
* </code>
* </pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,26 @@ public OperationsStub getOperationsStub() {
throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
}

@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable<DeleteDatasetRequest, Empty, OperationMetadata>
deleteDatasetOperationCallable() {
throw new UnsupportedOperationException("Not implemented: deleteDatasetOperationCallable()");
}

public UnaryCallable<DeleteDatasetRequest, Operation> deleteDatasetCallable() {
throw new UnsupportedOperationException("Not implemented: deleteDatasetCallable()");
}

@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable<DeleteModelRequest, Empty, OperationMetadata>
deleteModelOperationCallable() {
throw new UnsupportedOperationException("Not implemented: deleteModelOperationCallable()");
}

public UnaryCallable<DeleteModelRequest, Operation> deleteModelCallable() {
throw new UnsupportedOperationException("Not implemented: deleteModelCallable()");
}

@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable<CreateDatasetRequest, Dataset, OperationMetadata>
createDatasetOperationCallable() {
Expand All @@ -79,10 +99,6 @@ public UnaryCallable<CreateDatasetRequest, Operation> createDatasetCallable() {
throw new UnsupportedOperationException("Not implemented: createDatasetCallable()");
}

public UnaryCallable<UpdateDatasetRequest, Dataset> updateDatasetCallable() {
throw new UnsupportedOperationException("Not implemented: updateDatasetCallable()");
}

public UnaryCallable<GetDatasetRequest, Dataset> getDatasetCallable() {
throw new UnsupportedOperationException("Not implemented: getDatasetCallable()");
}
Expand All @@ -95,14 +111,8 @@ public UnaryCallable<ListDatasetsRequest, ListDatasetsResponse> listDatasetsCall
throw new UnsupportedOperationException("Not implemented: listDatasetsCallable()");
}

@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable<DeleteDatasetRequest, Empty, OperationMetadata>
deleteDatasetOperationCallable() {
throw new UnsupportedOperationException("Not implemented: deleteDatasetOperationCallable()");
}

public UnaryCallable<DeleteDatasetRequest, Operation> deleteDatasetCallable() {
throw new UnsupportedOperationException("Not implemented: deleteDatasetCallable()");
public UnaryCallable<UpdateDatasetRequest, Dataset> updateDatasetCallable() {
throw new UnsupportedOperationException("Not implemented: updateDatasetCallable()");
}

@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
Expand Down Expand Up @@ -143,10 +153,6 @@ public UnaryCallable<GetModelRequest, Model> getModelCallable() {
throw new UnsupportedOperationException("Not implemented: getModelCallable()");
}

public UnaryCallable<UpdateModelRequest, Model> updateModelCallable() {
throw new UnsupportedOperationException("Not implemented: updateModelCallable()");
}

public UnaryCallable<ListModelsRequest, ListModelsPagedResponse> listModelsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listModelsPagedCallable()");
}
Expand All @@ -155,14 +161,8 @@ public UnaryCallable<ListModelsRequest, ListModelsResponse> listModelsCallable()
throw new UnsupportedOperationException("Not implemented: listModelsCallable()");
}

@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable<DeleteModelRequest, Empty, OperationMetadata>
deleteModelOperationCallable() {
throw new UnsupportedOperationException("Not implemented: deleteModelOperationCallable()");
}

public UnaryCallable<DeleteModelRequest, Operation> deleteModelCallable() {
throw new UnsupportedOperationException("Not implemented: deleteModelCallable()");
public UnaryCallable<UpdateModelRequest, Model> updateModelCallable() {
throw new UnsupportedOperationException("Not implemented: updateModelCallable()");
}

@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
Expand Down
Loading