@@ -811,7 +811,8 @@ public List set(String parameterName, Object value) {
811811 * This request holds the parameters needed by the aiplatform server. After setting any optional
812812 * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
813813 *
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}`
815816 * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
816817 * @return the request
817818 */
@@ -839,7 +840,8 @@ public class Patch extends AiplatformRequest<com.google.api.services.aiplatform.
839840 * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
840841 * be called to initialize this instance immediately after invoking the constructor. </p>
841842 *
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}`
843845 * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
844846 * @since 1.13
845847 */
@@ -908,17 +910,24 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
908910 return (Patch) super.setUploadProtocol(uploadProtocol);
909911 }
910912
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+ */
912917 @com.google.api.client.util.Key
913918 private java.lang.String name;
914919
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}`
916922 */
917923 public java.lang.String getName() {
918924 return name;
919925 }
920926
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+ */
922931 public Patch setName(java.lang.String name) {
923932 if (!getSuppressPatternChecks()) {
924933 com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
@@ -9873,7 +9882,8 @@ public List set(String parameterName, Object value) {
98739882 * This request holds the parameters needed by the aiplatform server. After setting any optional
98749883 * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
98759884 *
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}`
98779887 * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
98789888 * @return the request
98799889 */
@@ -9901,7 +9911,8 @@ public class Patch extends AiplatformRequest<com.google.api.services.aiplatform.
99019911 * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
99029912 * be called to initialize this instance immediately after invoking the constructor. </p>
99039913 *
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}`
99059916 * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
99069917 * @since 1.13
99079918 */
@@ -9970,17 +9981,24 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
99709981 return (Patch) super.setUploadProtocol(uploadProtocol);
99719982 }
99729983
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+ */
99749988 @com.google.api.client.util.Key
99759989 private java.lang.String name;
99769990
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}`
99789993 */
99799994 public java.lang.String getName() {
99809995 return name;
99819996 }
99829997
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+ */
998410002 public Patch setName(java.lang.String name) {
998510003 if (!getSuppressPatternChecks()) {
998610004 com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
@@ -78864,6 +78882,146 @@ public Query set(String parameterName, Object value) {
7886478882 return (Query) super.set(parameterName, value);
7886578883 }
7886678884 }
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+ }
7886779025
7886879026 /**
7886979027 * An accessor for creating requests from the Operations collection.
0 commit comments