@@ -16604,6 +16604,314 @@ public Assistants assistants() {
1660416604 */
1660516605 public class Assistants {
1660616606
16607+ /**
16608+ * Gets an Assistant.
16609+ *
16610+ * Create a request for the method "assistants.get".
16611+ *
16612+ * This request holds the parameters needed by the discoveryengine server. After setting any
16613+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
16614+ *
16615+ * @param name Required. Resource name of Assistant. Format: `projects/{project}/locations/{location}/collections/{
16616+ * collection}/engines/{engine}/assistants/{assistant}`
16617+ * @return the request
16618+ */
16619+ public Get get(java.lang.String name) throws java.io.IOException {
16620+ Get result = new Get(name);
16621+ initialize(result);
16622+ return result;
16623+ }
16624+
16625+ public class Get extends DiscoveryEngineRequest<com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1Assistant> {
16626+
16627+ private static final String REST_PATH = "v1/{+name}";
16628+
16629+ private final java.util.regex.Pattern NAME_PATTERN =
16630+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$");
16631+
16632+ /**
16633+ * Gets an Assistant.
16634+ *
16635+ * Create a request for the method "assistants.get".
16636+ *
16637+ * This request holds the parameters needed by the the discoveryengine server. After setting any
16638+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. <p>
16639+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
16640+ * must be called to initialize this instance immediately after invoking the constructor. </p>
16641+ *
16642+ * @param name Required. Resource name of Assistant. Format: `projects/{project}/locations/{location}/collections/{
16643+ * collection}/engines/{engine}/assistants/{assistant}`
16644+ * @since 1.13
16645+ */
16646+ protected Get(java.lang.String name) {
16647+ super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1Assistant.class);
16648+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
16649+ if (!getSuppressPatternChecks()) {
16650+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
16651+ "Parameter name must conform to the pattern " +
16652+ "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$");
16653+ }
16654+ }
16655+
16656+ @Override
16657+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
16658+ return super.executeUsingHead();
16659+ }
16660+
16661+ @Override
16662+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
16663+ return super.buildHttpRequestUsingHead();
16664+ }
16665+
16666+ @Override
16667+ public Get set$Xgafv(java.lang.String $Xgafv) {
16668+ return (Get) super.set$Xgafv($Xgafv);
16669+ }
16670+
16671+ @Override
16672+ public Get setAccessToken(java.lang.String accessToken) {
16673+ return (Get) super.setAccessToken(accessToken);
16674+ }
16675+
16676+ @Override
16677+ public Get setAlt(java.lang.String alt) {
16678+ return (Get) super.setAlt(alt);
16679+ }
16680+
16681+ @Override
16682+ public Get setCallback(java.lang.String callback) {
16683+ return (Get) super.setCallback(callback);
16684+ }
16685+
16686+ @Override
16687+ public Get setFields(java.lang.String fields) {
16688+ return (Get) super.setFields(fields);
16689+ }
16690+
16691+ @Override
16692+ public Get setKey(java.lang.String key) {
16693+ return (Get) super.setKey(key);
16694+ }
16695+
16696+ @Override
16697+ public Get setOauthToken(java.lang.String oauthToken) {
16698+ return (Get) super.setOauthToken(oauthToken);
16699+ }
16700+
16701+ @Override
16702+ public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
16703+ return (Get) super.setPrettyPrint(prettyPrint);
16704+ }
16705+
16706+ @Override
16707+ public Get setQuotaUser(java.lang.String quotaUser) {
16708+ return (Get) super.setQuotaUser(quotaUser);
16709+ }
16710+
16711+ @Override
16712+ public Get setUploadType(java.lang.String uploadType) {
16713+ return (Get) super.setUploadType(uploadType);
16714+ }
16715+
16716+ @Override
16717+ public Get setUploadProtocol(java.lang.String uploadProtocol) {
16718+ return (Get) super.setUploadProtocol(uploadProtocol);
16719+ }
16720+
16721+ /**
16722+ * Required. Resource name of Assistant. Format: `projects/{project}/locations/{locati
16723+ * on}/collections/{collection}/engines/{engine}/assistants/{assistant}`
16724+ */
16725+ @com.google.api.client.util.Key
16726+ private java.lang.String name;
16727+
16728+ /** Required. Resource name of Assistant. Format: `projects/{project}/locations/{location}/collections/
16729+ {collection}/engines/{engine}/assistants/{assistant}`
16730+ */
16731+ public java.lang.String getName() {
16732+ return name;
16733+ }
16734+
16735+ /**
16736+ * Required. Resource name of Assistant. Format: `projects/{project}/locations/{locati
16737+ * on}/collections/{collection}/engines/{engine}/assistants/{assistant}`
16738+ */
16739+ public Get setName(java.lang.String name) {
16740+ if (!getSuppressPatternChecks()) {
16741+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
16742+ "Parameter name must conform to the pattern " +
16743+ "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$");
16744+ }
16745+ this.name = name;
16746+ return this;
16747+ }
16748+
16749+ @Override
16750+ public Get set(String parameterName, Object value) {
16751+ return (Get) super.set(parameterName, value);
16752+ }
16753+ }
16754+ /**
16755+ * Updates an Assistant
16756+ *
16757+ * Create a request for the method "assistants.patch".
16758+ *
16759+ * This request holds the parameters needed by the discoveryengine server. After setting any
16760+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
16761+ *
16762+ * @param name Immutable. Resource name of the assistant. Format: `projects/{project}/locations/{location}/collecti
16763+ * ons/{collection}/engines/{engine}/assistants/{assistant}` It must be a UTF-8 encoded
16764+ * string with a length limit of 1024 characters.
16765+ * @param content the {@link com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1Assistant}
16766+ * @return the request
16767+ */
16768+ public Patch patch(java.lang.String name, com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1Assistant content) throws java.io.IOException {
16769+ Patch result = new Patch(name, content);
16770+ initialize(result);
16771+ return result;
16772+ }
16773+
16774+ public class Patch extends DiscoveryEngineRequest<com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1Assistant> {
16775+
16776+ private static final String REST_PATH = "v1/{+name}";
16777+
16778+ private final java.util.regex.Pattern NAME_PATTERN =
16779+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$");
16780+
16781+ /**
16782+ * Updates an Assistant
16783+ *
16784+ * Create a request for the method "assistants.patch".
16785+ *
16786+ * This request holds the parameters needed by the the discoveryengine server. After setting any
16787+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
16788+ * <p> {@link
16789+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
16790+ * be called to initialize this instance immediately after invoking the constructor. </p>
16791+ *
16792+ * @param name Immutable. Resource name of the assistant. Format: `projects/{project}/locations/{location}/collecti
16793+ * ons/{collection}/engines/{engine}/assistants/{assistant}` It must be a UTF-8 encoded
16794+ * string with a length limit of 1024 characters.
16795+ * @param content the {@link com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1Assistant}
16796+ * @since 1.13
16797+ */
16798+ protected Patch(java.lang.String name, com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1Assistant content) {
16799+ super(DiscoveryEngine.this, "PATCH", REST_PATH, content, com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1Assistant.class);
16800+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
16801+ if (!getSuppressPatternChecks()) {
16802+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
16803+ "Parameter name must conform to the pattern " +
16804+ "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$");
16805+ }
16806+ }
16807+
16808+ @Override
16809+ public Patch set$Xgafv(java.lang.String $Xgafv) {
16810+ return (Patch) super.set$Xgafv($Xgafv);
16811+ }
16812+
16813+ @Override
16814+ public Patch setAccessToken(java.lang.String accessToken) {
16815+ return (Patch) super.setAccessToken(accessToken);
16816+ }
16817+
16818+ @Override
16819+ public Patch setAlt(java.lang.String alt) {
16820+ return (Patch) super.setAlt(alt);
16821+ }
16822+
16823+ @Override
16824+ public Patch setCallback(java.lang.String callback) {
16825+ return (Patch) super.setCallback(callback);
16826+ }
16827+
16828+ @Override
16829+ public Patch setFields(java.lang.String fields) {
16830+ return (Patch) super.setFields(fields);
16831+ }
16832+
16833+ @Override
16834+ public Patch setKey(java.lang.String key) {
16835+ return (Patch) super.setKey(key);
16836+ }
16837+
16838+ @Override
16839+ public Patch setOauthToken(java.lang.String oauthToken) {
16840+ return (Patch) super.setOauthToken(oauthToken);
16841+ }
16842+
16843+ @Override
16844+ public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
16845+ return (Patch) super.setPrettyPrint(prettyPrint);
16846+ }
16847+
16848+ @Override
16849+ public Patch setQuotaUser(java.lang.String quotaUser) {
16850+ return (Patch) super.setQuotaUser(quotaUser);
16851+ }
16852+
16853+ @Override
16854+ public Patch setUploadType(java.lang.String uploadType) {
16855+ return (Patch) super.setUploadType(uploadType);
16856+ }
16857+
16858+ @Override
16859+ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
16860+ return (Patch) super.setUploadProtocol(uploadProtocol);
16861+ }
16862+
16863+ /**
16864+ * Immutable. Resource name of the assistant. Format: `projects/{project}/locations/{l
16865+ * ocation}/collections/{collection}/engines/{engine}/assistants/{assistant}` It must
16866+ * be a UTF-8 encoded string with a length limit of 1024 characters.
16867+ */
16868+ @com.google.api.client.util.Key
16869+ private java.lang.String name;
16870+
16871+ /** Immutable. Resource name of the assistant. Format: `projects/{project}/locations/{location}/collect
16872+ ions/{collection}/engines/{engine}/assistants/{assistant}` It must be a UTF-8 encoded string with a
16873+ length limit of 1024 characters.
16874+ */
16875+ public java.lang.String getName() {
16876+ return name;
16877+ }
16878+
16879+ /**
16880+ * Immutable. Resource name of the assistant. Format: `projects/{project}/locations/{l
16881+ * ocation}/collections/{collection}/engines/{engine}/assistants/{assistant}` It must
16882+ * be a UTF-8 encoded string with a length limit of 1024 characters.
16883+ */
16884+ public Patch setName(java.lang.String name) {
16885+ if (!getSuppressPatternChecks()) {
16886+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
16887+ "Parameter name must conform to the pattern " +
16888+ "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$");
16889+ }
16890+ this.name = name;
16891+ return this;
16892+ }
16893+
16894+ /** The list of fields to update. */
16895+ @com.google.api.client.util.Key
16896+ private String updateMask;
16897+
16898+ /** The list of fields to update.
16899+ */
16900+ public String getUpdateMask() {
16901+ return updateMask;
16902+ }
16903+
16904+ /** The list of fields to update. */
16905+ public Patch setUpdateMask(String updateMask) {
16906+ this.updateMask = updateMask;
16907+ return this;
16908+ }
16909+
16910+ @Override
16911+ public Patch set(String parameterName, Object value) {
16912+ return (Patch) super.set(parameterName, value);
16913+ }
16914+ }
1660716915 /**
1660816916 * Assists the user with a query in a streaming fashion.
1660916917 *
0 commit comments