All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.cloudasset.v1.model.QueryAssetsResponse Maven / Gradle / Ivy

/*
 * 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.cloudasset.v1.model;

/**
 * QueryAssets response.
 *
 * 

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 Cloud Asset 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 QueryAssetsResponse extends com.google.api.client.json.GenericJson { /** * The query response, which can be either an `error` or a valid `response`. If `done` == `false` * and the query result is being saved in an output, the output_config field will be set. If * `done` == `true`, exactly one of `error`, `query_result` or `output_config` will be set. [done] * is unset unless the [QueryAssetsResponse] contains a [QueryAssetsResponse.job_reference]. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean done; /** * Error status. * The value may be {@code null}. */ @com.google.api.client.util.Key private Status error; /** * Reference to a query job. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String jobReference; /** * Output configuration, which indicates that instead of being returned in an API response on the * fly, the query result will be saved in a specific output. * The value may be {@code null}. */ @com.google.api.client.util.Key private QueryAssetsOutputConfig outputConfig; /** * Result of the query. * The value may be {@code null}. */ @com.google.api.client.util.Key private QueryResult queryResult; /** * The query response, which can be either an `error` or a valid `response`. If `done` == `false` * and the query result is being saved in an output, the output_config field will be set. If * `done` == `true`, exactly one of `error`, `query_result` or `output_config` will be set. [done] * is unset unless the [QueryAssetsResponse] contains a [QueryAssetsResponse.job_reference]. * @return value or {@code null} for none */ public java.lang.Boolean getDone() { return done; } /** * The query response, which can be either an `error` or a valid `response`. If `done` == `false` * and the query result is being saved in an output, the output_config field will be set. If * `done` == `true`, exactly one of `error`, `query_result` or `output_config` will be set. [done] * is unset unless the [QueryAssetsResponse] contains a [QueryAssetsResponse.job_reference]. * @param done done or {@code null} for none */ public QueryAssetsResponse setDone(java.lang.Boolean done) { this.done = done; return this; } /** * Error status. * @return value or {@code null} for none */ public Status getError() { return error; } /** * Error status. * @param error error or {@code null} for none */ public QueryAssetsResponse setError(Status error) { this.error = error; return this; } /** * Reference to a query job. * @return value or {@code null} for none */ public java.lang.String getJobReference() { return jobReference; } /** * Reference to a query job. * @param jobReference jobReference or {@code null} for none */ public QueryAssetsResponse setJobReference(java.lang.String jobReference) { this.jobReference = jobReference; return this; } /** * Output configuration, which indicates that instead of being returned in an API response on the * fly, the query result will be saved in a specific output. * @return value or {@code null} for none */ public QueryAssetsOutputConfig getOutputConfig() { return outputConfig; } /** * Output configuration, which indicates that instead of being returned in an API response on the * fly, the query result will be saved in a specific output. * @param outputConfig outputConfig or {@code null} for none */ public QueryAssetsResponse setOutputConfig(QueryAssetsOutputConfig outputConfig) { this.outputConfig = outputConfig; return this; } /** * Result of the query. * @return value or {@code null} for none */ public QueryResult getQueryResult() { return queryResult; } /** * Result of the query. * @param queryResult queryResult or {@code null} for none */ public QueryAssetsResponse setQueryResult(QueryResult queryResult) { this.queryResult = queryResult; return this; } @Override public QueryAssetsResponse set(String fieldName, Object value) { return (QueryAssetsResponse) super.set(fieldName, value); } @Override public QueryAssetsResponse clone() { return (QueryAssetsResponse) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy