{@link + * BatchDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent branch resource name, such as `projects/{project}/locations/{location}`. + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest} + * @since 1.13 + */ + protected BatchDelete(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest content) { + super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1alpha.model.GoogleProtobufEmpty.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public BatchDelete set$Xgafv(java.lang.String $Xgafv) { + return (BatchDelete) super.set$Xgafv($Xgafv); + } + + @Override + public BatchDelete setAccessToken(java.lang.String accessToken) { + return (BatchDelete) super.setAccessToken(accessToken); + } + + @Override + public BatchDelete setAlt(java.lang.String alt) { + return (BatchDelete) super.setAlt(alt); + } + + @Override + public BatchDelete setCallback(java.lang.String callback) { + return (BatchDelete) super.setCallback(callback); + } + + @Override + public BatchDelete setFields(java.lang.String fields) { + return (BatchDelete) super.setFields(fields); + } + + @Override + public BatchDelete setKey(java.lang.String key) { + return (BatchDelete) super.setKey(key); + } + + @Override + public BatchDelete setOauthToken(java.lang.String oauthToken) { + return (BatchDelete) super.setOauthToken(oauthToken); + } + + @Override + public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchDelete) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchDelete setQuotaUser(java.lang.String quotaUser) { + return (BatchDelete) super.setQuotaUser(quotaUser); + } + + @Override + public BatchDelete setUploadType(java.lang.String uploadType) { + return (BatchDelete) super.setUploadType(uploadType); + } + + @Override + public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchDelete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent branch resource name, such as `projects/{project}/locations/{location}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}`. + */ + public BatchDelete setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BatchDelete set(String parameterName, Object value) { + return (BatchDelete) super.set(parameterName, value); + } + } + /** + * Creates a notebook. + * + * Create a request for the method "notebooks.create". + * + * This request holds the parameters needed by the discoveryengine server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource name, such as `projects/{project}/locations/{location}`. + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaNotebook} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaNotebook content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends DiscoveryEngineRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource name, such as `projects/{project}/locations/{location}`. + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaNotebook} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaNotebook content) { + super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaNotebook.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource name, such as `projects/{project}/locations/{location}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource name, such as `projects/{project}/locations/{location}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource name, such as `projects/{project}/locations/{location}`. + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Gets a notebook. + * + * Create a request for the method "notebooks.get". + * + * This request holds the parameters needed by the discoveryengine server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Full resource name of Notebook, such as + * `projects/{project}/locations/{location}/notebooks/{notebook_id}`. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends DiscoveryEngineRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Full resource name of Notebook, such as + * `projects/{project}/locations/{location}/notebooks/{notebook_id}`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaNotebook.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Full resource name of Notebook, such as + * `projects/{project}/locations/{location}/notebooks/{notebook_id}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Full resource name of Notebook, such as + `projects/{project}/locations/{location}/notebooks/{notebook_id}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Full resource name of Notebook, such as + * `projects/{project}/locations/{location}/notebooks/{notebook_id}`. + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists the notebooks ordered by last view time. + * + * Create a request for the method "notebooks.listRecentlyViewed". + * + * This request holds the parameters needed by the discoveryengine server. After setting any + * optional parameters, call the {@link ListRecentlyViewed#execute()} method to invoke the remote + * operation. + * + * @param parent Required. The parent branch resource name, such as `projects/{project}/locations/{location}`. + * @return the request + */ + public ListRecentlyViewed listRecentlyViewed(java.lang.String parent) throws java.io.IOException { + ListRecentlyViewed result = new ListRecentlyViewed(parent); + initialize(result); + return result; + } + + public class ListRecentlyViewed extends DiscoveryEngineRequest{@link ListRecentlyViewed#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param parent Required. The parent branch resource name, such as `projects/{project}/locations/{location}`. + * @since 1.13 + */ + protected ListRecentlyViewed(java.lang.String parent) { + super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListRecentlyViewed set$Xgafv(java.lang.String $Xgafv) { + return (ListRecentlyViewed) super.set$Xgafv($Xgafv); + } + + @Override + public ListRecentlyViewed setAccessToken(java.lang.String accessToken) { + return (ListRecentlyViewed) super.setAccessToken(accessToken); + } + + @Override + public ListRecentlyViewed setAlt(java.lang.String alt) { + return (ListRecentlyViewed) super.setAlt(alt); + } + + @Override + public ListRecentlyViewed setCallback(java.lang.String callback) { + return (ListRecentlyViewed) super.setCallback(callback); + } + + @Override + public ListRecentlyViewed setFields(java.lang.String fields) { + return (ListRecentlyViewed) super.setFields(fields); + } + + @Override + public ListRecentlyViewed setKey(java.lang.String key) { + return (ListRecentlyViewed) super.setKey(key); + } + + @Override + public ListRecentlyViewed setOauthToken(java.lang.String oauthToken) { + return (ListRecentlyViewed) super.setOauthToken(oauthToken); + } + + @Override + public ListRecentlyViewed setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListRecentlyViewed) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListRecentlyViewed setQuotaUser(java.lang.String quotaUser) { + return (ListRecentlyViewed) super.setQuotaUser(quotaUser); + } + + @Override + public ListRecentlyViewed setUploadType(java.lang.String uploadType) { + return (ListRecentlyViewed) super.setUploadType(uploadType); + } + + @Override + public ListRecentlyViewed setUploadProtocol(java.lang.String uploadProtocol) { + return (ListRecentlyViewed) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent branch resource name, such as `projects/{project}/locations/{location}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}`. + */ + public ListRecentlyViewed setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Maximum number of Notebooks to return. If unspecified, defaults to "500". The + * maximum allowed value is "500". If this field is negative, will use the default value. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of Notebooks to return. If unspecified, defaults to "500". The maximum + allowed value is "500". If this field is negative, will use the default value. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Maximum number of Notebooks to return. If unspecified, defaults to "500". The + * maximum allowed value is "500". If this field is negative, will use the default value. + */ + public ListRecentlyViewed setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. The page token, provide this to retrieve the subsequent page. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The page token, provide this to retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. The page token, provide this to retrieve the subsequent page. */ + public ListRecentlyViewed setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListRecentlyViewed set(String parameterName, Object value) { + return (ListRecentlyViewed) super.set(parameterName, value); + } + } + /** + * Shares a notebook to other accounts. + * + * Create a request for the method "notebooks.share". + * + * This request holds the parameters needed by the discoveryengine server. After setting any + * optional parameters, call the {@link Share#execute()} method to invoke the remote operation. + * + * @param name Required. Full resource name of Notebook, such as + * `projects/{project}/locations/{location}/notebooks/{notebook_id}`. + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaShareNotebookRequest} + * @return the request + */ + public Share share(java.lang.String name, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaShareNotebookRequest content) throws java.io.IOException { + Share result = new Share(name, content); + initialize(result); + return result; + } + + public class Share extends DiscoveryEngineRequest{@link + * Share#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Full resource name of Notebook, such as + * `projects/{project}/locations/{location}/notebooks/{notebook_id}`. + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaShareNotebookRequest} + * @since 1.13 + */ + protected Share(java.lang.String name, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaShareNotebookRequest content) { + super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaShareNotebookResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+$"); + } + } + + @Override + public Share set$Xgafv(java.lang.String $Xgafv) { + return (Share) super.set$Xgafv($Xgafv); + } + + @Override + public Share setAccessToken(java.lang.String accessToken) { + return (Share) super.setAccessToken(accessToken); + } + + @Override + public Share setAlt(java.lang.String alt) { + return (Share) super.setAlt(alt); + } + + @Override + public Share setCallback(java.lang.String callback) { + return (Share) super.setCallback(callback); + } + + @Override + public Share setFields(java.lang.String fields) { + return (Share) super.setFields(fields); + } + + @Override + public Share setKey(java.lang.String key) { + return (Share) super.setKey(key); + } + + @Override + public Share setOauthToken(java.lang.String oauthToken) { + return (Share) super.setOauthToken(oauthToken); + } + + @Override + public Share setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Share) super.setPrettyPrint(prettyPrint); + } + + @Override + public Share setQuotaUser(java.lang.String quotaUser) { + return (Share) super.setQuotaUser(quotaUser); + } + + @Override + public Share setUploadType(java.lang.String uploadType) { + return (Share) super.setUploadType(uploadType); + } + + @Override + public Share setUploadProtocol(java.lang.String uploadProtocol) { + return (Share) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Full resource name of Notebook, such as + * `projects/{project}/locations/{location}/notebooks/{notebook_id}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Full resource name of Notebook, such as + `projects/{project}/locations/{location}/notebooks/{notebook_id}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Full resource name of Notebook, such as + * `projects/{project}/locations/{location}/notebooks/{notebook_id}`. + */ + public Share setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Share set(String parameterName, Object value) { + return (Share) super.set(parameterName, value); + } + } + /** * An accessor for creating requests from the AudioOverviews collection. * *The typical use is:
*
* {@code DiscoveryEngine discoveryengine = new DiscoveryEngine(...);}
- * {@code DiscoveryEngine.AudioOverviews.List request = discoveryengine.audioOverviews().list(parameters ...)}
+ * {@code DiscoveryEngine.AudioOverviews.List request = discoveryengine.audioOverviews().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AudioOverviews audioOverviews() {
+ return new AudioOverviews();
+ }
+
+ /**
+ * The "audioOverviews" collection of methods.
+ */
+ public class AudioOverviews {
+
+ /**
+ * Generates a new audio overview.
+ *
+ * Create a request for the method "audioOverviews.create".
+ *
+ * This request holds the parameters needed by the discoveryengine server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The parent resource where this notebook will be created. Format:
+ * projects/{project}/locations/{location}/notebooks/{notebook}
+ * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaCreateAudioOverviewRequest}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaCreateAudioOverviewRequest content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends DiscoveryEngineRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource where this notebook will be created. Format: + * projects/{project}/locations/{location}/notebooks/{notebook} + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaCreateAudioOverviewRequest} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaCreateAudioOverviewRequest content) { + super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where this notebook will be created. Format: + * projects/{project}/locations/{location}/notebooks/{notebook} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this notebook will be created. Format: + projects/{project}/locations/{location}/notebooks/{notebook} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this notebook will be created. Format: + * projects/{project}/locations/{location}/notebooks/{notebook} + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes an audio overview. + * + * Create a request for the method "audioOverviews.delete". + * + * This request holds the parameters needed by the discoveryengine server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The full resource name of the AudioOverview, such as + * `projects/{project}/locations/{location}/notebooks/{notebook}/audioOverviews/{audio_overvi + * ew_id}`. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends DiscoveryEngineRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The full resource name of the AudioOverview, such as + * `projects/{project}/locations/{location}/notebooks/{notebook}/audioOverviews/{audio_overvi + * ew_id}`. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(DiscoveryEngine.this, "DELETE", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+/audioOverviews/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The full resource name of the AudioOverview, such as `projects/{project}/lo + * cations/{location}/notebooks/{notebook}/audioOverviews/{audio_overview_id}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The full resource name of the AudioOverview, such as + `projects/{project}/locations/{location}/notebooks/{notebook}/audioOverviews/{audio_overview_id}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The full resource name of the AudioOverview, such as `projects/{project}/lo + * cations/{location}/notebooks/{notebook}/audioOverviews/{audio_overview_id}`. + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+/audioOverviews/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Sources collection. + * + *The typical use is:
+ *
+ * {@code DiscoveryEngine discoveryengine = new DiscoveryEngine(...);}
+ * {@code DiscoveryEngine.Sources.List request = discoveryengine.sources().list(parameters ...)}
*
*
* @return the resource collection
*/
- public AudioOverviews audioOverviews() {
- return new AudioOverviews();
+ public Sources sources() {
+ return new Sources();
}
/**
- * The "audioOverviews" collection of methods.
+ * The "sources" collection of methods.
*/
- public class AudioOverviews {
+ public class Sources {
/**
- * Generates a new audio overview.
+ * Creates a list of Sources.
*
- * Create a request for the method "audioOverviews.create".
+ * Create a request for the method "sources.batchCreate".
*
* This request holds the parameters needed by the discoveryengine server. After setting any
- * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link BatchCreate#execute()} method to invoke the remote
+ * operation.
*
- * @param parent Required. The parent resource where this notebook will be created. Format:
+ * @param parent Required. The parent resource where the sources will be created. Format:
* projects/{project}/locations/{location}/notebooks/{notebook}
- * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaCreateAudioOverviewRequest}
+ * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaCreateAudioOverviewRequest content) throws java.io.IOException {
- Create result = new Create(parent, content);
+ public BatchCreate batchCreate(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest content) throws java.io.IOException {
+ BatchCreate result = new BatchCreate(parent, content);
initialize(result);
return result;
}
- public class Create extends DiscoveryEngineRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link BatchCreate#execute()} method to invoke the remote + * operation.{@link + * BatchCreate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The parent resource where this notebook will be created. Format: + * @param parent Required. The parent resource where the sources will be created. Format: * projects/{project}/locations/{location}/notebooks/{notebook} - * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaCreateAudioOverviewRequest} + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaCreateAudioOverviewRequest content) { - super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse.class); + protected BatchCreate(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest content) { + super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -60701,68 +61750,68 @@ protected Create(java.lang.String parent, com.google.api.services.discoveryengin } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public BatchCreate set$Xgafv(java.lang.String $Xgafv) { + return (BatchCreate) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public BatchCreate setAccessToken(java.lang.String accessToken) { + return (BatchCreate) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public BatchCreate setAlt(java.lang.String alt) { + return (BatchCreate) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public BatchCreate setCallback(java.lang.String callback) { + return (BatchCreate) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public BatchCreate setFields(java.lang.String fields) { + return (BatchCreate) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public BatchCreate setKey(java.lang.String key) { + return (BatchCreate) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public BatchCreate setOauthToken(java.lang.String oauthToken) { + return (BatchCreate) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public BatchCreate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchCreate) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public BatchCreate setQuotaUser(java.lang.String quotaUser) { + return (BatchCreate) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public BatchCreate setUploadType(java.lang.String uploadType) { + return (BatchCreate) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public BatchCreate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchCreate) super.setUploadProtocol(uploadProtocol); } /** - * Required. The parent resource where this notebook will be created. Format: + * Required. The parent resource where the sources will be created. Format: * projects/{project}/locations/{location}/notebooks/{notebook} */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource where this notebook will be created. Format: + /** Required. The parent resource where the sources will be created. Format: projects/{project}/locations/{location}/notebooks/{notebook} */ public java.lang.String getParent() { @@ -60770,10 +61819,10 @@ public java.lang.String getParent() { } /** - * Required. The parent resource where this notebook will be created. Format: + * Required. The parent resource where the sources will be created. Format: * projects/{project}/locations/{location}/notebooks/{notebook} */ - public Create setParent(java.lang.String parent) { + public BatchCreate setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + @@ -60784,148 +61833,296 @@ public Create setParent(java.lang.String parent) { } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public BatchCreate set(String parameterName, Object value) { + return (BatchCreate) super.set(parameterName, value); } } /** - * Deletes an audio overview. + * Deletes multiple sources * - * Create a request for the method "audioOverviews.delete". + * Create a request for the method "sources.batchDelete". * * This request holds the parameters needed by the discoveryengine server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link BatchDelete#execute()} method to invoke the remote + * operation. * - * @param name Required. The full resource name of the AudioOverview, such as - * `projects/{project}/locations/{location}/notebooks/{notebook}/audioOverviews/{audio_overvi - * ew_id}`. + * @param parent Required. The parent resource where the sources will be deleted. Format: + * projects/{project}/locations/{location}/notebooks/{notebook} + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public BatchDelete batchDelete(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest content) throws java.io.IOException { + BatchDelete result = new BatchDelete(parent, content); initialize(result); return result; } - public class Delete extends DiscoveryEngineRequest{@link + * BatchDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource where the sources will be deleted. Format: + * projects/{project}/locations/{location}/notebooks/{notebook} + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest} + * @since 1.13 + */ + protected BatchDelete(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest content) { + super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1alpha.model.GoogleProtobufEmpty.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+$"); + } + } + + @Override + public BatchDelete set$Xgafv(java.lang.String $Xgafv) { + return (BatchDelete) super.set$Xgafv($Xgafv); + } + + @Override + public BatchDelete setAccessToken(java.lang.String accessToken) { + return (BatchDelete) super.setAccessToken(accessToken); + } + + @Override + public BatchDelete setAlt(java.lang.String alt) { + return (BatchDelete) super.setAlt(alt); + } + + @Override + public BatchDelete setCallback(java.lang.String callback) { + return (BatchDelete) super.setCallback(callback); + } + + @Override + public BatchDelete setFields(java.lang.String fields) { + return (BatchDelete) super.setFields(fields); + } + + @Override + public BatchDelete setKey(java.lang.String key) { + return (BatchDelete) super.setKey(key); + } + + @Override + public BatchDelete setOauthToken(java.lang.String oauthToken) { + return (BatchDelete) super.setOauthToken(oauthToken); + } + + @Override + public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchDelete) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchDelete setQuotaUser(java.lang.String quotaUser) { + return (BatchDelete) super.setQuotaUser(quotaUser); + } + + @Override + public BatchDelete setUploadType(java.lang.String uploadType) { + return (BatchDelete) super.setUploadType(uploadType); + } + + @Override + public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchDelete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the sources will be deleted. Format: + * projects/{project}/locations/{location}/notebooks/{notebook} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the sources will be deleted. Format: + projects/{project}/locations/{location}/notebooks/{notebook} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the sources will be deleted. Format: + * projects/{project}/locations/{location}/notebooks/{notebook} + */ + public BatchDelete setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BatchDelete set(String parameterName, Object value) { + return (BatchDelete) super.set(parameterName, value); + } + } + /** + * Gets a Source. + * + * Create a request for the method "sources.get". + * + * This request holds the parameters needed by the discoveryengine server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name for source Format: + * projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source} + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends DiscoveryEngineRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The full resource name of the AudioOverview, such as - * `projects/{project}/locations/{location}/notebooks/{notebook}/audioOverviews/{audio_overvi - * ew_id}`. + * @param name Required. The resource name for source Format: + * projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(DiscoveryEngine.this, "DELETE", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleProtobufEmpty.class); + protected Get(java.lang.String name) { + super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudNotebooklmV1alphaSource.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+/audioOverviews/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+/sources/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * Required. The full resource name of the AudioOverview, such as `projects/{project}/lo - * cations/{location}/notebooks/{notebook}/audioOverviews/{audio_overview_id}`. + * Required. The resource name for source Format: + * projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source} */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The full resource name of the AudioOverview, such as - `projects/{project}/locations/{location}/notebooks/{notebook}/audioOverviews/{audio_overview_id}`. + /** Required. The resource name for source Format: + projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source} */ public java.lang.String getName() { return name; } /** - * Required. The full resource name of the AudioOverview, such as `projects/{project}/lo - * cations/{location}/notebooks/{notebook}/audioOverviews/{audio_overview_id}`. + * Required. The resource name for source Format: + * projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source} */ - public Delete setName(java.lang.String name) { + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+/audioOverviews/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+/sources/[^/]+$"); } this.name = name; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaAccountAndRole.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaAccountAndRole.java new file mode 100644 index 00000000000..8f4cc477ba8 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaAccountAndRole.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Account and role information. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaAccountAndRole extends com.google.api.client.json.GenericJson { + + /** + * Required. The email address associated with the account. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String email; + + /** + * Required. The role in the notebook. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * Required. The email address associated with the account. + * @return value or {@code null} for none + */ + public java.lang.String getEmail() { + return email; + } + + /** + * Required. The email address associated with the account. + * @param email email or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaAccountAndRole setEmail(java.lang.String email) { + this.email = email; + return this; + } + + /** + * Required. The role in the notebook. + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * Required. The role in the notebook. + * @param role role or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaAccountAndRole setRole(java.lang.String role) { + this.role = role; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaAccountAndRole set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaAccountAndRole) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaAccountAndRole clone() { + return (GoogleCloudNotebooklmV1alphaAccountAndRole) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaAgentspaceMetadata.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaAgentspaceMetadata.java new file mode 100644 index 00000000000..2ce3035a973 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaAgentspaceMetadata.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Metadata about an agentspace source. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaAgentspaceMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The full document name in Agentspace. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentName; + + /** + * Output only. The title of the document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentTitle; + + /** + * Output only. The full document name in Agentspace. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentName() { + return documentName; + } + + /** + * Output only. The full document name in Agentspace. + * @param documentName documentName or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaAgentspaceMetadata setDocumentName(java.lang.String documentName) { + this.documentName = documentName; + return this; + } + + /** + * Output only. The title of the document. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentTitle() { + return documentTitle; + } + + /** + * Output only. The title of the document. + * @param documentTitle documentTitle or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaAgentspaceMetadata setDocumentTitle(java.lang.String documentTitle) { + this.documentTitle = documentTitle; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaAgentspaceMetadata set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaAgentspaceMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaAgentspaceMetadata clone() { + return (GoogleCloudNotebooklmV1alphaAgentspaceMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest.java new file mode 100644 index 00000000000..49229a63b9f --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Request for SourceService.BatchCreateSources method. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The UserContents to be uploaded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse extends com.google.api.client.json.GenericJson { + + /** + * The Sources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. Full resource names of Notebook, such as + * `projects/{project}/locations/{location}/notebooks/{notebook_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. Names of sources to be deleted. Format: + * projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaCmekConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. KMS key resource name which will be used to encrypt resources + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKey; + + /** + * Required. KMS key resource name which will be used to encrypt resources + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. + * @return value or {@code null} for none + */ + public java.lang.String getKmsKey() { + return kmsKey; + } + + /** + * Required. KMS key resource name which will be used to encrypt resources + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. + * @param kmsKey kmsKey or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaCmekConfig setKmsKey(java.lang.String kmsKey) { + this.kmsKey = kmsKey; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaCmekConfig set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaCmekConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaCmekConfig clone() { + return (GoogleCloudNotebooklmV1alphaCmekConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReason.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReason.java new file mode 100644 index 00000000000..e9b302b4096 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReason.java @@ -0,0 +1,378 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Failure reason containing details about why a source failed to ingest. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReason extends com.google.api.client.json.GenericJson { + + /** + * An audio file transcription specific error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError audioTranscriptionError; + + /** + * Error if the user tries to add a source from a blocked domain. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked domainBlocked; + + /** + * A google drive specific error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError googleDriveError; + + /** + * Indicates an error occurred while ingesting the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonIngestionError ingestionError; + + /** + * Indicates that the source MIME type is blocked. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked mimeTypeBlocked; + + /** + * Indicates that the source is paywalled and cannot be ingested. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonPaywallError paywallError; + + /** + * Indicates that the policy check failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed policyCheckFailed; + + /** + * Indicates that the source is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty sourceEmpty; + + /** + * Error if the user tries to update beyond their limits. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded sourceLimitExceeded; + + /** + * Indicates source word count exceeded the user's limit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong sourceTooLong; + + /** + * Indicates that the source is unreachable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable sourceUnreachable; + + /** + * Indicates an unknown error occurred. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonUnknown unknown; + + /** + * Indicates an error occurred while uploading the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonUploadError uploadError; + + /** + * A youtube specific error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError youtubeError; + + /** + * An audio file transcription specific error. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError getAudioTranscriptionError() { + return audioTranscriptionError; + } + + /** + * An audio file transcription specific error. + * @param audioTranscriptionError audioTranscriptionError or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setAudioTranscriptionError(GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError audioTranscriptionError) { + this.audioTranscriptionError = audioTranscriptionError; + return this; + } + + /** + * Error if the user tries to add a source from a blocked domain. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked getDomainBlocked() { + return domainBlocked; + } + + /** + * Error if the user tries to add a source from a blocked domain. + * @param domainBlocked domainBlocked or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setDomainBlocked(GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked domainBlocked) { + this.domainBlocked = domainBlocked; + return this; + } + + /** + * A google drive specific error. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError getGoogleDriveError() { + return googleDriveError; + } + + /** + * A google drive specific error. + * @param googleDriveError googleDriveError or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setGoogleDriveError(GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError googleDriveError) { + this.googleDriveError = googleDriveError; + return this; + } + + /** + * Indicates an error occurred while ingesting the source. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonIngestionError getIngestionError() { + return ingestionError; + } + + /** + * Indicates an error occurred while ingesting the source. + * @param ingestionError ingestionError or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setIngestionError(GoogleCloudNotebooklmV1alphaFailureReasonIngestionError ingestionError) { + this.ingestionError = ingestionError; + return this; + } + + /** + * Indicates that the source MIME type is blocked. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked getMimeTypeBlocked() { + return mimeTypeBlocked; + } + + /** + * Indicates that the source MIME type is blocked. + * @param mimeTypeBlocked mimeTypeBlocked or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setMimeTypeBlocked(GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked mimeTypeBlocked) { + this.mimeTypeBlocked = mimeTypeBlocked; + return this; + } + + /** + * Indicates that the source is paywalled and cannot be ingested. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonPaywallError getPaywallError() { + return paywallError; + } + + /** + * Indicates that the source is paywalled and cannot be ingested. + * @param paywallError paywallError or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setPaywallError(GoogleCloudNotebooklmV1alphaFailureReasonPaywallError paywallError) { + this.paywallError = paywallError; + return this; + } + + /** + * Indicates that the policy check failed. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed getPolicyCheckFailed() { + return policyCheckFailed; + } + + /** + * Indicates that the policy check failed. + * @param policyCheckFailed policyCheckFailed or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setPolicyCheckFailed(GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed policyCheckFailed) { + this.policyCheckFailed = policyCheckFailed; + return this; + } + + /** + * Indicates that the source is empty. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty getSourceEmpty() { + return sourceEmpty; + } + + /** + * Indicates that the source is empty. + * @param sourceEmpty sourceEmpty or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setSourceEmpty(GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty sourceEmpty) { + this.sourceEmpty = sourceEmpty; + return this; + } + + /** + * Error if the user tries to update beyond their limits. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded getSourceLimitExceeded() { + return sourceLimitExceeded; + } + + /** + * Error if the user tries to update beyond their limits. + * @param sourceLimitExceeded sourceLimitExceeded or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setSourceLimitExceeded(GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded sourceLimitExceeded) { + this.sourceLimitExceeded = sourceLimitExceeded; + return this; + } + + /** + * Indicates source word count exceeded the user's limit. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong getSourceTooLong() { + return sourceTooLong; + } + + /** + * Indicates source word count exceeded the user's limit. + * @param sourceTooLong sourceTooLong or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setSourceTooLong(GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong sourceTooLong) { + this.sourceTooLong = sourceTooLong; + return this; + } + + /** + * Indicates that the source is unreachable. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable getSourceUnreachable() { + return sourceUnreachable; + } + + /** + * Indicates that the source is unreachable. + * @param sourceUnreachable sourceUnreachable or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setSourceUnreachable(GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable sourceUnreachable) { + this.sourceUnreachable = sourceUnreachable; + return this; + } + + /** + * Indicates an unknown error occurred. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonUnknown getUnknown() { + return unknown; + } + + /** + * Indicates an unknown error occurred. + * @param unknown unknown or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setUnknown(GoogleCloudNotebooklmV1alphaFailureReasonUnknown unknown) { + this.unknown = unknown; + return this; + } + + /** + * Indicates an error occurred while uploading the source. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonUploadError getUploadError() { + return uploadError; + } + + /** + * Indicates an error occurred while uploading the source. + * @param uploadError uploadError or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setUploadError(GoogleCloudNotebooklmV1alphaFailureReasonUploadError uploadError) { + this.uploadError = uploadError; + return this; + } + + /** + * A youtube specific error. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError getYoutubeError() { + return youtubeError; + } + + /** + * A youtube specific error. + * @param youtubeError youtubeError or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason setYoutubeError(GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError youtubeError) { + this.youtubeError = youtubeError; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReason set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReason) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReason clone() { + return (GoogleCloudNotebooklmV1alphaFailureReason) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError.java new file mode 100644 index 00000000000..a416bb2e2f7 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * An audio file transcription specific error. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError extends com.google.api.client.json.GenericJson { + + /** + * Could not detect language of the file (it may not be speech). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed languageDetectionFailed; + + /** + * No audio was detected in the input file (it may have been a video). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected noAudioDetected; + + /** + * Could not detect language of the file (it may not be speech). + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed getLanguageDetectionFailed() { + return languageDetectionFailed; + } + + /** + * Could not detect language of the file (it may not be speech). + * @param languageDetectionFailed languageDetectionFailed or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError setLanguageDetectionFailed(GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed languageDetectionFailed) { + this.languageDetectionFailed = languageDetectionFailed; + return this; + } + + /** + * No audio was detected in the input file (it may have been a video). + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected getNoAudioDetected() { + return noAudioDetected; + } + + /** + * No audio was detected in the input file (it may have been a video). + * @param noAudioDetected noAudioDetected or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError setNoAudioDetected(GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected noAudioDetected) { + this.noAudioDetected = noAudioDetected; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed.java new file mode 100644 index 00000000000..076381edc14 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Could not detect language of the file (it may not be speech). + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected.java new file mode 100644 index 00000000000..1a3fa22b698 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * No audio was detected in the input file. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked.java new file mode 100644 index 00000000000..7a05a05069d --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Error to indicate that the source was removed because the domain was blocked. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError.java new file mode 100644 index 00000000000..24d1d9a91fc --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * A google drive specific error. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError extends com.google.api.client.json.GenericJson { + + /** + * The user was prevented from downloading the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented downloadPrevented; + + /** + * The user was prevented from downloading the file. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented getDownloadPrevented() { + return downloadPrevented; + } + + /** + * The user was prevented from downloading the file. + * @param downloadPrevented downloadPrevented or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError setDownloadPrevented(GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented downloadPrevented) { + this.downloadPrevented = downloadPrevented; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented.java new file mode 100644 index 00000000000..e26689a2b6c --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * The user was prevented from downloading the file. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonIngestionError.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonIngestionError.java new file mode 100644 index 00000000000..22c36dd11eb --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonIngestionError.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Indicates an error occurred while ingesting the source. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonIngestionError extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonIngestionError set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonIngestionError) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonIngestionError clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonIngestionError) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked.java new file mode 100644 index 00000000000..b6014071d7f --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Indicates that the source MIME type is blocked. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonPaywallError.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonPaywallError.java new file mode 100644 index 00000000000..ead17b0ee9b --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonPaywallError.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Indicates that the source is paywalled and cannot be ingested. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonPaywallError extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonPaywallError set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonPaywallError) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonPaywallError clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonPaywallError) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed.java new file mode 100644 index 00000000000..f4538c2d66f --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Indicates that the policy check failed. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty.java new file mode 100644 index 00000000000..4692356f4cd --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Indicates that the source is empty. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded.java new file mode 100644 index 00000000000..e78312ca87a --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Indicates that the user does not have space for this source. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong.java new file mode 100644 index 00000000000..12011a96f65 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Indicates source word count exceeded the user's limit. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong extends com.google.api.client.json.GenericJson { + + /** + * The number of words in the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer wordCount; + + /** + * The word count limit for the current user at the time of the upload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer wordLimit; + + /** + * The number of words in the source. + * @return value or {@code null} for none + */ + public java.lang.Integer getWordCount() { + return wordCount; + } + + /** + * The number of words in the source. + * @param wordCount wordCount or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong setWordCount(java.lang.Integer wordCount) { + this.wordCount = wordCount; + return this; + } + + /** + * The word count limit for the current user at the time of the upload. + * @return value or {@code null} for none + */ + public java.lang.Integer getWordLimit() { + return wordLimit; + } + + /** + * The word count limit for the current user at the time of the upload. + * @param wordLimit wordLimit or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong setWordLimit(java.lang.Integer wordLimit) { + this.wordLimit = wordLimit; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable.java new file mode 100644 index 00000000000..6ed599ed807 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Indicates that the source is unreachable. This is primarily used for sources that are added via + * URL. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable extends com.google.api.client.json.GenericJson { + + /** + * Describes why the source is unreachable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorDetails; + + /** + * Describes why the source is unreachable. + * @return value or {@code null} for none + */ + public java.lang.String getErrorDetails() { + return errorDetails; + } + + /** + * Describes why the source is unreachable. + * @param errorDetails errorDetails or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable setErrorDetails(java.lang.String errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonUnknown.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonUnknown.java new file mode 100644 index 00000000000..df1bd750b4a --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonUnknown.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Indicates an unknown error occurred. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonUnknown extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonUnknown set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonUnknown) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonUnknown clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonUnknown) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonUploadError.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonUploadError.java new file mode 100644 index 00000000000..f857de5bc0f --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonUploadError.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Indicates an error occurred while uploading the source. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonUploadError extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonUploadError set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonUploadError) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonUploadError clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonUploadError) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError.java new file mode 100644 index 00000000000..56e9f212073 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * A youtube specific error. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError extends com.google.api.client.json.GenericJson { + + /** + * Error to indicate that the source was removed because the video was deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted videoDeleted; + + /** + * Error to indicate that the source was removed because the video was deleted. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted getVideoDeleted() { + return videoDeleted; + } + + /** + * Error to indicate that the source was removed because the video was deleted. + * @param videoDeleted videoDeleted or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError setVideoDeleted(GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted videoDeleted) { + this.videoDeleted = videoDeleted; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted.java new file mode 100644 index 00000000000..82528f12810 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Error to indicate that the source was removed because the video was deleted. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted clone() { + return (GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata.java new file mode 100644 index 00000000000..072f48104b4 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Metadata about a google doc source. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The document id of the google doc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentId; + + /** + * Output only. Revision id for the doc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String revisionId; + + /** + * Output only. The document id of the google doc. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentId() { + return documentId; + } + + /** + * Output only. The document id of the google doc. + * @param documentId documentId or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata setDocumentId(java.lang.String documentId) { + this.documentId = documentId; + return this; + } + + /** + * Output only. Revision id for the doc. + * @return value or {@code null} for none + */ + public java.lang.String getRevisionId() { + return revisionId; + } + + /** + * Output only. Revision id for the doc. + * @param revisionId revisionId or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata setRevisionId(java.lang.String revisionId) { + this.revisionId = revisionId; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata clone() { + return (GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse.java new file mode 100644 index 00000000000..b1d4b403525 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Response for NotebookService.ListRecentlyViewedNotebooks method. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse extends com.google.api.client.json.GenericJson { + + /** + * The page token, provide this to retrieve the subsequent page. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of recently viewed notebooks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaNotebook extends com.google.api.client.json.GenericJson { + + /** + * Output only. CMEK-related information for the Notebook. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaCmekConfig cmekConfig; + + /** + * Output only. The emoji of the notebook. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String emoji; + + /** + * Output only. The metadata of the notebook. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaNotebookMetadata metadata; + + /** + * Identifier. The identifier of the notebook. Format: + * `projects/{project}/locations/{location}/notebooks/{notebook_id}`. This field must be a UTF-8 + * encoded string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Notebook id, which is the last segment of the notebook's resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String notebookId; + + /** + * Output only. List of sources in the notebook. This is an output only field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaNotebookMetadata extends com.google.api.client.json.GenericJson { + + /** + * The time at which this project was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * True if the project is shareable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isShareable; + + /** + * True if this project is currently shared with other people, false otherwise. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isShared; + + /** + * A timestamp indicating the time that the current in session user has last viewed the project. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastViewed; + + /** + * The time at which this project was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * The time at which this project was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaNotebookMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * True if the project is shareable. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsShareable() { + return isShareable; + } + + /** + * True if the project is shareable. + * @param isShareable isShareable or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaNotebookMetadata setIsShareable(java.lang.Boolean isShareable) { + this.isShareable = isShareable; + return this; + } + + /** + * True if this project is currently shared with other people, false otherwise. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsShared() { + return isShared; + } + + /** + * True if this project is currently shared with other people, false otherwise. + * @param isShared isShared or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaNotebookMetadata setIsShared(java.lang.Boolean isShared) { + this.isShared = isShared; + return this; + } + + /** + * A timestamp indicating the time that the current in session user has last viewed the project. + * @return value or {@code null} for none + */ + public String getLastViewed() { + return lastViewed; + } + + /** + * A timestamp indicating the time that the current in session user has last viewed the project. + * @param lastViewed lastViewed or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaNotebookMetadata setLastViewed(String lastViewed) { + this.lastViewed = lastViewed; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaNotebookMetadata set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaNotebookMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaNotebookMetadata clone() { + return (GoogleCloudNotebooklmV1alphaNotebookMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaShareNotebookRequest.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaShareNotebookRequest.java new file mode 100644 index 00000000000..da1927e65d9 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaShareNotebookRequest.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Request for NotebookService.ShareNotebook method. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaShareNotebookRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The list of accounts and roles to share the notebook with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaShareNotebookResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudNotebooklmV1alphaShareNotebookResponse set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaShareNotebookResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaShareNotebookResponse clone() { + return (GoogleCloudNotebooklmV1alphaShareNotebookResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaSource.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaSource.java new file mode 100644 index 00000000000..e8c06419c47 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaSource.java @@ -0,0 +1,168 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Source represents a single source of content. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaSource extends com.google.api.client.json.GenericJson { + + /** + * Output only. Metadata about the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaSourceMetadata metadata; + + /** + * Identifier. The full resource name of the source. Format: + * `projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source_id}`. This field + * must be a UTF-8 encoded string with a length limit of 1024 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Status of the source, and any failure reasons. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaSourceSettings settings; + + /** + * Optional. Output only. Source id, which is the last segment of the source's resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaSourceId sourceId; + + /** + * Optional. Title of the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Output only. Metadata about the source. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSourceMetadata getMetadata() { + return metadata; + } + + /** + * Output only. Metadata about the source. + * @param metadata metadata or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSource setMetadata(GoogleCloudNotebooklmV1alphaSourceMetadata metadata) { + this.metadata = metadata; + return this; + } + + /** + * Identifier. The full resource name of the source. Format: + * `projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source_id}`. This field + * must be a UTF-8 encoded string with a length limit of 1024 characters. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The full resource name of the source. Format: + * `projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source_id}`. This field + * must be a UTF-8 encoded string with a length limit of 1024 characters. + * @param name name or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSource setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Status of the source, and any failure reasons. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSourceSettings getSettings() { + return settings; + } + + /** + * Output only. Status of the source, and any failure reasons. + * @param settings settings or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSource setSettings(GoogleCloudNotebooklmV1alphaSourceSettings settings) { + this.settings = settings; + return this; + } + + /** + * Optional. Output only. Source id, which is the last segment of the source's resource name. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSourceId getSourceId() { + return sourceId; + } + + /** + * Optional. Output only. Source id, which is the last segment of the source's resource name. + * @param sourceId sourceId or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSource setSourceId(GoogleCloudNotebooklmV1alphaSourceId sourceId) { + this.sourceId = sourceId; + return this; + } + + /** + * Optional. Title of the source. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Optional. Title of the source. + * @param title title or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSource setTitle(java.lang.String title) { + this.title = title; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaSource set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaSource) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaSource clone() { + return (GoogleCloudNotebooklmV1alphaSource) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaSourceMetadata.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaSourceMetadata.java new file mode 100644 index 00000000000..5ee396a1a5b --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaSourceMetadata.java @@ -0,0 +1,186 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Represents the metadata of a source and some additional information. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaSourceMetadata extends com.google.api.client.json.GenericJson { + + /** + * Metadata for an agentspace source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaAgentspaceMetadata agentspaceMetadata; + + /** + * Metadata for a google doc source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata googleDocsMetadata; + + /** + * The timestamp the source was added. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String sourceAddedTimestamp; + + /** + * The number of tokens in the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer tokenCount; + + /** + * The word count of the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer wordCount; + + /** + * Metadata for a youtube video source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaYoutubeMetadata youtubeMetadata; + + /** + * Metadata for an agentspace source. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaAgentspaceMetadata getAgentspaceMetadata() { + return agentspaceMetadata; + } + + /** + * Metadata for an agentspace source. + * @param agentspaceMetadata agentspaceMetadata or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSourceMetadata setAgentspaceMetadata(GoogleCloudNotebooklmV1alphaAgentspaceMetadata agentspaceMetadata) { + this.agentspaceMetadata = agentspaceMetadata; + return this; + } + + /** + * Metadata for a google doc source. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata getGoogleDocsMetadata() { + return googleDocsMetadata; + } + + /** + * Metadata for a google doc source. + * @param googleDocsMetadata googleDocsMetadata or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSourceMetadata setGoogleDocsMetadata(GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata googleDocsMetadata) { + this.googleDocsMetadata = googleDocsMetadata; + return this; + } + + /** + * The timestamp the source was added. + * @return value or {@code null} for none + */ + public String getSourceAddedTimestamp() { + return sourceAddedTimestamp; + } + + /** + * The timestamp the source was added. + * @param sourceAddedTimestamp sourceAddedTimestamp or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSourceMetadata setSourceAddedTimestamp(String sourceAddedTimestamp) { + this.sourceAddedTimestamp = sourceAddedTimestamp; + return this; + } + + /** + * The number of tokens in the source. + * @return value or {@code null} for none + */ + public java.lang.Integer getTokenCount() { + return tokenCount; + } + + /** + * The number of tokens in the source. + * @param tokenCount tokenCount or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSourceMetadata setTokenCount(java.lang.Integer tokenCount) { + this.tokenCount = tokenCount; + return this; + } + + /** + * The word count of the source. + * @return value or {@code null} for none + */ + public java.lang.Integer getWordCount() { + return wordCount; + } + + /** + * The word count of the source. + * @param wordCount wordCount or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSourceMetadata setWordCount(java.lang.Integer wordCount) { + this.wordCount = wordCount; + return this; + } + + /** + * Metadata for a youtube video source. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaYoutubeMetadata getYoutubeMetadata() { + return youtubeMetadata; + } + + /** + * Metadata for a youtube video source. + * @param youtubeMetadata youtubeMetadata or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSourceMetadata setYoutubeMetadata(GoogleCloudNotebooklmV1alphaYoutubeMetadata youtubeMetadata) { + this.youtubeMetadata = youtubeMetadata; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaSourceMetadata set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaSourceMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaSourceMetadata clone() { + return (GoogleCloudNotebooklmV1alphaSourceMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaSourceSettings.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaSourceSettings.java new file mode 100644 index 00000000000..3bb86ec1ec7 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaSourceSettings.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request). + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaSourceSettings extends com.google.api.client.json.GenericJson { + + /** + * Failure reason containing details about why a source failed to ingest. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaFailureReason failureReason; + + /** + * Status of the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Failure reason containing details about why a source failed to ingest. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaFailureReason getFailureReason() { + return failureReason; + } + + /** + * Failure reason containing details about why a source failed to ingest. + * @param failureReason failureReason or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSourceSettings setFailureReason(GoogleCloudNotebooklmV1alphaFailureReason failureReason) { + this.failureReason = failureReason; + return this; + } + + /** + * Status of the source. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Status of the source. + * @param status status or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaSourceSettings setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaSourceSettings set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaSourceSettings) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaSourceSettings clone() { + return (GoogleCloudNotebooklmV1alphaSourceSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContent.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContent.java new file mode 100644 index 00000000000..6f50b4c05b3 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContent.java @@ -0,0 +1,162 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * The "Content" messages refer to data the user wants to upload. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaUserContent extends com.google.api.client.json.GenericJson { + + /** + * Agentspace content uploaded as source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent agentspaceContent; + + /** + * The content from Google Drive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent googleDriveContent; + + /** + * The text content uploaded as source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaUserContentTextContent textContent; + + /** + * The video content uploaded as source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaUserContentVideoContent videoContent; + + /** + * The web content uploaded as source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudNotebooklmV1alphaUserContentWebContent webContent; + + /** + * Agentspace content uploaded as source. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent getAgentspaceContent() { + return agentspaceContent; + } + + /** + * Agentspace content uploaded as source. + * @param agentspaceContent agentspaceContent or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContent setAgentspaceContent(GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent agentspaceContent) { + this.agentspaceContent = agentspaceContent; + return this; + } + + /** + * The content from Google Drive. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent getGoogleDriveContent() { + return googleDriveContent; + } + + /** + * The content from Google Drive. + * @param googleDriveContent googleDriveContent or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContent setGoogleDriveContent(GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent googleDriveContent) { + this.googleDriveContent = googleDriveContent; + return this; + } + + /** + * The text content uploaded as source. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentTextContent getTextContent() { + return textContent; + } + + /** + * The text content uploaded as source. + * @param textContent textContent or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContent setTextContent(GoogleCloudNotebooklmV1alphaUserContentTextContent textContent) { + this.textContent = textContent; + return this; + } + + /** + * The video content uploaded as source. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentVideoContent getVideoContent() { + return videoContent; + } + + /** + * The video content uploaded as source. + * @param videoContent videoContent or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContent setVideoContent(GoogleCloudNotebooklmV1alphaUserContentVideoContent videoContent) { + this.videoContent = videoContent; + return this; + } + + /** + * The web content uploaded as source. + * @return value or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentWebContent getWebContent() { + return webContent; + } + + /** + * The web content uploaded as source. + * @param webContent webContent or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContent setWebContent(GoogleCloudNotebooklmV1alphaUserContentWebContent webContent) { + this.webContent = webContent; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaUserContent set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaUserContent) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaUserContent clone() { + return (GoogleCloudNotebooklmV1alphaUserContent) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent.java new file mode 100644 index 00000000000..65f7ad9e2b6 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent.java @@ -0,0 +1,129 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Agentspace content uploaded as source. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent extends com.google.api.client.json.GenericJson { + + /** + * Optional. The full resource name of the Agentspace document. Format: `projects/{project}/locati + * ons/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{do + * cument_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentName; + + /** + * Optional. Engine to verify the permission of the document. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String engineName; + + /** + * Optional. Resource name of the idea forge instance. Format: `projects/{project}/locations/{loca + * tion}/collections/{collection}/engines/{engine}/sessions/{session}/ideaForgeInstances/{instance + * }` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ideaforgeIdeaName; + + /** + * Optional. The full resource name of the Agentspace document. Format: `projects/{project}/locati + * ons/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{do + * cument_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentName() { + return documentName; + } + + /** + * Optional. The full resource name of the Agentspace document. Format: `projects/{project}/locati + * ons/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{do + * cument_id}`. + * @param documentName documentName or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent setDocumentName(java.lang.String documentName) { + this.documentName = documentName; + return this; + } + + /** + * Optional. Engine to verify the permission of the document. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`. + * @return value or {@code null} for none + */ + public java.lang.String getEngineName() { + return engineName; + } + + /** + * Optional. Engine to verify the permission of the document. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`. + * @param engineName engineName or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent setEngineName(java.lang.String engineName) { + this.engineName = engineName; + return this; + } + + /** + * Optional. Resource name of the idea forge instance. Format: `projects/{project}/locations/{loca + * tion}/collections/{collection}/engines/{engine}/sessions/{session}/ideaForgeInstances/{instance + * }` + * @return value or {@code null} for none + */ + public java.lang.String getIdeaforgeIdeaName() { + return ideaforgeIdeaName; + } + + /** + * Optional. Resource name of the idea forge instance. Format: `projects/{project}/locations/{loca + * tion}/collections/{collection}/engines/{engine}/sessions/{session}/ideaForgeInstances/{instance + * }` + * @param ideaforgeIdeaName ideaforgeIdeaName or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent setIdeaforgeIdeaName(java.lang.String ideaforgeIdeaName) { + this.ideaforgeIdeaName = ideaforgeIdeaName; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent clone() { + return (GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent.java new file mode 100644 index 00000000000..f4b993c7a01 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent.java @@ -0,0 +1,120 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * The content from Google Drive. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent extends com.google.api.client.json.GenericJson { + + /** + * The document id of the selected document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentId; + + /** + * The mime type of the selected document. This can be used to differentiate type of content + * selected in the drive picker. Use application/vnd.google-apps.document for Google Docs or + * application/vnd.google-apps.presentation for Google Slides. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * The name to be displayed for the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceName; + + /** + * The document id of the selected document. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentId() { + return documentId; + } + + /** + * The document id of the selected document. + * @param documentId documentId or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent setDocumentId(java.lang.String documentId) { + this.documentId = documentId; + return this; + } + + /** + * The mime type of the selected document. This can be used to differentiate type of content + * selected in the drive picker. Use application/vnd.google-apps.document for Google Docs or + * application/vnd.google-apps.presentation for Google Slides. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * The mime type of the selected document. This can be used to differentiate type of content + * selected in the drive picker. Use application/vnd.google-apps.document for Google Docs or + * application/vnd.google-apps.presentation for Google Slides. + * @param mimeType mimeType or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * The name to be displayed for the source. + * @return value or {@code null} for none + */ + public java.lang.String getSourceName() { + return sourceName; + } + + /** + * The name to be displayed for the source. + * @param sourceName sourceName or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent setSourceName(java.lang.String sourceName) { + this.sourceName = sourceName; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent clone() { + return (GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentTextContent.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentTextContent.java new file mode 100644 index 00000000000..0a3a12ea5b8 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentTextContent.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * The text content uploaded as source. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaUserContentTextContent extends com.google.api.client.json.GenericJson { + + /** + * The name to be displayed for the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String content; + + /** + * The display name of the text source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceName; + + /** + * The name to be displayed for the source. + * @return value or {@code null} for none + */ + public java.lang.String getContent() { + return content; + } + + /** + * The name to be displayed for the source. + * @param content content or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentTextContent setContent(java.lang.String content) { + this.content = content; + return this; + } + + /** + * The display name of the text source. + * @return value or {@code null} for none + */ + public java.lang.String getSourceName() { + return sourceName; + } + + /** + * The display name of the text source. + * @param sourceName sourceName or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentTextContent setSourceName(java.lang.String sourceName) { + this.sourceName = sourceName; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaUserContentTextContent set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaUserContentTextContent) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaUserContentTextContent clone() { + return (GoogleCloudNotebooklmV1alphaUserContentTextContent) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentVideoContent.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentVideoContent.java new file mode 100644 index 00000000000..4522008addd --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentVideoContent.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Video content uploaded as source. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaUserContentVideoContent extends com.google.api.client.json.GenericJson { + + /** + * The youtube url of the video content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String youtubeUrl; + + /** + * The youtube url of the video content. + * @return value or {@code null} for none + */ + public java.lang.String getYoutubeUrl() { + return youtubeUrl; + } + + /** + * The youtube url of the video content. + * @param youtubeUrl youtubeUrl or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentVideoContent setYoutubeUrl(java.lang.String youtubeUrl) { + this.youtubeUrl = youtubeUrl; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaUserContentVideoContent set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaUserContentVideoContent) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaUserContentVideoContent clone() { + return (GoogleCloudNotebooklmV1alphaUserContentVideoContent) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentWebContent.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentWebContent.java new file mode 100644 index 00000000000..5749665885a --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaUserContentWebContent.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * The web content uploaded as source. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaUserContentWebContent extends com.google.api.client.json.GenericJson { + + /** + * The name to be displayed for the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceName; + + /** + * If URL is supplied, will fetch the webpage in the backend. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * The name to be displayed for the source. + * @return value or {@code null} for none + */ + public java.lang.String getSourceName() { + return sourceName; + } + + /** + * The name to be displayed for the source. + * @param sourceName sourceName or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentWebContent setSourceName(java.lang.String sourceName) { + this.sourceName = sourceName; + return this; + } + + /** + * If URL is supplied, will fetch the webpage in the backend. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * If URL is supplied, will fetch the webpage in the backend. + * @param url url or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaUserContentWebContent setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaUserContentWebContent set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaUserContentWebContent) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaUserContentWebContent clone() { + return (GoogleCloudNotebooklmV1alphaUserContentWebContent) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaYoutubeMetadata.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaYoutubeMetadata.java new file mode 100644 index 00000000000..e7d0e5f0672 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudNotebooklmV1alphaYoutubeMetadata.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Metadata about a youtube video source. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudNotebooklmV1alphaYoutubeMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The channel name of the youtube video. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String channelName; + + /** + * Output only. The id of the youtube video. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String videoId; + + /** + * Output only. The channel name of the youtube video. + * @return value or {@code null} for none + */ + public java.lang.String getChannelName() { + return channelName; + } + + /** + * Output only. The channel name of the youtube video. + * @param channelName channelName or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaYoutubeMetadata setChannelName(java.lang.String channelName) { + this.channelName = channelName; + return this; + } + + /** + * Output only. The id of the youtube video. + * @return value or {@code null} for none + */ + public java.lang.String getVideoId() { + return videoId; + } + + /** + * Output only. The id of the youtube video. + * @param videoId videoId or {@code null} for none + */ + public GoogleCloudNotebooklmV1alphaYoutubeMetadata setVideoId(java.lang.String videoId) { + this.videoId = videoId; + return this; + } + + @Override + public GoogleCloudNotebooklmV1alphaYoutubeMetadata set(String fieldName, Object value) { + return (GoogleCloudNotebooklmV1alphaYoutubeMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudNotebooklmV1alphaYoutubeMetadata clone() { + return (GoogleCloudNotebooklmV1alphaYoutubeMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/pom.xml b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/pom.xml index 345a8c0c8d9..546646de052 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@