@@ -811,7 +811,8 @@ public List set(String parameterName, Object value) {
811
811
* This request holds the parameters needed by the aiplatform server. After setting any optional
812
812
* parameters, call the {@link Patch#execute()} method to invoke the remote operation.
813
813
*
814
- * @param name Output only. Identifier. The resource name of the Dataset.
814
+ * @param name Output only. Identifier. The resource name of the Dataset. Format:
815
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
815
816
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
816
817
* @return the request
817
818
*/
@@ -839,7 +840,8 @@ public class Patch extends AiplatformRequest<com.google.api.services.aiplatform.
839
840
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
840
841
* be called to initialize this instance immediately after invoking the constructor. </p>
841
842
*
842
- * @param name Output only. Identifier. The resource name of the Dataset.
843
+ * @param name Output only. Identifier. The resource name of the Dataset. Format:
844
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
843
845
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
844
846
* @since 1.13
845
847
*/
@@ -908,17 +910,24 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
908
910
return (Patch) super.setUploadProtocol(uploadProtocol);
909
911
}
910
912
911
- /** Output only. Identifier. The resource name of the Dataset. */
913
+ /**
914
+ * Output only. Identifier. The resource name of the Dataset. Format:
915
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
916
+ */
912
917
@com.google.api.client.util.Key
913
918
private java.lang.String name;
914
919
915
- /** Output only. Identifier. The resource name of the Dataset.
920
+ /** Output only. Identifier. The resource name of the Dataset. Format:
921
+ `projects/{project}/locations/{location}/datasets/{dataset}`
916
922
*/
917
923
public java.lang.String getName() {
918
924
return name;
919
925
}
920
926
921
- /** Output only. Identifier. The resource name of the Dataset. */
927
+ /**
928
+ * Output only. Identifier. The resource name of the Dataset. Format:
929
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
930
+ */
922
931
public Patch setName(java.lang.String name) {
923
932
if (!getSuppressPatternChecks()) {
924
933
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
@@ -9873,7 +9882,8 @@ public List set(String parameterName, Object value) {
9873
9882
* This request holds the parameters needed by the aiplatform server. After setting any optional
9874
9883
* parameters, call the {@link Patch#execute()} method to invoke the remote operation.
9875
9884
*
9876
- * @param name Output only. Identifier. The resource name of the Dataset.
9885
+ * @param name Output only. Identifier. The resource name of the Dataset. Format:
9886
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
9877
9887
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
9878
9888
* @return the request
9879
9889
*/
@@ -9901,7 +9911,8 @@ public class Patch extends AiplatformRequest<com.google.api.services.aiplatform.
9901
9911
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
9902
9912
* be called to initialize this instance immediately after invoking the constructor. </p>
9903
9913
*
9904
- * @param name Output only. Identifier. The resource name of the Dataset.
9914
+ * @param name Output only. Identifier. The resource name of the Dataset. Format:
9915
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
9905
9916
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
9906
9917
* @since 1.13
9907
9918
*/
@@ -9970,17 +9981,24 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
9970
9981
return (Patch) super.setUploadProtocol(uploadProtocol);
9971
9982
}
9972
9983
9973
- /** Output only. Identifier. The resource name of the Dataset. */
9984
+ /**
9985
+ * Output only. Identifier. The resource name of the Dataset. Format:
9986
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
9987
+ */
9974
9988
@com.google.api.client.util.Key
9975
9989
private java.lang.String name;
9976
9990
9977
- /** Output only. Identifier. The resource name of the Dataset.
9991
+ /** Output only. Identifier. The resource name of the Dataset. Format:
9992
+ `projects/{project}/locations/{location}/datasets/{dataset}`
9978
9993
*/
9979
9994
public java.lang.String getName() {
9980
9995
return name;
9981
9996
}
9982
9997
9983
- /** Output only. Identifier. The resource name of the Dataset. */
9998
+ /**
9999
+ * Output only. Identifier. The resource name of the Dataset. Format:
10000
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
10001
+ */
9984
10002
public Patch setName(java.lang.String name) {
9985
10003
if (!getSuppressPatternChecks()) {
9986
10004
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
@@ -78864,6 +78882,146 @@ public Query set(String parameterName, Object value) {
78864
78882
return (Query) super.set(parameterName, value);
78865
78883
}
78866
78884
}
78885
+ /**
78886
+ * Streams queries using a reasoning engine.
78887
+ *
78888
+ * Create a request for the method "reasoningEngines.streamQuery".
78889
+ *
78890
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
78891
+ * parameters, call the {@link StreamQuery#execute()} method to invoke the remote operation.
78892
+ *
78893
+ * @param name Required. The name of the ReasoningEngine resource to use. Format:
78894
+ * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
78895
+ * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest}
78896
+ * @return the request
78897
+ */
78898
+ public StreamQuery streamQuery(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest content) throws java.io.IOException {
78899
+ StreamQuery result = new StreamQuery(name, content);
78900
+ initialize(result);
78901
+ return result;
78902
+ }
78903
+
78904
+ public class StreamQuery extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody> {
78905
+
78906
+ private static final String REST_PATH = "v1/{+name}:streamQuery";
78907
+
78908
+ private final java.util.regex.Pattern NAME_PATTERN =
78909
+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$");
78910
+
78911
+ /**
78912
+ * Streams queries using a reasoning engine.
78913
+ *
78914
+ * Create a request for the method "reasoningEngines.streamQuery".
78915
+ *
78916
+ * This request holds the parameters needed by the the aiplatform server. After setting any
78917
+ * optional parameters, call the {@link StreamQuery#execute()} method to invoke the remote
78918
+ * operation. <p> {@link
78919
+ * StreamQuery#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
78920
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
78921
+ *
78922
+ * @param name Required. The name of the ReasoningEngine resource to use. Format:
78923
+ * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
78924
+ * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest}
78925
+ * @since 1.13
78926
+ */
78927
+ protected StreamQuery(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest content) {
78928
+ super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody.class);
78929
+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
78930
+ if (!getSuppressPatternChecks()) {
78931
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
78932
+ "Parameter name must conform to the pattern " +
78933
+ "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$");
78934
+ }
78935
+ }
78936
+
78937
+ @Override
78938
+ public StreamQuery set$Xgafv(java.lang.String $Xgafv) {
78939
+ return (StreamQuery) super.set$Xgafv($Xgafv);
78940
+ }
78941
+
78942
+ @Override
78943
+ public StreamQuery setAccessToken(java.lang.String accessToken) {
78944
+ return (StreamQuery) super.setAccessToken(accessToken);
78945
+ }
78946
+
78947
+ @Override
78948
+ public StreamQuery setAlt(java.lang.String alt) {
78949
+ return (StreamQuery) super.setAlt(alt);
78950
+ }
78951
+
78952
+ @Override
78953
+ public StreamQuery setCallback(java.lang.String callback) {
78954
+ return (StreamQuery) super.setCallback(callback);
78955
+ }
78956
+
78957
+ @Override
78958
+ public StreamQuery setFields(java.lang.String fields) {
78959
+ return (StreamQuery) super.setFields(fields);
78960
+ }
78961
+
78962
+ @Override
78963
+ public StreamQuery setKey(java.lang.String key) {
78964
+ return (StreamQuery) super.setKey(key);
78965
+ }
78966
+
78967
+ @Override
78968
+ public StreamQuery setOauthToken(java.lang.String oauthToken) {
78969
+ return (StreamQuery) super.setOauthToken(oauthToken);
78970
+ }
78971
+
78972
+ @Override
78973
+ public StreamQuery setPrettyPrint(java.lang.Boolean prettyPrint) {
78974
+ return (StreamQuery) super.setPrettyPrint(prettyPrint);
78975
+ }
78976
+
78977
+ @Override
78978
+ public StreamQuery setQuotaUser(java.lang.String quotaUser) {
78979
+ return (StreamQuery) super.setQuotaUser(quotaUser);
78980
+ }
78981
+
78982
+ @Override
78983
+ public StreamQuery setUploadType(java.lang.String uploadType) {
78984
+ return (StreamQuery) super.setUploadType(uploadType);
78985
+ }
78986
+
78987
+ @Override
78988
+ public StreamQuery setUploadProtocol(java.lang.String uploadProtocol) {
78989
+ return (StreamQuery) super.setUploadProtocol(uploadProtocol);
78990
+ }
78991
+
78992
+ /**
78993
+ * Required. The name of the ReasoningEngine resource to use. Format:
78994
+ * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
78995
+ */
78996
+ @com.google.api.client.util.Key
78997
+ private java.lang.String name;
78998
+
78999
+ /** Required. The name of the ReasoningEngine resource to use. Format:
79000
+ `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
79001
+ */
79002
+ public java.lang.String getName() {
79003
+ return name;
79004
+ }
79005
+
79006
+ /**
79007
+ * Required. The name of the ReasoningEngine resource to use. Format:
79008
+ * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
79009
+ */
79010
+ public StreamQuery setName(java.lang.String name) {
79011
+ if (!getSuppressPatternChecks()) {
79012
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
79013
+ "Parameter name must conform to the pattern " +
79014
+ "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$");
79015
+ }
79016
+ this.name = name;
79017
+ return this;
79018
+ }
79019
+
79020
+ @Override
79021
+ public StreamQuery set(String parameterName, Object value) {
79022
+ return (StreamQuery) super.set(parameterName, value);
79023
+ }
79024
+ }
78867
79025
78868
79026
/**
78869
79027
* An accessor for creating requests from the Operations collection.
0 commit comments