@@ -52121,6 +52121,208 @@ public InvokeRequest set(String parameterName, Object value) {
5212152121
5212252122 }
5212352123 }
52124+ /**
52125+ * An accessor for creating requests from the Google collection.
52126+ *
52127+ * <p>The typical use is:</p>
52128+ * <pre>
52129+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
52130+ * {@code Aiplatform.Google.List request = aiplatform.google().list(parameters ...)}
52131+ * </pre>
52132+ *
52133+ * @return the resource collection
52134+ */
52135+ public Google google() {
52136+ return new Google();
52137+ }
52138+
52139+ /**
52140+ * The "google" collection of methods.
52141+ */
52142+ public class Google {
52143+
52144+ /**
52145+ * An accessor for creating requests from the Science collection.
52146+ *
52147+ * <p>The typical use is:</p>
52148+ * <pre>
52149+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
52150+ * {@code Aiplatform.Science.List request = aiplatform.science().list(parameters ...)}
52151+ * </pre>
52152+ *
52153+ * @return the resource collection
52154+ */
52155+ public Science science() {
52156+ return new Science();
52157+ }
52158+
52159+ /**
52160+ * The "science" collection of methods.
52161+ */
52162+ public class Science {
52163+
52164+ /**
52165+ * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method,
52166+ * invoke_route_prefix must be set to allow the paths that will be specified in the request.
52167+ *
52168+ * Create a request for the method "science.inference".
52169+ *
52170+ * This request holds the parameters needed by the aiplatform server. After setting any optional
52171+ * parameters, call the {@link Inference#execute()} method to invoke the remote operation.
52172+ *
52173+ * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format:
52174+ * `projects/{project}/locations/{location}/endpoints/{endpoint}`
52175+ * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody}
52176+ * @return the request
52177+ */
52178+ public Inference inference(java.lang.String endpoint, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody content) throws java.io.IOException {
52179+ Inference result = new Inference(endpoint, content);
52180+ initialize(result);
52181+ return result;
52182+ }
52183+
52184+ public class Inference extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody> {
52185+
52186+ private static final String REST_PATH = "v1/{+endpoint}/science/inference";
52187+
52188+ private final java.util.regex.Pattern ENDPOINT_PATTERN =
52189+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/google$");
52190+
52191+ /**
52192+ * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this
52193+ * method, invoke_route_prefix must be set to allow the paths that will be specified in the
52194+ * request.
52195+ *
52196+ * Create a request for the method "science.inference".
52197+ *
52198+ * This request holds the parameters needed by the the aiplatform server. After setting any
52199+ * optional parameters, call the {@link Inference#execute()} method to invoke the remote
52200+ * operation. <p> {@link
52201+ * Inference#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
52202+ * must be called to initialize this instance immediately after invoking the constructor. </p>
52203+ *
52204+ * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format:
52205+ * `projects/{project}/locations/{location}/endpoints/{endpoint}`
52206+ * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody}
52207+ * @since 1.13
52208+ */
52209+ protected Inference(java.lang.String endpoint, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody content) {
52210+ super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody.class);
52211+ this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified.");
52212+ if (!getSuppressPatternChecks()) {
52213+ com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(),
52214+ "Parameter endpoint must conform to the pattern " +
52215+ "^projects/[^/]+/locations/[^/]+/endpoints/google$");
52216+ }
52217+ }
52218+
52219+ @Override
52220+ public Inference set$Xgafv(java.lang.String $Xgafv) {
52221+ return (Inference) super.set$Xgafv($Xgafv);
52222+ }
52223+
52224+ @Override
52225+ public Inference setAccessToken(java.lang.String accessToken) {
52226+ return (Inference) super.setAccessToken(accessToken);
52227+ }
52228+
52229+ @Override
52230+ public Inference setAlt(java.lang.String alt) {
52231+ return (Inference) super.setAlt(alt);
52232+ }
52233+
52234+ @Override
52235+ public Inference setCallback(java.lang.String callback) {
52236+ return (Inference) super.setCallback(callback);
52237+ }
52238+
52239+ @Override
52240+ public Inference setFields(java.lang.String fields) {
52241+ return (Inference) super.setFields(fields);
52242+ }
52243+
52244+ @Override
52245+ public Inference setKey(java.lang.String key) {
52246+ return (Inference) super.setKey(key);
52247+ }
52248+
52249+ @Override
52250+ public Inference setOauthToken(java.lang.String oauthToken) {
52251+ return (Inference) super.setOauthToken(oauthToken);
52252+ }
52253+
52254+ @Override
52255+ public Inference setPrettyPrint(java.lang.Boolean prettyPrint) {
52256+ return (Inference) super.setPrettyPrint(prettyPrint);
52257+ }
52258+
52259+ @Override
52260+ public Inference setQuotaUser(java.lang.String quotaUser) {
52261+ return (Inference) super.setQuotaUser(quotaUser);
52262+ }
52263+
52264+ @Override
52265+ public Inference setUploadType(java.lang.String uploadType) {
52266+ return (Inference) super.setUploadType(uploadType);
52267+ }
52268+
52269+ @Override
52270+ public Inference setUploadProtocol(java.lang.String uploadProtocol) {
52271+ return (Inference) super.setUploadProtocol(uploadProtocol);
52272+ }
52273+
52274+ /**
52275+ * Required. The name of the Endpoint requested to serve the prediction. Format:
52276+ * `projects/{project}/locations/{location}/endpoints/{endpoint}`
52277+ */
52278+ @com.google.api.client.util.Key
52279+ private java.lang.String endpoint;
52280+
52281+ /** Required. The name of the Endpoint requested to serve the prediction. Format:
52282+ `projects/{project}/locations/{location}/endpoints/{endpoint}`
52283+ */
52284+ public java.lang.String getEndpoint() {
52285+ return endpoint;
52286+ }
52287+
52288+ /**
52289+ * Required. The name of the Endpoint requested to serve the prediction. Format:
52290+ * `projects/{project}/locations/{location}/endpoints/{endpoint}`
52291+ */
52292+ public Inference setEndpoint(java.lang.String endpoint) {
52293+ if (!getSuppressPatternChecks()) {
52294+ com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(),
52295+ "Parameter endpoint must conform to the pattern " +
52296+ "^projects/[^/]+/locations/[^/]+/endpoints/google$");
52297+ }
52298+ this.endpoint = endpoint;
52299+ return this;
52300+ }
52301+
52302+ /** ID of the DeployedModel that serves the invoke request. */
52303+ @com.google.api.client.util.Key
52304+ private java.lang.String deployedModelId;
52305+
52306+ /** ID of the DeployedModel that serves the invoke request.
52307+ */
52308+ public java.lang.String getDeployedModelId() {
52309+ return deployedModelId;
52310+ }
52311+
52312+ /** ID of the DeployedModel that serves the invoke request. */
52313+ public Inference setDeployedModelId(java.lang.String deployedModelId) {
52314+ this.deployedModelId = deployedModelId;
52315+ return this;
52316+ }
52317+
52318+ @Override
52319+ public Inference set(String parameterName, Object value) {
52320+ return (Inference) super.set(parameterName, value);
52321+ }
52322+ }
52323+
52324+ }
52325+ }
5212452326 /**
5212552327 * An accessor for creating requests from the Invoke collection.
5212652328 *
0 commit comments