{@link AccessSqlPlan#initialize(com.google.api.client.googleapis.services.Abstra - * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking - * the constructor.
+ * optional parameters, call the {@link AccessNativeBuildInfo#execute()} method to invoke the + * remote operation.{@link AccessNativeBuildInfo#initialize(com.google.api.client.googleapis. + * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
* * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @since 1.13 */ - protected AccessSqlPlan(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSparkApplicationSqlSparkPlanGraphResponse.class); + protected AccessNativeBuildInfo(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSparkApplicationNativeBuildInfoResponse.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(), @@ -3015,58 +3014,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AccessSqlPlan set$Xgafv(java.lang.String $Xgafv) { - return (AccessSqlPlan) super.set$Xgafv($Xgafv); + public AccessNativeBuildInfo set$Xgafv(java.lang.String $Xgafv) { + return (AccessNativeBuildInfo) super.set$Xgafv($Xgafv); } @Override - public AccessSqlPlan setAccessToken(java.lang.String accessToken) { - return (AccessSqlPlan) super.setAccessToken(accessToken); + public AccessNativeBuildInfo setAccessToken(java.lang.String accessToken) { + return (AccessNativeBuildInfo) super.setAccessToken(accessToken); } @Override - public AccessSqlPlan setAlt(java.lang.String alt) { - return (AccessSqlPlan) super.setAlt(alt); + public AccessNativeBuildInfo setAlt(java.lang.String alt) { + return (AccessNativeBuildInfo) super.setAlt(alt); } @Override - public AccessSqlPlan setCallback(java.lang.String callback) { - return (AccessSqlPlan) super.setCallback(callback); + public AccessNativeBuildInfo setCallback(java.lang.String callback) { + return (AccessNativeBuildInfo) super.setCallback(callback); } @Override - public AccessSqlPlan setFields(java.lang.String fields) { - return (AccessSqlPlan) super.setFields(fields); + public AccessNativeBuildInfo setFields(java.lang.String fields) { + return (AccessNativeBuildInfo) super.setFields(fields); } @Override - public AccessSqlPlan setKey(java.lang.String key) { - return (AccessSqlPlan) super.setKey(key); + public AccessNativeBuildInfo setKey(java.lang.String key) { + return (AccessNativeBuildInfo) super.setKey(key); } @Override - public AccessSqlPlan setOauthToken(java.lang.String oauthToken) { - return (AccessSqlPlan) super.setOauthToken(oauthToken); + public AccessNativeBuildInfo setOauthToken(java.lang.String oauthToken) { + return (AccessNativeBuildInfo) super.setOauthToken(oauthToken); } @Override - public AccessSqlPlan setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AccessSqlPlan) super.setPrettyPrint(prettyPrint); + public AccessNativeBuildInfo setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AccessNativeBuildInfo) super.setPrettyPrint(prettyPrint); } @Override - public AccessSqlPlan setQuotaUser(java.lang.String quotaUser) { - return (AccessSqlPlan) super.setQuotaUser(quotaUser); + public AccessNativeBuildInfo setQuotaUser(java.lang.String quotaUser) { + return (AccessNativeBuildInfo) super.setQuotaUser(quotaUser); } @Override - public AccessSqlPlan setUploadType(java.lang.String uploadType) { - return (AccessSqlPlan) super.setUploadType(uploadType); + public AccessNativeBuildInfo setUploadType(java.lang.String uploadType) { + return (AccessNativeBuildInfo) super.setUploadType(uploadType); } @Override - public AccessSqlPlan setUploadProtocol(java.lang.String uploadProtocol) { - return (AccessSqlPlan) super.setUploadProtocol(uploadProtocol); + public AccessNativeBuildInfo setUploadProtocol(java.lang.String uploadProtocol) { + return (AccessNativeBuildInfo) super.setUploadProtocol(uploadProtocol); } /** @@ -3089,7 +3088,7 @@ public java.lang.String getName() { * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID * " */ - public AccessSqlPlan setName(java.lang.String name) { + public AccessNativeBuildInfo 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 " + @@ -3099,22 +3098,6 @@ public AccessSqlPlan setName(java.lang.String name) { return this; } - /** Required. Execution ID */ - @com.google.api.client.util.Key - private java.lang.Long executionId; - - /** Required. Execution ID - */ - public java.lang.Long getExecutionId() { - return executionId; - } - - /** Required. Execution ID */ - public AccessSqlPlan setExecutionId(java.lang.Long executionId) { - this.executionId = executionId; - return this; - } - /** Required. Parent (Batch) resource reference. */ @com.google.api.client.util.Key private java.lang.String parent; @@ -3126,60 +3109,61 @@ public java.lang.String getParent() { } /** Required. Parent (Batch) resource reference. */ - public AccessSqlPlan setParent(java.lang.String parent) { + public AccessNativeBuildInfo setParent(java.lang.String parent) { this.parent = parent; return this; } @Override - public AccessSqlPlan set(String parameterName, Object value) { - return (AccessSqlPlan) super.set(parameterName, value); + public AccessNativeBuildInfo set(String parameterName, Object value) { + return (AccessNativeBuildInfo) super.set(parameterName, value); } } /** - * Obtain data corresponding to a particular SQL Query for a Spark Application. + * Obtain data corresponding to a particular Native SQL Query for a Spark Application. * - * Create a request for the method "sparkApplications.accessSqlQuery". + * Create a request for the method "sparkApplications.accessNativeSqlQuery". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link AccessSqlQuery#execute()} method to invoke the remote operation. + * parameters, call the {@link AccessNativeSqlQuery#execute()} method to invoke the remote + * operation. * * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @return the request */ - public AccessSqlQuery accessSqlQuery(java.lang.String name) throws java.io.IOException { - AccessSqlQuery result = new AccessSqlQuery(name); + public AccessNativeSqlQuery accessNativeSqlQuery(java.lang.String name) throws java.io.IOException { + AccessNativeSqlQuery result = new AccessNativeSqlQuery(name); initialize(result); return result; } - public class AccessSqlQuery extends DataprocRequest{@link AccessSqlQuery#initialize(com.google.api.client.googleapis.services.Abstr - * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking - * the constructor.
+ * optional parameters, call the {@link AccessNativeSqlQuery#execute()} method to invoke the + * remote operation.{@link AccessNativeSqlQuery#initialize(com.google.api.client.googleapis.s + * ervices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
* * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @since 1.13 */ - protected AccessSqlQuery(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSparkApplicationSqlQueryResponse.class); + protected AccessNativeSqlQuery(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSparkApplicationNativeSqlQueryResponse.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(), @@ -3199,58 +3183,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AccessSqlQuery set$Xgafv(java.lang.String $Xgafv) { - return (AccessSqlQuery) super.set$Xgafv($Xgafv); + public AccessNativeSqlQuery set$Xgafv(java.lang.String $Xgafv) { + return (AccessNativeSqlQuery) super.set$Xgafv($Xgafv); } @Override - public AccessSqlQuery setAccessToken(java.lang.String accessToken) { - return (AccessSqlQuery) super.setAccessToken(accessToken); + public AccessNativeSqlQuery setAccessToken(java.lang.String accessToken) { + return (AccessNativeSqlQuery) super.setAccessToken(accessToken); } @Override - public AccessSqlQuery setAlt(java.lang.String alt) { - return (AccessSqlQuery) super.setAlt(alt); + public AccessNativeSqlQuery setAlt(java.lang.String alt) { + return (AccessNativeSqlQuery) super.setAlt(alt); } @Override - public AccessSqlQuery setCallback(java.lang.String callback) { - return (AccessSqlQuery) super.setCallback(callback); + public AccessNativeSqlQuery setCallback(java.lang.String callback) { + return (AccessNativeSqlQuery) super.setCallback(callback); } @Override - public AccessSqlQuery setFields(java.lang.String fields) { - return (AccessSqlQuery) super.setFields(fields); + public AccessNativeSqlQuery setFields(java.lang.String fields) { + return (AccessNativeSqlQuery) super.setFields(fields); } @Override - public AccessSqlQuery setKey(java.lang.String key) { - return (AccessSqlQuery) super.setKey(key); + public AccessNativeSqlQuery setKey(java.lang.String key) { + return (AccessNativeSqlQuery) super.setKey(key); } @Override - public AccessSqlQuery setOauthToken(java.lang.String oauthToken) { - return (AccessSqlQuery) super.setOauthToken(oauthToken); + public AccessNativeSqlQuery setOauthToken(java.lang.String oauthToken) { + return (AccessNativeSqlQuery) super.setOauthToken(oauthToken); } @Override - public AccessSqlQuery setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AccessSqlQuery) super.setPrettyPrint(prettyPrint); + public AccessNativeSqlQuery setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AccessNativeSqlQuery) super.setPrettyPrint(prettyPrint); } @Override - public AccessSqlQuery setQuotaUser(java.lang.String quotaUser) { - return (AccessSqlQuery) super.setQuotaUser(quotaUser); + public AccessNativeSqlQuery setQuotaUser(java.lang.String quotaUser) { + return (AccessNativeSqlQuery) super.setQuotaUser(quotaUser); } @Override - public AccessSqlQuery setUploadType(java.lang.String uploadType) { - return (AccessSqlQuery) super.setUploadType(uploadType); + public AccessNativeSqlQuery setUploadType(java.lang.String uploadType) { + return (AccessNativeSqlQuery) super.setUploadType(uploadType); } @Override - public AccessSqlQuery setUploadProtocol(java.lang.String uploadProtocol) { - return (AccessSqlQuery) super.setUploadProtocol(uploadProtocol); + public AccessNativeSqlQuery setUploadProtocol(java.lang.String uploadProtocol) { + return (AccessNativeSqlQuery) super.setUploadProtocol(uploadProtocol); } /** @@ -3273,7 +3257,7 @@ public java.lang.String getName() { * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID * " */ - public AccessSqlQuery setName(java.lang.String name) { + public AccessNativeSqlQuery 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 " + @@ -3283,28 +3267,6 @@ public AccessSqlQuery setName(java.lang.String name) { return this; } - /** - * Optional. Lists/ hides details of Spark plan nodes. True is set to list and false to - * hide. - */ - @com.google.api.client.util.Key - private java.lang.Boolean details; - - /** Optional. Lists/ hides details of Spark plan nodes. True is set to list and false to hide. - */ - public java.lang.Boolean getDetails() { - return details; - } - - /** - * Optional. Lists/ hides details of Spark plan nodes. True is set to list and false to - * hide. - */ - public AccessSqlQuery setDetails(java.lang.Boolean details) { - this.details = details; - return this; - } - /** Required. Execution ID */ @com.google.api.client.util.Key private java.lang.Long executionId; @@ -3316,7 +3278,7 @@ public java.lang.Long getExecutionId() { } /** Required. Execution ID */ - public AccessSqlQuery setExecutionId(java.lang.Long executionId) { + public AccessNativeSqlQuery setExecutionId(java.lang.Long executionId) { this.executionId = executionId; return this; } @@ -3332,76 +3294,62 @@ public java.lang.String getParent() { } /** Required. Parent (Batch) resource reference. */ - public AccessSqlQuery setParent(java.lang.String parent) { + public AccessNativeSqlQuery setParent(java.lang.String parent) { this.parent = parent; return this; } - /** Optional. Enables/ disables physical plan description on demand */ - @com.google.api.client.util.Key - private java.lang.Boolean planDescription; - - /** Optional. Enables/ disables physical plan description on demand - */ - public java.lang.Boolean getPlanDescription() { - return planDescription; - } - - /** Optional. Enables/ disables physical plan description on demand */ - public AccessSqlQuery setPlanDescription(java.lang.Boolean planDescription) { - this.planDescription = planDescription; - return this; - } - @Override - public AccessSqlQuery set(String parameterName, Object value) { - return (AccessSqlQuery) super.set(parameterName, value); + public AccessNativeSqlQuery set(String parameterName, Object value) { + return (AccessNativeSqlQuery) super.set(parameterName, value); } } /** - * Obtain data corresponding to a spark stage attempt for a Spark Application. + * Obtain Spark Plan Graph for a Spark Application SQL execution. Limits the number of clusters + * returned as part of the graph to 10000. * - * Create a request for the method "sparkApplications.accessStageAttempt". + * Create a request for the method "sparkApplications.accessSqlPlan". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link AccessStageAttempt#execute()} method to invoke the remote operation. + * parameters, call the {@link AccessSqlPlan#execute()} method to invoke the remote operation. * * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @return the request */ - public AccessStageAttempt accessStageAttempt(java.lang.String name) throws java.io.IOException { - AccessStageAttempt result = new AccessStageAttempt(name); + public AccessSqlPlan accessSqlPlan(java.lang.String name) throws java.io.IOException { + AccessSqlPlan result = new AccessSqlPlan(name); initialize(result); return result; } - public class AccessStageAttempt extends DataprocRequest{@link AccessStageAttempt#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
+ * optional parameters, call the {@link AccessSqlPlan#execute()} method to invoke the remote + * operation.{@link AccessSqlPlan#initialize(com.google.api.client.googleapis.services.Abstra + * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
* * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @since 1.13 */ - protected AccessStageAttempt(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSparkApplicationStageAttemptResponse.class); + protected AccessSqlPlan(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSparkApplicationSqlSparkPlanGraphResponse.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(), @@ -3421,58 +3369,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AccessStageAttempt set$Xgafv(java.lang.String $Xgafv) { - return (AccessStageAttempt) super.set$Xgafv($Xgafv); + public AccessSqlPlan set$Xgafv(java.lang.String $Xgafv) { + return (AccessSqlPlan) super.set$Xgafv($Xgafv); } @Override - public AccessStageAttempt setAccessToken(java.lang.String accessToken) { - return (AccessStageAttempt) super.setAccessToken(accessToken); + public AccessSqlPlan setAccessToken(java.lang.String accessToken) { + return (AccessSqlPlan) super.setAccessToken(accessToken); } @Override - public AccessStageAttempt setAlt(java.lang.String alt) { - return (AccessStageAttempt) super.setAlt(alt); + public AccessSqlPlan setAlt(java.lang.String alt) { + return (AccessSqlPlan) super.setAlt(alt); } @Override - public AccessStageAttempt setCallback(java.lang.String callback) { - return (AccessStageAttempt) super.setCallback(callback); + public AccessSqlPlan setCallback(java.lang.String callback) { + return (AccessSqlPlan) super.setCallback(callback); } @Override - public AccessStageAttempt setFields(java.lang.String fields) { - return (AccessStageAttempt) super.setFields(fields); + public AccessSqlPlan setFields(java.lang.String fields) { + return (AccessSqlPlan) super.setFields(fields); } @Override - public AccessStageAttempt setKey(java.lang.String key) { - return (AccessStageAttempt) super.setKey(key); + public AccessSqlPlan setKey(java.lang.String key) { + return (AccessSqlPlan) super.setKey(key); } @Override - public AccessStageAttempt setOauthToken(java.lang.String oauthToken) { - return (AccessStageAttempt) super.setOauthToken(oauthToken); + public AccessSqlPlan setOauthToken(java.lang.String oauthToken) { + return (AccessSqlPlan) super.setOauthToken(oauthToken); } @Override - public AccessStageAttempt setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AccessStageAttempt) super.setPrettyPrint(prettyPrint); + public AccessSqlPlan setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AccessSqlPlan) super.setPrettyPrint(prettyPrint); } @Override - public AccessStageAttempt setQuotaUser(java.lang.String quotaUser) { - return (AccessStageAttempt) super.setQuotaUser(quotaUser); + public AccessSqlPlan setQuotaUser(java.lang.String quotaUser) { + return (AccessSqlPlan) super.setQuotaUser(quotaUser); } @Override - public AccessStageAttempt setUploadType(java.lang.String uploadType) { - return (AccessStageAttempt) super.setUploadType(uploadType); + public AccessSqlPlan setUploadType(java.lang.String uploadType) { + return (AccessSqlPlan) super.setUploadType(uploadType); } @Override - public AccessStageAttempt setUploadProtocol(java.lang.String uploadProtocol) { - return (AccessStageAttempt) super.setUploadProtocol(uploadProtocol); + public AccessSqlPlan setUploadProtocol(java.lang.String uploadProtocol) { + return (AccessSqlPlan) super.setUploadProtocol(uploadProtocol); } /** @@ -3495,7 +3443,7 @@ public java.lang.String getName() { * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID * " */ - public AccessStageAttempt setName(java.lang.String name) { + public AccessSqlPlan 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 " + @@ -3505,133 +3453,87 @@ public AccessStageAttempt setName(java.lang.String name) { return this; } - /** Required. Parent (Batch) resource reference. */ + /** Required. Execution ID */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.Long executionId; - /** Required. Parent (Batch) resource reference. + /** Required. Execution ID */ - public java.lang.String getParent() { - return parent; + public java.lang.Long getExecutionId() { + return executionId; } - /** Required. Parent (Batch) resource reference. */ - public AccessStageAttempt setParent(java.lang.String parent) { - this.parent = parent; + /** Required. Execution ID */ + public AccessSqlPlan setExecutionId(java.lang.Long executionId) { + this.executionId = executionId; return this; } - /** Required. Stage Attempt ID */ + /** Required. Parent (Batch) resource reference. */ @com.google.api.client.util.Key - private java.lang.Integer stageAttemptId; + private java.lang.String parent; - /** Required. Stage Attempt ID + /** Required. Parent (Batch) resource reference. */ - public java.lang.Integer getStageAttemptId() { - return stageAttemptId; + public java.lang.String getParent() { + return parent; } - /** Required. Stage Attempt ID */ - public AccessStageAttempt setStageAttemptId(java.lang.Integer stageAttemptId) { - this.stageAttemptId = stageAttemptId; - return this; - } - - /** Required. Stage ID */ - @com.google.api.client.util.Key - private java.lang.Long stageId; - - /** Required. Stage ID - */ - public java.lang.Long getStageId() { - return stageId; - } - - /** Required. Stage ID */ - public AccessStageAttempt setStageId(java.lang.Long stageId) { - this.stageId = stageId; - return this; - } - - /** - * Optional. The list of summary metrics fields to include. Empty list will default to - * skip all summary metrics fields. Example, if the response should include - * TaskQuantileMetrics, the request should have task_quantile_metrics in - * summary_metrics_mask field - */ - @com.google.api.client.util.Key - private String summaryMetricsMask; - - /** Optional. The list of summary metrics fields to include. Empty list will default to skip all - summary metrics fields. Example, if the response should include TaskQuantileMetrics, the request - should have task_quantile_metrics in summary_metrics_mask field - */ - public String getSummaryMetricsMask() { - return summaryMetricsMask; - } - - /** - * Optional. The list of summary metrics fields to include. Empty list will default to - * skip all summary metrics fields. Example, if the response should include - * TaskQuantileMetrics, the request should have task_quantile_metrics in - * summary_metrics_mask field - */ - public AccessStageAttempt setSummaryMetricsMask(String summaryMetricsMask) { - this.summaryMetricsMask = summaryMetricsMask; + /** Required. Parent (Batch) resource reference. */ + public AccessSqlPlan setParent(java.lang.String parent) { + this.parent = parent; return this; } @Override - public AccessStageAttempt set(String parameterName, Object value) { - return (AccessStageAttempt) super.set(parameterName, value); + public AccessSqlPlan set(String parameterName, Object value) { + return (AccessSqlPlan) super.set(parameterName, value); } } /** - * Obtain RDD operation graph for a Spark Application Stage. Limits the number of clusters returned - * as part of the graph to 10000. + * Obtain data corresponding to a particular SQL Query for a Spark Application. * - * Create a request for the method "sparkApplications.accessStageRddGraph". + * Create a request for the method "sparkApplications.accessSqlQuery". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link AccessStageRddGraph#execute()} method to invoke the remote operation. + * parameters, call the {@link AccessSqlQuery#execute()} method to invoke the remote operation. * * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @return the request */ - public AccessStageRddGraph accessStageRddGraph(java.lang.String name) throws java.io.IOException { - AccessStageRddGraph result = new AccessStageRddGraph(name); + public AccessSqlQuery accessSqlQuery(java.lang.String name) throws java.io.IOException { + AccessSqlQuery result = new AccessSqlQuery(name); initialize(result); return result; } - public class AccessStageRddGraph extends DataprocRequest{@link AccessStageRddGraph#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 AccessSqlQuery#execute()} method to invoke the remote + * operation.{@link AccessSqlQuery#initialize(com.google.api.client.googleapis.services.Abstr + * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
* * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @since 1.13 */ - protected AccessStageRddGraph(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSparkApplicationStageRddOperationGraphResponse.class); + protected AccessSqlQuery(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSparkApplicationSqlQueryResponse.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(), @@ -3651,58 +3553,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AccessStageRddGraph set$Xgafv(java.lang.String $Xgafv) { - return (AccessStageRddGraph) super.set$Xgafv($Xgafv); + public AccessSqlQuery set$Xgafv(java.lang.String $Xgafv) { + return (AccessSqlQuery) super.set$Xgafv($Xgafv); } @Override - public AccessStageRddGraph setAccessToken(java.lang.String accessToken) { - return (AccessStageRddGraph) super.setAccessToken(accessToken); + public AccessSqlQuery setAccessToken(java.lang.String accessToken) { + return (AccessSqlQuery) super.setAccessToken(accessToken); } @Override - public AccessStageRddGraph setAlt(java.lang.String alt) { - return (AccessStageRddGraph) super.setAlt(alt); + public AccessSqlQuery setAlt(java.lang.String alt) { + return (AccessSqlQuery) super.setAlt(alt); } @Override - public AccessStageRddGraph setCallback(java.lang.String callback) { - return (AccessStageRddGraph) super.setCallback(callback); + public AccessSqlQuery setCallback(java.lang.String callback) { + return (AccessSqlQuery) super.setCallback(callback); } @Override - public AccessStageRddGraph setFields(java.lang.String fields) { - return (AccessStageRddGraph) super.setFields(fields); + public AccessSqlQuery setFields(java.lang.String fields) { + return (AccessSqlQuery) super.setFields(fields); } @Override - public AccessStageRddGraph setKey(java.lang.String key) { - return (AccessStageRddGraph) super.setKey(key); + public AccessSqlQuery setKey(java.lang.String key) { + return (AccessSqlQuery) super.setKey(key); } @Override - public AccessStageRddGraph setOauthToken(java.lang.String oauthToken) { - return (AccessStageRddGraph) super.setOauthToken(oauthToken); + public AccessSqlQuery setOauthToken(java.lang.String oauthToken) { + return (AccessSqlQuery) super.setOauthToken(oauthToken); } @Override - public AccessStageRddGraph setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AccessStageRddGraph) super.setPrettyPrint(prettyPrint); + public AccessSqlQuery setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AccessSqlQuery) super.setPrettyPrint(prettyPrint); } @Override - public AccessStageRddGraph setQuotaUser(java.lang.String quotaUser) { - return (AccessStageRddGraph) super.setQuotaUser(quotaUser); + public AccessSqlQuery setQuotaUser(java.lang.String quotaUser) { + return (AccessSqlQuery) super.setQuotaUser(quotaUser); } @Override - public AccessStageRddGraph setUploadType(java.lang.String uploadType) { - return (AccessStageRddGraph) super.setUploadType(uploadType); + public AccessSqlQuery setUploadType(java.lang.String uploadType) { + return (AccessSqlQuery) super.setUploadType(uploadType); } @Override - public AccessStageRddGraph setUploadProtocol(java.lang.String uploadProtocol) { - return (AccessStageRddGraph) super.setUploadProtocol(uploadProtocol); + public AccessSqlQuery setUploadProtocol(java.lang.String uploadProtocol) { + return (AccessSqlQuery) super.setUploadProtocol(uploadProtocol); } /** @@ -3725,7 +3627,7 @@ public java.lang.String getName() { * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID * " */ - public AccessStageRddGraph setName(java.lang.String name) { + public AccessSqlQuery 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 " + @@ -3735,6 +3637,44 @@ public AccessStageRddGraph setName(java.lang.String name) { return this; } + /** + * Optional. Lists/ hides details of Spark plan nodes. True is set to list and false to + * hide. + */ + @com.google.api.client.util.Key + private java.lang.Boolean details; + + /** Optional. Lists/ hides details of Spark plan nodes. True is set to list and false to hide. + */ + public java.lang.Boolean getDetails() { + return details; + } + + /** + * Optional. Lists/ hides details of Spark plan nodes. True is set to list and false to + * hide. + */ + public AccessSqlQuery setDetails(java.lang.Boolean details) { + this.details = details; + return this; + } + + /** Required. Execution ID */ + @com.google.api.client.util.Key + private java.lang.Long executionId; + + /** Required. Execution ID + */ + public java.lang.Long getExecutionId() { + return executionId; + } + + /** Required. Execution ID */ + public AccessSqlQuery setExecutionId(java.lang.Long executionId) { + this.executionId = executionId; + return this; + } + /** Required. Parent (Batch) resource reference. */ @com.google.api.client.util.Key private java.lang.String parent; @@ -3746,79 +3686,81 @@ public java.lang.String getParent() { } /** Required. Parent (Batch) resource reference. */ - public AccessStageRddGraph setParent(java.lang.String parent) { + public AccessSqlQuery setParent(java.lang.String parent) { this.parent = parent; return this; } - /** Required. Stage ID */ + /** Optional. Enables/ disables physical plan description on demand */ @com.google.api.client.util.Key - private java.lang.Long stageId; + private java.lang.Boolean planDescription; - /** Required. Stage ID + /** Optional. Enables/ disables physical plan description on demand */ - public java.lang.Long getStageId() { - return stageId; + public java.lang.Boolean getPlanDescription() { + return planDescription; } - /** Required. Stage ID */ - public AccessStageRddGraph setStageId(java.lang.Long stageId) { - this.stageId = stageId; + /** Optional. Enables/ disables physical plan description on demand */ + public AccessSqlQuery setPlanDescription(java.lang.Boolean planDescription) { + this.planDescription = planDescription; return this; } @Override - public AccessStageRddGraph set(String parameterName, Object value) { - return (AccessStageRddGraph) super.set(parameterName, value); + public AccessSqlQuery set(String parameterName, Object value) { + return (AccessSqlQuery) super.set(parameterName, value); } } /** - * Obtain high level information and list of Spark Applications corresponding to a batch + * Obtain data corresponding to a spark stage attempt for a Spark Application. * - * Create a request for the method "sparkApplications.search". + * Create a request for the method "sparkApplications.accessStageAttempt". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link Search#execute()} method to invoke the remote operation. + * parameters, call the {@link AccessStageAttempt#execute()} method to invoke the remote operation. * - * @param parent Required. The fully qualified name of the batch to retrieve in the format - * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID" + * @param name Required. The fully qualified name of the batch to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT + * ION_ID" * @return the request */ - public Search search(java.lang.String parent) throws java.io.IOException { - Search result = new Search(parent); + public AccessStageAttempt accessStageAttempt(java.lang.String name) throws java.io.IOException { + AccessStageAttempt result = new AccessStageAttempt(name); initialize(result); return result; } - public class Search extends DataprocRequest{@link - * Search#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 AccessStageAttempt#execute()} method to invoke the remote + * operation.{@link AccessStageAttempt#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 fully qualified name of the batch to retrieve in the format - * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID" + * @param name Required. The fully qualified name of the batch to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT + * ION_ID" * @since 1.13 */ - protected Search(java.lang.String parent) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected AccessStageAttempt(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSparkApplicationStageAttemptResponse.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/batches/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$"); } } @@ -3833,264 +3775,217 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Search set$Xgafv(java.lang.String $Xgafv) { - return (Search) super.set$Xgafv($Xgafv); + public AccessStageAttempt set$Xgafv(java.lang.String $Xgafv) { + return (AccessStageAttempt) super.set$Xgafv($Xgafv); } @Override - public Search setAccessToken(java.lang.String accessToken) { - return (Search) super.setAccessToken(accessToken); + public AccessStageAttempt setAccessToken(java.lang.String accessToken) { + return (AccessStageAttempt) super.setAccessToken(accessToken); } @Override - public Search setAlt(java.lang.String alt) { - return (Search) super.setAlt(alt); + public AccessStageAttempt setAlt(java.lang.String alt) { + return (AccessStageAttempt) super.setAlt(alt); } @Override - public Search setCallback(java.lang.String callback) { - return (Search) super.setCallback(callback); + public AccessStageAttempt setCallback(java.lang.String callback) { + return (AccessStageAttempt) super.setCallback(callback); } @Override - public Search setFields(java.lang.String fields) { - return (Search) super.setFields(fields); + public AccessStageAttempt setFields(java.lang.String fields) { + return (AccessStageAttempt) super.setFields(fields); } @Override - public Search setKey(java.lang.String key) { - return (Search) super.setKey(key); + public AccessStageAttempt setKey(java.lang.String key) { + return (AccessStageAttempt) super.setKey(key); } @Override - public Search setOauthToken(java.lang.String oauthToken) { - return (Search) super.setOauthToken(oauthToken); + public AccessStageAttempt setOauthToken(java.lang.String oauthToken) { + return (AccessStageAttempt) super.setOauthToken(oauthToken); } @Override - public Search setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Search) super.setPrettyPrint(prettyPrint); + public AccessStageAttempt setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AccessStageAttempt) super.setPrettyPrint(prettyPrint); } @Override - public Search setQuotaUser(java.lang.String quotaUser) { - return (Search) super.setQuotaUser(quotaUser); + public AccessStageAttempt setQuotaUser(java.lang.String quotaUser) { + return (AccessStageAttempt) super.setQuotaUser(quotaUser); } @Override - public Search setUploadType(java.lang.String uploadType) { - return (Search) super.setUploadType(uploadType); + public AccessStageAttempt setUploadType(java.lang.String uploadType) { + return (AccessStageAttempt) super.setUploadType(uploadType); } @Override - public Search setUploadProtocol(java.lang.String uploadProtocol) { - return (Search) super.setUploadProtocol(uploadProtocol); + public AccessStageAttempt setUploadProtocol(java.lang.String uploadProtocol) { + return (AccessStageAttempt) super.setUploadProtocol(uploadProtocol); } /** - * Required. The fully qualified name of the batch to retrieve in the format - * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID" + * Required. The fully qualified name of the batch to retrieve in the format "projects/P + * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID + * " */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; /** Required. The fully qualified name of the batch to retrieve in the format - "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID" + "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID" */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The fully qualified name of the batch to retrieve in the format - * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID" + * Required. The fully qualified name of the batch to retrieve in the format "projects/P + * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID + * " */ - public Search setParent(java.lang.String parent) { + public AccessStageAttempt setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/batches/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$"); } - this.parent = parent; - return this; - } - - /** Optional. Search only applications in the chosen state. */ - @com.google.api.client.util.Key - private java.lang.String applicationStatus; - - /** Optional. Search only applications in the chosen state. - */ - public java.lang.String getApplicationStatus() { - return applicationStatus; - } - - /** Optional. Search only applications in the chosen state. */ - public Search setApplicationStatus(java.lang.String applicationStatus) { - this.applicationStatus = applicationStatus; - return this; - } - - /** Optional. Latest end timestamp to list. */ - @com.google.api.client.util.Key - private String maxEndTime; - - /** Optional. Latest end timestamp to list. - */ - public String getMaxEndTime() { - return maxEndTime; - } - - /** Optional. Latest end timestamp to list. */ - public Search setMaxEndTime(String maxEndTime) { - this.maxEndTime = maxEndTime; - return this; - } - - /** Optional. Latest start timestamp to list. */ - @com.google.api.client.util.Key - private String maxTime; - - /** Optional. Latest start timestamp to list. - */ - public String getMaxTime() { - return maxTime; - } - - /** Optional. Latest start timestamp to list. */ - public Search setMaxTime(String maxTime) { - this.maxTime = maxTime; + this.name = name; return this; } - /** Optional. Earliest end timestamp to list. */ + /** Required. Parent (Batch) resource reference. */ @com.google.api.client.util.Key - private String minEndTime; + private java.lang.String parent; - /** Optional. Earliest end timestamp to list. + /** Required. Parent (Batch) resource reference. */ - public String getMinEndTime() { - return minEndTime; + public java.lang.String getParent() { + return parent; } - /** Optional. Earliest end timestamp to list. */ - public Search setMinEndTime(String minEndTime) { - this.minEndTime = minEndTime; + /** Required. Parent (Batch) resource reference. */ + public AccessStageAttempt setParent(java.lang.String parent) { + this.parent = parent; return this; } - /** Optional. Earliest start timestamp to list. */ + /** Required. Stage Attempt ID */ @com.google.api.client.util.Key - private String minTime; + private java.lang.Integer stageAttemptId; - /** Optional. Earliest start timestamp to list. + /** Required. Stage Attempt ID */ - public String getMinTime() { - return minTime; + public java.lang.Integer getStageAttemptId() { + return stageAttemptId; } - /** Optional. Earliest start timestamp to list. */ - public Search setMinTime(String minTime) { - this.minTime = minTime; + /** Required. Stage Attempt ID */ + public AccessStageAttempt setStageAttemptId(java.lang.Integer stageAttemptId) { + this.stageAttemptId = stageAttemptId; return this; } - /** - * Optional. Maximum number of applications to return in each response. The service may - * return fewer than this. The default page size is 10; the maximum page size is 100. - */ + /** Required. Stage ID */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.Long stageId; - /** Optional. Maximum number of applications to return in each response. The service may return fewer - than this. The default page size is 10; the maximum page size is 100. + /** Required. Stage ID */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.Long getStageId() { + return stageId; } - /** - * Optional. Maximum number of applications to return in each response. The service may - * return fewer than this. The default page size is 10; the maximum page size is 100. - */ - public Search setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + /** Required. Stage ID */ + public AccessStageAttempt setStageId(java.lang.Long stageId) { + this.stageId = stageId; return this; } /** - * Optional. A page token received from a previous SearchSparkApplications call. Provide - * this token to retrieve the subsequent page. + * Optional. The list of summary metrics fields to include. Empty list will default to + * skip all summary metrics fields. Example, if the response should include + * TaskQuantileMetrics, the request should have task_quantile_metrics in + * summary_metrics_mask field */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private String summaryMetricsMask; - /** Optional. A page token received from a previous SearchSparkApplications call. Provide this token to - retrieve the subsequent page. + /** Optional. The list of summary metrics fields to include. Empty list will default to skip all + summary metrics fields. Example, if the response should include TaskQuantileMetrics, the request + should have task_quantile_metrics in summary_metrics_mask field */ - public java.lang.String getPageToken() { - return pageToken; + public String getSummaryMetricsMask() { + return summaryMetricsMask; } /** - * Optional. A page token received from a previous SearchSparkApplications call. Provide - * this token to retrieve the subsequent page. + * Optional. The list of summary metrics fields to include. Empty list will default to + * skip all summary metrics fields. Example, if the response should include + * TaskQuantileMetrics, the request should have task_quantile_metrics in + * summary_metrics_mask field */ - public Search setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public AccessStageAttempt setSummaryMetricsMask(String summaryMetricsMask) { + this.summaryMetricsMask = summaryMetricsMask; return this; } @Override - public Search set(String parameterName, Object value) { - return (Search) super.set(parameterName, value); + public AccessStageAttempt set(String parameterName, Object value) { + return (AccessStageAttempt) super.set(parameterName, value); } } /** - * Obtain executor summary with respect to a spark stage attempt. + * Obtain RDD operation graph for a Spark Application Stage. Limits the number of clusters returned + * as part of the graph to 10000. * - * Create a request for the method "sparkApplications.searchExecutorStageSummary". + * Create a request for the method "sparkApplications.accessStageRddGraph". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link SearchExecutorStageSummary#execute()} method to invoke the remote - * operation. + * parameters, call the {@link AccessStageRddGraph#execute()} method to invoke the remote operation. * * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @return the request */ - public SearchExecutorStageSummary searchExecutorStageSummary(java.lang.String name) throws java.io.IOException { - SearchExecutorStageSummary result = new SearchExecutorStageSummary(name); + public AccessStageRddGraph accessStageRddGraph(java.lang.String name) throws java.io.IOException { + AccessStageRddGraph result = new AccessStageRddGraph(name); initialize(result); return result; } - public class SearchExecutorStageSummary extends DataprocRequest{@link SearchExecutorStageSummary#initialize(com.google.api.client.google - * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
+ * optional parameters, call the {@link AccessStageRddGraph#execute()} method to invoke the remote + * operation.{@link AccessStageRddGraph#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @since 1.13 */ - protected SearchExecutorStageSummary(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationExecutorStageSummaryResponse.class); + protected AccessStageRddGraph(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSparkApplicationStageRddOperationGraphResponse.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(), @@ -4110,58 +4005,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public SearchExecutorStageSummary set$Xgafv(java.lang.String $Xgafv) { - return (SearchExecutorStageSummary) super.set$Xgafv($Xgafv); + public AccessStageRddGraph set$Xgafv(java.lang.String $Xgafv) { + return (AccessStageRddGraph) super.set$Xgafv($Xgafv); } @Override - public SearchExecutorStageSummary setAccessToken(java.lang.String accessToken) { - return (SearchExecutorStageSummary) super.setAccessToken(accessToken); + public AccessStageRddGraph setAccessToken(java.lang.String accessToken) { + return (AccessStageRddGraph) super.setAccessToken(accessToken); } @Override - public SearchExecutorStageSummary setAlt(java.lang.String alt) { - return (SearchExecutorStageSummary) super.setAlt(alt); + public AccessStageRddGraph setAlt(java.lang.String alt) { + return (AccessStageRddGraph) super.setAlt(alt); } @Override - public SearchExecutorStageSummary setCallback(java.lang.String callback) { - return (SearchExecutorStageSummary) super.setCallback(callback); + public AccessStageRddGraph setCallback(java.lang.String callback) { + return (AccessStageRddGraph) super.setCallback(callback); } @Override - public SearchExecutorStageSummary setFields(java.lang.String fields) { - return (SearchExecutorStageSummary) super.setFields(fields); + public AccessStageRddGraph setFields(java.lang.String fields) { + return (AccessStageRddGraph) super.setFields(fields); } @Override - public SearchExecutorStageSummary setKey(java.lang.String key) { - return (SearchExecutorStageSummary) super.setKey(key); + public AccessStageRddGraph setKey(java.lang.String key) { + return (AccessStageRddGraph) super.setKey(key); } @Override - public SearchExecutorStageSummary setOauthToken(java.lang.String oauthToken) { - return (SearchExecutorStageSummary) super.setOauthToken(oauthToken); + public AccessStageRddGraph setOauthToken(java.lang.String oauthToken) { + return (AccessStageRddGraph) super.setOauthToken(oauthToken); } @Override - public SearchExecutorStageSummary setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchExecutorStageSummary) super.setPrettyPrint(prettyPrint); + public AccessStageRddGraph setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AccessStageRddGraph) super.setPrettyPrint(prettyPrint); } @Override - public SearchExecutorStageSummary setQuotaUser(java.lang.String quotaUser) { - return (SearchExecutorStageSummary) super.setQuotaUser(quotaUser); + public AccessStageRddGraph setQuotaUser(java.lang.String quotaUser) { + return (AccessStageRddGraph) super.setQuotaUser(quotaUser); } @Override - public SearchExecutorStageSummary setUploadType(java.lang.String uploadType) { - return (SearchExecutorStageSummary) super.setUploadType(uploadType); + public AccessStageRddGraph setUploadType(java.lang.String uploadType) { + return (AccessStageRddGraph) super.setUploadType(uploadType); } @Override - public SearchExecutorStageSummary setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchExecutorStageSummary) super.setUploadProtocol(uploadProtocol); + public AccessStageRddGraph setUploadProtocol(java.lang.String uploadProtocol) { + return (AccessStageRddGraph) super.setUploadProtocol(uploadProtocol); } /** @@ -4184,7 +4079,7 @@ public java.lang.String getName() { * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID * " */ - public SearchExecutorStageSummary setName(java.lang.String name) { + public AccessStageRddGraph 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 " + @@ -4194,52 +4089,6 @@ public SearchExecutorStageSummary setName(java.lang.String name) { return this; } - /** - * Optional. Maximum number of executors to return in each response. The service may - * return fewer than this. The default page size is 10; the maximum page size is 100. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. Maximum number of executors to return in each response. The service may return fewer than - this. The default page size is 10; the maximum page size is 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. Maximum number of executors to return in each response. The service may - * return fewer than this. The default page size is 10; the maximum page size is 100. - */ - public SearchExecutorStageSummary setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. A page token received from a previous AccessSparkApplicationExecutorsList - * call. Provide this token to retrieve the subsequent page. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A page token received from a previous AccessSparkApplicationExecutorsList call. Provide - this token to retrieve the subsequent page. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. A page token received from a previous AccessSparkApplicationExecutorsList - * call. Provide this token to retrieve the subsequent page. - */ - public SearchExecutorStageSummary setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - /** Required. Parent (Batch) resource reference. */ @com.google.api.client.util.Key private java.lang.String parent; @@ -4251,27 +4100,11 @@ public java.lang.String getParent() { } /** Required. Parent (Batch) resource reference. */ - public SearchExecutorStageSummary setParent(java.lang.String parent) { + public AccessStageRddGraph setParent(java.lang.String parent) { this.parent = parent; return this; } - /** Required. Stage Attempt ID */ - @com.google.api.client.util.Key - private java.lang.Integer stageAttemptId; - - /** Required. Stage Attempt ID - */ - public java.lang.Integer getStageAttemptId() { - return stageAttemptId; - } - - /** Required. Stage Attempt ID */ - public SearchExecutorStageSummary setStageAttemptId(java.lang.Integer stageAttemptId) { - this.stageAttemptId = stageAttemptId; - return this; - } - /** Required. Stage ID */ @com.google.api.client.util.Key private java.lang.Long stageId; @@ -4283,60 +4116,62 @@ public java.lang.Long getStageId() { } /** Required. Stage ID */ - public SearchExecutorStageSummary setStageId(java.lang.Long stageId) { + public AccessStageRddGraph setStageId(java.lang.Long stageId) { this.stageId = stageId; return this; } @Override - public SearchExecutorStageSummary set(String parameterName, Object value) { - return (SearchExecutorStageSummary) super.set(parameterName, value); + public AccessStageRddGraph set(String parameterName, Object value) { + return (AccessStageRddGraph) super.set(parameterName, value); } } /** - * Obtain data corresponding to executors for a Spark Application. + * Returns autotuning configuration for a specific query plan id and cohort id. Called by Spark + * during query planning. * - * Create a request for the method "sparkApplications.searchExecutors". + * Create a request for the method "sparkApplications.computeTuningConfig". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link SearchExecutors#execute()} method to invoke the remote operation. + * parameters, call the {@link ComputeTuningConfig#execute()} method to invoke the remote operation. * - * @param name Required. The fully qualified name of the batch to retrieve in the format - * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT - * ION_ID" + * @param name Required. The fully qualified name of the spark application to retrieve autotuning configuration for + * in the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplica + * tions/APPLICATION_ID" * @return the request */ - public SearchExecutors searchExecutors(java.lang.String name) throws java.io.IOException { - SearchExecutors result = new SearchExecutors(name); + public ComputeTuningConfig computeTuningConfig(java.lang.String name) throws java.io.IOException { + ComputeTuningConfig result = new ComputeTuningConfig(name); initialize(result); return result; } - public class SearchExecutors extends DataprocRequest{@link SearchExecutors#initialize(com.google.api.client.googleapis.services.Abst - * ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking - * the constructor.
+ * optional parameters, call the {@link ComputeTuningConfig#execute()} method to invoke the remote + * operation.{@link ComputeTuningConfig#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* - * @param name Required. The fully qualified name of the batch to retrieve in the format - * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT - * ION_ID" + * @param name Required. The fully qualified name of the spark application to retrieve autotuning configuration for + * in the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplica + * tions/APPLICATION_ID" * @since 1.13 */ - protected SearchExecutors(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationExecutorsResponse.class); + protected ComputeTuningConfig(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.ComputeTuningConfigResponse.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(), @@ -4356,69 +4191,70 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public SearchExecutors set$Xgafv(java.lang.String $Xgafv) { - return (SearchExecutors) super.set$Xgafv($Xgafv); + public ComputeTuningConfig set$Xgafv(java.lang.String $Xgafv) { + return (ComputeTuningConfig) super.set$Xgafv($Xgafv); } @Override - public SearchExecutors setAccessToken(java.lang.String accessToken) { - return (SearchExecutors) super.setAccessToken(accessToken); + public ComputeTuningConfig setAccessToken(java.lang.String accessToken) { + return (ComputeTuningConfig) super.setAccessToken(accessToken); } @Override - public SearchExecutors setAlt(java.lang.String alt) { - return (SearchExecutors) super.setAlt(alt); + public ComputeTuningConfig setAlt(java.lang.String alt) { + return (ComputeTuningConfig) super.setAlt(alt); } @Override - public SearchExecutors setCallback(java.lang.String callback) { - return (SearchExecutors) super.setCallback(callback); + public ComputeTuningConfig setCallback(java.lang.String callback) { + return (ComputeTuningConfig) super.setCallback(callback); } @Override - public SearchExecutors setFields(java.lang.String fields) { - return (SearchExecutors) super.setFields(fields); + public ComputeTuningConfig setFields(java.lang.String fields) { + return (ComputeTuningConfig) super.setFields(fields); } @Override - public SearchExecutors setKey(java.lang.String key) { - return (SearchExecutors) super.setKey(key); + public ComputeTuningConfig setKey(java.lang.String key) { + return (ComputeTuningConfig) super.setKey(key); } @Override - public SearchExecutors setOauthToken(java.lang.String oauthToken) { - return (SearchExecutors) super.setOauthToken(oauthToken); + public ComputeTuningConfig setOauthToken(java.lang.String oauthToken) { + return (ComputeTuningConfig) super.setOauthToken(oauthToken); } @Override - public SearchExecutors setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchExecutors) super.setPrettyPrint(prettyPrint); + public ComputeTuningConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ComputeTuningConfig) super.setPrettyPrint(prettyPrint); } @Override - public SearchExecutors setQuotaUser(java.lang.String quotaUser) { - return (SearchExecutors) super.setQuotaUser(quotaUser); + public ComputeTuningConfig setQuotaUser(java.lang.String quotaUser) { + return (ComputeTuningConfig) super.setQuotaUser(quotaUser); } @Override - public SearchExecutors setUploadType(java.lang.String uploadType) { - return (SearchExecutors) super.setUploadType(uploadType); + public ComputeTuningConfig setUploadType(java.lang.String uploadType) { + return (ComputeTuningConfig) super.setUploadType(uploadType); } @Override - public SearchExecutors setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchExecutors) super.setUploadProtocol(uploadProtocol); + public ComputeTuningConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (ComputeTuningConfig) super.setUploadProtocol(uploadProtocol); } /** - * Required. The fully qualified name of the batch to retrieve in the format "projects/P - * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID - * " + * Required. The fully qualified name of the spark application to retrieve autotuning + * configuration for in the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batche + * s/BATCH_ID/sparkApplications/APPLICATION_ID" */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The fully qualified name of the batch to retrieve in the format + /** Required. The fully qualified name of the spark application to retrieve autotuning configuration + for in the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID" */ public java.lang.String getName() { @@ -4426,11 +4262,11 @@ public java.lang.String getName() { } /** - * Required. The fully qualified name of the batch to retrieve in the format "projects/P - * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID - * " + * Required. The fully qualified name of the spark application to retrieve autotuning + * configuration for in the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batche + * s/BATCH_ID/sparkApplications/APPLICATION_ID" */ - public SearchExecutors setName(java.lang.String name) { + public ComputeTuningConfig 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 " + @@ -4440,142 +4276,106 @@ public SearchExecutors setName(java.lang.String name) { return this; } - /** - * Optional. Filter to select whether active/ dead or all executors should be selected. - */ - @com.google.api.client.util.Key - private java.lang.String executorStatus; - - /** Optional. Filter to select whether active/ dead or all executors should be selected. - */ - public java.lang.String getExecutorStatus() { - return executorStatus; - } - - /** - * Optional. Filter to select whether active/ dead or all executors should be selected. - */ - public SearchExecutors setExecutorStatus(java.lang.String executorStatus) { - this.executorStatus = executorStatus; - return this; - } - - /** - * Optional. Maximum number of executors to return in each response. The service may - * return fewer than this. The default page size is 10; the maximum page size is 100. - */ + /** Required. Spark execution ID for the query. */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.Long executionId; - /** Optional. Maximum number of executors to return in each response. The service may return fewer than - this. The default page size is 10; the maximum page size is 100. + /** Required. Spark execution ID for the query. */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.Long getExecutionId() { + return executionId; } - /** - * Optional. Maximum number of executors to return in each response. The service may - * return fewer than this. The default page size is 10; the maximum page size is 100. - */ - public SearchExecutors setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + /** Required. Spark execution ID for the query. */ + public ComputeTuningConfig setExecutionId(java.lang.Long executionId) { + this.executionId = executionId; return this; } - /** - * Optional. A page token received from a previous AccessSparkApplicationExecutorsList - * call. Provide this token to retrieve the subsequent page. - */ + /** Required. Parent (Batch) resource reference. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String parent; - /** Optional. A page token received from a previous AccessSparkApplicationExecutorsList call. Provide - this token to retrieve the subsequent page. + /** Required. Parent (Batch) resource reference. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getParent() { + return parent; } - /** - * Optional. A page token received from a previous AccessSparkApplicationExecutorsList - * call. Provide this token to retrieve the subsequent page. - */ - public SearchExecutors setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Required. Parent (Batch) resource reference. */ + public ComputeTuningConfig setParent(java.lang.String parent) { + this.parent = parent; return this; } - /** Required. Parent (Batch) resource reference. */ + /** Required. Spark semantic query ID. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String semanticQueryId; - /** Required. Parent (Batch) resource reference. + /** Required. Spark semantic query ID. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getSemanticQueryId() { + return semanticQueryId; } - /** Required. Parent (Batch) resource reference. */ - public SearchExecutors setParent(java.lang.String parent) { - this.parent = parent; + /** Required. Spark semantic query ID. */ + public ComputeTuningConfig setSemanticQueryId(java.lang.String semanticQueryId) { + this.semanticQueryId = semanticQueryId; return this; } @Override - public SearchExecutors set(String parameterName, Object value) { - return (SearchExecutors) super.set(parameterName, value); + public ComputeTuningConfig set(String parameterName, Object value) { + return (ComputeTuningConfig) super.set(parameterName, value); } } /** - * Obtain list of spark jobs corresponding to a Spark Application. + * Obtain high level information and list of Spark Applications corresponding to a batch * - * Create a request for the method "sparkApplications.searchJobs". + * Create a request for the method "sparkApplications.search". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link SearchJobs#execute()} method to invoke the remote operation. + * parameters, call the {@link Search#execute()} method to invoke the remote operation. * - * @param name Required. The fully qualified name of the batch to retrieve in the format - * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT - * ION_ID" + * @param parent Required. The fully qualified name of the batch to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID" * @return the request */ - public SearchJobs searchJobs(java.lang.String name) throws java.io.IOException { - SearchJobs result = new SearchJobs(name); + public Search search(java.lang.String parent) throws java.io.IOException { + Search result = new Search(parent); initialize(result); return result; } - public class SearchJobs extends DataprocRequest{@link - * SearchJobs#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 Search#execute()} method to invoke the remote operation. + *{@link + * Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The fully qualified name of the batch to retrieve in the format - * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT - * ION_ID" + * @param parent Required. The fully qualified name of the batch to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID" * @since 1.13 */ - protected SearchJobs(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationJobsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Search(java.lang.String parent) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationsResponse.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/batches/[^/]+$"); } } @@ -4590,217 +4390,264 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public SearchJobs set$Xgafv(java.lang.String $Xgafv) { - return (SearchJobs) super.set$Xgafv($Xgafv); + public Search set$Xgafv(java.lang.String $Xgafv) { + return (Search) super.set$Xgafv($Xgafv); } @Override - public SearchJobs setAccessToken(java.lang.String accessToken) { - return (SearchJobs) super.setAccessToken(accessToken); + public Search setAccessToken(java.lang.String accessToken) { + return (Search) super.setAccessToken(accessToken); } @Override - public SearchJobs setAlt(java.lang.String alt) { - return (SearchJobs) super.setAlt(alt); + public Search setAlt(java.lang.String alt) { + return (Search) super.setAlt(alt); } @Override - public SearchJobs setCallback(java.lang.String callback) { - return (SearchJobs) super.setCallback(callback); + public Search setCallback(java.lang.String callback) { + return (Search) super.setCallback(callback); } @Override - public SearchJobs setFields(java.lang.String fields) { - return (SearchJobs) super.setFields(fields); + public Search setFields(java.lang.String fields) { + return (Search) super.setFields(fields); } @Override - public SearchJobs setKey(java.lang.String key) { - return (SearchJobs) super.setKey(key); + public Search setKey(java.lang.String key) { + return (Search) super.setKey(key); } @Override - public SearchJobs setOauthToken(java.lang.String oauthToken) { - return (SearchJobs) super.setOauthToken(oauthToken); + public Search setOauthToken(java.lang.String oauthToken) { + return (Search) super.setOauthToken(oauthToken); } @Override - public SearchJobs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchJobs) super.setPrettyPrint(prettyPrint); + public Search setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Search) super.setPrettyPrint(prettyPrint); } @Override - public SearchJobs setQuotaUser(java.lang.String quotaUser) { - return (SearchJobs) super.setQuotaUser(quotaUser); + public Search setQuotaUser(java.lang.String quotaUser) { + return (Search) super.setQuotaUser(quotaUser); } @Override - public SearchJobs setUploadType(java.lang.String uploadType) { - return (SearchJobs) super.setUploadType(uploadType); + public Search setUploadType(java.lang.String uploadType) { + return (Search) super.setUploadType(uploadType); } @Override - public SearchJobs setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchJobs) super.setUploadProtocol(uploadProtocol); + public Search setUploadProtocol(java.lang.String uploadProtocol) { + return (Search) super.setUploadProtocol(uploadProtocol); } /** - * Required. The fully qualified name of the batch to retrieve in the format "projects/P - * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID - * " + * Required. The fully qualified name of the batch to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID" */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; /** Required. The fully qualified name of the batch to retrieve in the format - "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID" + "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID" */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Required. The fully qualified name of the batch to retrieve in the format "projects/P - * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID - * " + * Required. The fully qualified name of the batch to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID" */ - public SearchJobs setName(java.lang.String name) { + public Search setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/batches/[^/]+/sparkApplications/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/batches/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - /** Optional. List only jobs in the specific state. */ + /** Optional. Search only applications in the chosen state. */ @com.google.api.client.util.Key - private java.lang.String jobStatus; + private java.lang.String applicationStatus; - /** Optional. List only jobs in the specific state. + /** Optional. Search only applications in the chosen state. */ - public java.lang.String getJobStatus() { - return jobStatus; + public java.lang.String getApplicationStatus() { + return applicationStatus; } - /** Optional. List only jobs in the specific state. */ - public SearchJobs setJobStatus(java.lang.String jobStatus) { - this.jobStatus = jobStatus; + /** Optional. Search only applications in the chosen state. */ + public Search setApplicationStatus(java.lang.String applicationStatus) { + this.applicationStatus = applicationStatus; + return this; + } + + /** Optional. Latest end timestamp to list. */ + @com.google.api.client.util.Key + private String maxEndTime; + + /** Optional. Latest end timestamp to list. + */ + public String getMaxEndTime() { + return maxEndTime; + } + + /** Optional. Latest end timestamp to list. */ + public Search setMaxEndTime(String maxEndTime) { + this.maxEndTime = maxEndTime; + return this; + } + + /** Optional. Latest start timestamp to list. */ + @com.google.api.client.util.Key + private String maxTime; + + /** Optional. Latest start timestamp to list. + */ + public String getMaxTime() { + return maxTime; + } + + /** Optional. Latest start timestamp to list. */ + public Search setMaxTime(String maxTime) { + this.maxTime = maxTime; + return this; + } + + /** Optional. Earliest end timestamp to list. */ + @com.google.api.client.util.Key + private String minEndTime; + + /** Optional. Earliest end timestamp to list. + */ + public String getMinEndTime() { + return minEndTime; + } + + /** Optional. Earliest end timestamp to list. */ + public Search setMinEndTime(String minEndTime) { + this.minEndTime = minEndTime; + return this; + } + + /** Optional. Earliest start timestamp to list. */ + @com.google.api.client.util.Key + private String minTime; + + /** Optional. Earliest start timestamp to list. + */ + public String getMinTime() { + return minTime; + } + + /** Optional. Earliest start timestamp to list. */ + public Search setMinTime(String minTime) { + this.minTime = minTime; return this; } /** - * Optional. Maximum number of jobs to return in each response. The service may return - * fewer than this. The default page size is 10; the maximum page size is 100. + * Optional. Maximum number of applications to return in each response. The service may + * return fewer than this. The default page size is 10; the maximum page size is 100. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. Maximum number of jobs to return in each response. The service may return fewer than - this. The default page size is 10; the maximum page size is 100. + /** Optional. Maximum number of applications to return in each response. The service may return fewer + than this. The default page size is 10; the maximum page size is 100. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * Optional. Maximum number of jobs to return in each response. The service may return - * fewer than this. The default page size is 10; the maximum page size is 100. + * Optional. Maximum number of applications to return in each response. The service may + * return fewer than this. The default page size is 10; the maximum page size is 100. */ - public SearchJobs setPageSize(java.lang.Integer pageSize) { + public Search setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. A page token received from a previous SearchSparkApplicationJobs call. - * Provide this token to retrieve the subsequent page. + * Optional. A page token received from a previous SearchSparkApplications call. Provide + * this token to retrieve the subsequent page. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A page token received from a previous SearchSparkApplicationJobs call. Provide this token - to retrieve the subsequent page. + /** Optional. A page token received from a previous SearchSparkApplications call. Provide this token to + retrieve the subsequent page. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. A page token received from a previous SearchSparkApplicationJobs call. - * Provide this token to retrieve the subsequent page. + * Optional. A page token received from a previous SearchSparkApplications call. Provide + * this token to retrieve the subsequent page. */ - public SearchJobs setPageToken(java.lang.String pageToken) { + public Search setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** Required. Parent (Batch) resource reference. */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. Parent (Batch) resource reference. - */ - public java.lang.String getParent() { - return parent; - } - - /** Required. Parent (Batch) resource reference. */ - public SearchJobs setParent(java.lang.String parent) { - this.parent = parent; - return this; - } - @Override - public SearchJobs set(String parameterName, Object value) { - return (SearchJobs) super.set(parameterName, value); + public Search set(String parameterName, Object value) { + return (Search) super.set(parameterName, value); } } /** - * Obtain data corresponding to SQL Queries for a Spark Application. + * Obtain executor summary with respect to a spark stage attempt. * - * Create a request for the method "sparkApplications.searchSqlQueries". + * Create a request for the method "sparkApplications.searchExecutorStageSummary". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link SearchSqlQueries#execute()} method to invoke the remote operation. + * parameters, call the {@link SearchExecutorStageSummary#execute()} method to invoke the remote + * operation. * * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @return the request */ - public SearchSqlQueries searchSqlQueries(java.lang.String name) throws java.io.IOException { - SearchSqlQueries result = new SearchSqlQueries(name); + public SearchExecutorStageSummary searchExecutorStageSummary(java.lang.String name) throws java.io.IOException { + SearchExecutorStageSummary result = new SearchExecutorStageSummary(name); initialize(result); return result; } - public class SearchSqlQueries extends DataprocRequest{@link SearchSqlQueries#initialize(com.google.api.client.googleapis.services.Abs - * tractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
+ * optional parameters, call the {@link SearchExecutorStageSummary#execute()} method to invoke the + * remote operation.{@link SearchExecutorStageSummary#initialize(com.google.api.client.google + * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
* * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @since 1.13 */ - protected SearchSqlQueries(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationSqlQueriesResponse.class); + protected SearchExecutorStageSummary(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationExecutorStageSummaryResponse.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(), @@ -4820,58 +4667,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public SearchSqlQueries set$Xgafv(java.lang.String $Xgafv) { - return (SearchSqlQueries) super.set$Xgafv($Xgafv); + public SearchExecutorStageSummary set$Xgafv(java.lang.String $Xgafv) { + return (SearchExecutorStageSummary) super.set$Xgafv($Xgafv); } @Override - public SearchSqlQueries setAccessToken(java.lang.String accessToken) { - return (SearchSqlQueries) super.setAccessToken(accessToken); + public SearchExecutorStageSummary setAccessToken(java.lang.String accessToken) { + return (SearchExecutorStageSummary) super.setAccessToken(accessToken); } @Override - public SearchSqlQueries setAlt(java.lang.String alt) { - return (SearchSqlQueries) super.setAlt(alt); + public SearchExecutorStageSummary setAlt(java.lang.String alt) { + return (SearchExecutorStageSummary) super.setAlt(alt); } @Override - public SearchSqlQueries setCallback(java.lang.String callback) { - return (SearchSqlQueries) super.setCallback(callback); + public SearchExecutorStageSummary setCallback(java.lang.String callback) { + return (SearchExecutorStageSummary) super.setCallback(callback); } @Override - public SearchSqlQueries setFields(java.lang.String fields) { - return (SearchSqlQueries) super.setFields(fields); + public SearchExecutorStageSummary setFields(java.lang.String fields) { + return (SearchExecutorStageSummary) super.setFields(fields); } @Override - public SearchSqlQueries setKey(java.lang.String key) { - return (SearchSqlQueries) super.setKey(key); + public SearchExecutorStageSummary setKey(java.lang.String key) { + return (SearchExecutorStageSummary) super.setKey(key); } @Override - public SearchSqlQueries setOauthToken(java.lang.String oauthToken) { - return (SearchSqlQueries) super.setOauthToken(oauthToken); + public SearchExecutorStageSummary setOauthToken(java.lang.String oauthToken) { + return (SearchExecutorStageSummary) super.setOauthToken(oauthToken); } @Override - public SearchSqlQueries setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchSqlQueries) super.setPrettyPrint(prettyPrint); + public SearchExecutorStageSummary setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchExecutorStageSummary) super.setPrettyPrint(prettyPrint); } @Override - public SearchSqlQueries setQuotaUser(java.lang.String quotaUser) { - return (SearchSqlQueries) super.setQuotaUser(quotaUser); + public SearchExecutorStageSummary setQuotaUser(java.lang.String quotaUser) { + return (SearchExecutorStageSummary) super.setQuotaUser(quotaUser); } @Override - public SearchSqlQueries setUploadType(java.lang.String uploadType) { - return (SearchSqlQueries) super.setUploadType(uploadType); + public SearchExecutorStageSummary setUploadType(java.lang.String uploadType) { + return (SearchExecutorStageSummary) super.setUploadType(uploadType); } @Override - public SearchSqlQueries setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchSqlQueries) super.setUploadProtocol(uploadProtocol); + public SearchExecutorStageSummary setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchExecutorStageSummary) super.setUploadProtocol(uploadProtocol); } /** @@ -4894,7 +4741,7 @@ public java.lang.String getName() { * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID * " */ - public SearchSqlQueries setName(java.lang.String name) { + public SearchExecutorStageSummary 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 " + @@ -4905,35 +4752,13 @@ public SearchSqlQueries setName(java.lang.String name) { } /** - * Optional. Lists/ hides details of Spark plan nodes. True is set to list and false to - * hide. - */ - @com.google.api.client.util.Key - private java.lang.Boolean details; - - /** Optional. Lists/ hides details of Spark plan nodes. True is set to list and false to hide. - */ - public java.lang.Boolean getDetails() { - return details; - } - - /** - * Optional. Lists/ hides details of Spark plan nodes. True is set to list and false to - * hide. - */ - public SearchSqlQueries setDetails(java.lang.Boolean details) { - this.details = details; - return this; - } - - /** - * Optional. Maximum number of queries to return in each response. The service may + * Optional. Maximum number of executors to return in each response. The service may * return fewer than this. The default page size is 10; the maximum page size is 100. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. Maximum number of queries to return in each response. The service may return fewer than + /** Optional. Maximum number of executors to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100. */ public java.lang.Integer getPageSize() { @@ -4941,33 +4766,33 @@ public java.lang.Integer getPageSize() { } /** - * Optional. Maximum number of queries to return in each response. The service may + * Optional. Maximum number of executors to return in each response. The service may * return fewer than this. The default page size is 10; the maximum page size is 100. */ - public SearchSqlQueries setPageSize(java.lang.Integer pageSize) { + public SearchExecutorStageSummary setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. A page token received from a previous SearchSparkApplicationSqlQueries + * Optional. A page token received from a previous AccessSparkApplicationExecutorsList * call. Provide this token to retrieve the subsequent page. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A page token received from a previous SearchSparkApplicationSqlQueries call. Provide this - token to retrieve the subsequent page. + /** Optional. A page token received from a previous AccessSparkApplicationExecutorsList call. Provide + this token to retrieve the subsequent page. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. A page token received from a previous SearchSparkApplicationSqlQueries + * Optional. A page token received from a previous AccessSparkApplicationExecutorsList * call. Provide this token to retrieve the subsequent page. */ - public SearchSqlQueries setPageToken(java.lang.String pageToken) { + public SearchExecutorStageSummary setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -4983,77 +4808,92 @@ public java.lang.String getParent() { } /** Required. Parent (Batch) resource reference. */ - public SearchSqlQueries setParent(java.lang.String parent) { + public SearchExecutorStageSummary setParent(java.lang.String parent) { this.parent = parent; return this; } - /** Optional. Enables/ disables physical plan description on demand */ + /** Required. Stage Attempt ID */ @com.google.api.client.util.Key - private java.lang.Boolean planDescription; + private java.lang.Integer stageAttemptId; - /** Optional. Enables/ disables physical plan description on demand + /** Required. Stage Attempt ID */ - public java.lang.Boolean getPlanDescription() { - return planDescription; + public java.lang.Integer getStageAttemptId() { + return stageAttemptId; } - /** Optional. Enables/ disables physical plan description on demand */ - public SearchSqlQueries setPlanDescription(java.lang.Boolean planDescription) { - this.planDescription = planDescription; + /** Required. Stage Attempt ID */ + public SearchExecutorStageSummary setStageAttemptId(java.lang.Integer stageAttemptId) { + this.stageAttemptId = stageAttemptId; + return this; + } + + /** Required. Stage ID */ + @com.google.api.client.util.Key + private java.lang.Long stageId; + + /** Required. Stage ID + */ + public java.lang.Long getStageId() { + return stageId; + } + + /** Required. Stage ID */ + public SearchExecutorStageSummary setStageId(java.lang.Long stageId) { + this.stageId = stageId; return this; } @Override - public SearchSqlQueries set(String parameterName, Object value) { - return (SearchSqlQueries) super.set(parameterName, value); + public SearchExecutorStageSummary set(String parameterName, Object value) { + return (SearchExecutorStageSummary) super.set(parameterName, value); } } /** - * Obtain data corresponding to tasks for a spark stage attempt for a Spark Application. + * Obtain data corresponding to executors for a Spark Application. * - * Create a request for the method "sparkApplications.searchStageAttemptTasks". + * Create a request for the method "sparkApplications.searchExecutors". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link SearchStageAttemptTasks#execute()} method to invoke the remote - * operation. + * parameters, call the {@link SearchExecutors#execute()} method to invoke the remote operation. * * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @return the request */ - public SearchStageAttemptTasks searchStageAttemptTasks(java.lang.String name) throws java.io.IOException { - SearchStageAttemptTasks result = new SearchStageAttemptTasks(name); + public SearchExecutors searchExecutors(java.lang.String name) throws java.io.IOException { + SearchExecutors result = new SearchExecutors(name); initialize(result); return result; } - public class SearchStageAttemptTasks extends DataprocRequest{@link SearchStageAttemptTasks#initialize(com.google.api.client.googleapi - * s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.
+ * optional parameters, call the {@link SearchExecutors#execute()} method to invoke the remote + * operation.{@link SearchExecutors#initialize(com.google.api.client.googleapis.services.Abst + * ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
* * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @since 1.13 */ - protected SearchStageAttemptTasks(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationStageAttemptTasksResponse.class); + protected SearchExecutors(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationExecutorsResponse.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(), @@ -5073,58 +4913,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public SearchStageAttemptTasks set$Xgafv(java.lang.String $Xgafv) { - return (SearchStageAttemptTasks) super.set$Xgafv($Xgafv); + public SearchExecutors set$Xgafv(java.lang.String $Xgafv) { + return (SearchExecutors) super.set$Xgafv($Xgafv); } @Override - public SearchStageAttemptTasks setAccessToken(java.lang.String accessToken) { - return (SearchStageAttemptTasks) super.setAccessToken(accessToken); + public SearchExecutors setAccessToken(java.lang.String accessToken) { + return (SearchExecutors) super.setAccessToken(accessToken); } @Override - public SearchStageAttemptTasks setAlt(java.lang.String alt) { - return (SearchStageAttemptTasks) super.setAlt(alt); + public SearchExecutors setAlt(java.lang.String alt) { + return (SearchExecutors) super.setAlt(alt); } @Override - public SearchStageAttemptTasks setCallback(java.lang.String callback) { - return (SearchStageAttemptTasks) super.setCallback(callback); + public SearchExecutors setCallback(java.lang.String callback) { + return (SearchExecutors) super.setCallback(callback); } @Override - public SearchStageAttemptTasks setFields(java.lang.String fields) { - return (SearchStageAttemptTasks) super.setFields(fields); + public SearchExecutors setFields(java.lang.String fields) { + return (SearchExecutors) super.setFields(fields); } @Override - public SearchStageAttemptTasks setKey(java.lang.String key) { - return (SearchStageAttemptTasks) super.setKey(key); + public SearchExecutors setKey(java.lang.String key) { + return (SearchExecutors) super.setKey(key); } @Override - public SearchStageAttemptTasks setOauthToken(java.lang.String oauthToken) { - return (SearchStageAttemptTasks) super.setOauthToken(oauthToken); + public SearchExecutors setOauthToken(java.lang.String oauthToken) { + return (SearchExecutors) super.setOauthToken(oauthToken); } @Override - public SearchStageAttemptTasks setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchStageAttemptTasks) super.setPrettyPrint(prettyPrint); + public SearchExecutors setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchExecutors) super.setPrettyPrint(prettyPrint); } @Override - public SearchStageAttemptTasks setQuotaUser(java.lang.String quotaUser) { - return (SearchStageAttemptTasks) super.setQuotaUser(quotaUser); + public SearchExecutors setQuotaUser(java.lang.String quotaUser) { + return (SearchExecutors) super.setQuotaUser(quotaUser); } @Override - public SearchStageAttemptTasks setUploadType(java.lang.String uploadType) { - return (SearchStageAttemptTasks) super.setUploadType(uploadType); + public SearchExecutors setUploadType(java.lang.String uploadType) { + return (SearchExecutors) super.setUploadType(uploadType); } @Override - public SearchStageAttemptTasks setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchStageAttemptTasks) super.setUploadProtocol(uploadProtocol); + public SearchExecutors setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchExecutors) super.setUploadProtocol(uploadProtocol); } /** @@ -5147,7 +4987,7 @@ public java.lang.String getName() { * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID * " */ - public SearchStageAttemptTasks setName(java.lang.String name) { + public SearchExecutors 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 " + @@ -5158,13 +4998,33 @@ public SearchStageAttemptTasks setName(java.lang.String name) { } /** - * Optional. Maximum number of tasks to return in each response. The service may return - * fewer than this. The default page size is 10; the maximum page size is 100. + * Optional. Filter to select whether active/ dead or all executors should be selected. + */ + @com.google.api.client.util.Key + private java.lang.String executorStatus; + + /** Optional. Filter to select whether active/ dead or all executors should be selected. + */ + public java.lang.String getExecutorStatus() { + return executorStatus; + } + + /** + * Optional. Filter to select whether active/ dead or all executors should be selected. + */ + public SearchExecutors setExecutorStatus(java.lang.String executorStatus) { + this.executorStatus = executorStatus; + return this; + } + + /** + * Optional. Maximum number of executors to return in each response. The service may + * return fewer than this. The default page size is 10; the maximum page size is 100. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. Maximum number of tasks to return in each response. The service may return fewer than + /** Optional. Maximum number of executors to return in each response. The service may return fewer than this. The default page size is 10; the maximum page size is 100. */ public java.lang.Integer getPageSize() { @@ -5172,22 +5032,22 @@ public java.lang.Integer getPageSize() { } /** - * Optional. Maximum number of tasks to return in each response. The service may return - * fewer than this. The default page size is 10; the maximum page size is 100. + * Optional. Maximum number of executors to return in each response. The service may + * return fewer than this. The default page size is 10; the maximum page size is 100. */ - public SearchStageAttemptTasks setPageSize(java.lang.Integer pageSize) { + public SearchExecutors setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. A page token received from a previous ListSparkApplicationStageAttemptTasks + * Optional. A page token received from a previous AccessSparkApplicationExecutorsList * call. Provide this token to retrieve the subsequent page. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A page token received from a previous ListSparkApplicationStageAttemptTasks call. Provide + /** Optional. A page token received from a previous AccessSparkApplicationExecutorsList call. Provide this token to retrieve the subsequent page. */ public java.lang.String getPageToken() { @@ -5195,10 +5055,10 @@ public java.lang.String getPageToken() { } /** - * Optional. A page token received from a previous ListSparkApplicationStageAttemptTasks + * Optional. A page token received from a previous AccessSparkApplicationExecutorsList * call. Provide this token to retrieve the subsequent page. */ - public SearchStageAttemptTasks setPageToken(java.lang.String pageToken) { + public SearchExecutors setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -5214,124 +5074,60 @@ public java.lang.String getParent() { } /** Required. Parent (Batch) resource reference. */ - public SearchStageAttemptTasks setParent(java.lang.String parent) { + public SearchExecutors setParent(java.lang.String parent) { this.parent = parent; return this; } - /** Optional. Sort the tasks by runtime. */ - @com.google.api.client.util.Key - private java.lang.Boolean sortRuntime; - - /** Optional. Sort the tasks by runtime. - */ - public java.lang.Boolean getSortRuntime() { - return sortRuntime; + @Override + public SearchExecutors set(String parameterName, Object value) { + return (SearchExecutors) super.set(parameterName, value); } + } + /** + * Obtain list of spark jobs corresponding to a Spark Application. + * + * Create a request for the method "sparkApplications.searchJobs". + * + * This request holds the parameters needed by the dataproc server. After setting any optional + * parameters, call the {@link SearchJobs#execute()} method to invoke the remote operation. + * + * @param name Required. The fully qualified name of the batch to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT + * ION_ID" + * @return the request + */ + public SearchJobs searchJobs(java.lang.String name) throws java.io.IOException { + SearchJobs result = new SearchJobs(name); + initialize(result); + return result; + } - /** Optional. Sort the tasks by runtime. */ - public SearchStageAttemptTasks setSortRuntime(java.lang.Boolean sortRuntime) { - this.sortRuntime = sortRuntime; - return this; - } + public class SearchJobs extends DataprocRequest{@link SearchStageAttempts#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 SearchJobs#execute()} method to invoke the remote + * operation.{@link + * SearchJobs#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @since 1.13 */ - protected SearchStageAttempts(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationStageAttemptsResponse.class); + protected SearchJobs(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationJobsResponse.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(), @@ -5351,58 +5147,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public SearchStageAttempts set$Xgafv(java.lang.String $Xgafv) { - return (SearchStageAttempts) super.set$Xgafv($Xgafv); + public SearchJobs set$Xgafv(java.lang.String $Xgafv) { + return (SearchJobs) super.set$Xgafv($Xgafv); } @Override - public SearchStageAttempts setAccessToken(java.lang.String accessToken) { - return (SearchStageAttempts) super.setAccessToken(accessToken); + public SearchJobs setAccessToken(java.lang.String accessToken) { + return (SearchJobs) super.setAccessToken(accessToken); } @Override - public SearchStageAttempts setAlt(java.lang.String alt) { - return (SearchStageAttempts) super.setAlt(alt); + public SearchJobs setAlt(java.lang.String alt) { + return (SearchJobs) super.setAlt(alt); } @Override - public SearchStageAttempts setCallback(java.lang.String callback) { - return (SearchStageAttempts) super.setCallback(callback); + public SearchJobs setCallback(java.lang.String callback) { + return (SearchJobs) super.setCallback(callback); } @Override - public SearchStageAttempts setFields(java.lang.String fields) { - return (SearchStageAttempts) super.setFields(fields); + public SearchJobs setFields(java.lang.String fields) { + return (SearchJobs) super.setFields(fields); } @Override - public SearchStageAttempts setKey(java.lang.String key) { - return (SearchStageAttempts) super.setKey(key); + public SearchJobs setKey(java.lang.String key) { + return (SearchJobs) super.setKey(key); } @Override - public SearchStageAttempts setOauthToken(java.lang.String oauthToken) { - return (SearchStageAttempts) super.setOauthToken(oauthToken); + public SearchJobs setOauthToken(java.lang.String oauthToken) { + return (SearchJobs) super.setOauthToken(oauthToken); } @Override - public SearchStageAttempts setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchStageAttempts) super.setPrettyPrint(prettyPrint); + public SearchJobs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchJobs) super.setPrettyPrint(prettyPrint); } @Override - public SearchStageAttempts setQuotaUser(java.lang.String quotaUser) { - return (SearchStageAttempts) super.setQuotaUser(quotaUser); + public SearchJobs setQuotaUser(java.lang.String quotaUser) { + return (SearchJobs) super.setQuotaUser(quotaUser); } @Override - public SearchStageAttempts setUploadType(java.lang.String uploadType) { - return (SearchStageAttempts) super.setUploadType(uploadType); + public SearchJobs setUploadType(java.lang.String uploadType) { + return (SearchJobs) super.setUploadType(uploadType); } @Override - public SearchStageAttempts setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchStageAttempts) super.setUploadProtocol(uploadProtocol); + public SearchJobs setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchJobs) super.setUploadProtocol(uploadProtocol); } /** @@ -5425,7 +5221,7 @@ public java.lang.String getName() { * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID * " */ - public SearchStageAttempts setName(java.lang.String name) { + public SearchJobs 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 " + @@ -5435,51 +5231,64 @@ public SearchStageAttempts setName(java.lang.String name) { return this; } + /** Optional. List only jobs in the specific state. */ + @com.google.api.client.util.Key + private java.lang.String jobStatus; + + /** Optional. List only jobs in the specific state. + */ + public java.lang.String getJobStatus() { + return jobStatus; + } + + /** Optional. List only jobs in the specific state. */ + public SearchJobs setJobStatus(java.lang.String jobStatus) { + this.jobStatus = jobStatus; + return this; + } + /** - * Optional. Maximum number of stage attempts (paging based on stage_attempt_id) to - * return in each response. The service may return fewer than this. The default page - * size is 10; the maximum page size is 100. + * Optional. Maximum number of jobs to return in each response. The service may return + * fewer than this. The default page size is 10; the maximum page size is 100. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. Maximum number of stage attempts (paging based on stage_attempt_id) to return in each - response. The service may return fewer than this. The default page size is 10; the maximum page - size is 100. + /** Optional. Maximum number of jobs to return in each response. The service may return fewer than + this. The default page size is 10; the maximum page size is 100. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * Optional. Maximum number of stage attempts (paging based on stage_attempt_id) to - * return in each response. The service may return fewer than this. The default page - * size is 10; the maximum page size is 100. + * Optional. Maximum number of jobs to return in each response. The service may return + * fewer than this. The default page size is 10; the maximum page size is 100. */ - public SearchStageAttempts setPageSize(java.lang.Integer pageSize) { + public SearchJobs setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. A page token received from a previous SearchSparkApplicationStageAttempts - * call. Provide this token to retrieve the subsequent page. + * Optional. A page token received from a previous SearchSparkApplicationJobs call. + * Provide this token to retrieve the subsequent page. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A page token received from a previous SearchSparkApplicationStageAttempts call. Provide - this token to retrieve the subsequent page. + /** Optional. A page token received from a previous SearchSparkApplicationJobs call. Provide this token + to retrieve the subsequent page. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. A page token received from a previous SearchSparkApplicationStageAttempts - * call. Provide this token to retrieve the subsequent page. + * Optional. A page token received from a previous SearchSparkApplicationJobs call. + * Provide this token to retrieve the subsequent page. */ - public SearchStageAttempts setPageToken(java.lang.String pageToken) { + public SearchJobs setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -5495,104 +5304,61 @@ public java.lang.String getParent() { } /** Required. Parent (Batch) resource reference. */ - public SearchStageAttempts setParent(java.lang.String parent) { + public SearchJobs setParent(java.lang.String parent) { this.parent = parent; return this; } - /** Required. Stage ID for which attempts are to be fetched */ - @com.google.api.client.util.Key - private java.lang.Long stageId; - - /** Required. Stage ID for which attempts are to be fetched - */ - public java.lang.Long getStageId() { - return stageId; - } - - /** Required. Stage ID for which attempts are to be fetched */ - public SearchStageAttempts setStageId(java.lang.Long stageId) { - this.stageId = stageId; - return this; - } - - /** - * Optional. The list of summary metrics fields to include. Empty list will default to - * skip all summary metrics fields. Example, if the response should include - * TaskQuantileMetrics, the request should have task_quantile_metrics in - * summary_metrics_mask field - */ - @com.google.api.client.util.Key - private String summaryMetricsMask; - - /** Optional. The list of summary metrics fields to include. Empty list will default to skip all - summary metrics fields. Example, if the response should include TaskQuantileMetrics, the request - should have task_quantile_metrics in summary_metrics_mask field - */ - public String getSummaryMetricsMask() { - return summaryMetricsMask; - } - - /** - * Optional. The list of summary metrics fields to include. Empty list will default to - * skip all summary metrics fields. Example, if the response should include - * TaskQuantileMetrics, the request should have task_quantile_metrics in - * summary_metrics_mask field - */ - public SearchStageAttempts setSummaryMetricsMask(String summaryMetricsMask) { - this.summaryMetricsMask = summaryMetricsMask; - return this; - } - @Override - public SearchStageAttempts set(String parameterName, Object value) { - return (SearchStageAttempts) super.set(parameterName, value); + public SearchJobs set(String parameterName, Object value) { + return (SearchJobs) super.set(parameterName, value); } } /** - * Obtain data corresponding to stages for a Spark Application. + * Obtain data corresponding to Native SQL Queries for a Spark Application. * - * Create a request for the method "sparkApplications.searchStages". + * Create a request for the method "sparkApplications.searchNativeSqlQueries". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link SearchStages#execute()} method to invoke the remote operation. + * parameters, call the {@link SearchNativeSqlQueries#execute()} method to invoke the remote + * operation. * * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @return the request */ - public SearchStages searchStages(java.lang.String name) throws java.io.IOException { - SearchStages result = new SearchStages(name); + public SearchNativeSqlQueries searchNativeSqlQueries(java.lang.String name) throws java.io.IOException { + SearchNativeSqlQueries result = new SearchNativeSqlQueries(name); initialize(result); return result; } - public class SearchStages extends DataprocRequest{@link - * SearchStages#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 SearchNativeSqlQueries#execute()} method to invoke the + * remote operation.{@link SearchNativeSqlQueries#initialize(com.google.api.client.googleapis + * .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
* * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @since 1.13 */ - protected SearchStages(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationStagesResponse.class); + protected SearchNativeSqlQueries(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationNativeSqlQueriesResponse.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(), @@ -5612,58 +5378,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public SearchStages set$Xgafv(java.lang.String $Xgafv) { - return (SearchStages) super.set$Xgafv($Xgafv); + public SearchNativeSqlQueries set$Xgafv(java.lang.String $Xgafv) { + return (SearchNativeSqlQueries) super.set$Xgafv($Xgafv); } @Override - public SearchStages setAccessToken(java.lang.String accessToken) { - return (SearchStages) super.setAccessToken(accessToken); + public SearchNativeSqlQueries setAccessToken(java.lang.String accessToken) { + return (SearchNativeSqlQueries) super.setAccessToken(accessToken); } @Override - public SearchStages setAlt(java.lang.String alt) { - return (SearchStages) super.setAlt(alt); + public SearchNativeSqlQueries setAlt(java.lang.String alt) { + return (SearchNativeSqlQueries) super.setAlt(alt); } @Override - public SearchStages setCallback(java.lang.String callback) { - return (SearchStages) super.setCallback(callback); + public SearchNativeSqlQueries setCallback(java.lang.String callback) { + return (SearchNativeSqlQueries) super.setCallback(callback); } @Override - public SearchStages setFields(java.lang.String fields) { - return (SearchStages) super.setFields(fields); + public SearchNativeSqlQueries setFields(java.lang.String fields) { + return (SearchNativeSqlQueries) super.setFields(fields); } @Override - public SearchStages setKey(java.lang.String key) { - return (SearchStages) super.setKey(key); + public SearchNativeSqlQueries setKey(java.lang.String key) { + return (SearchNativeSqlQueries) super.setKey(key); } @Override - public SearchStages setOauthToken(java.lang.String oauthToken) { - return (SearchStages) super.setOauthToken(oauthToken); + public SearchNativeSqlQueries setOauthToken(java.lang.String oauthToken) { + return (SearchNativeSqlQueries) super.setOauthToken(oauthToken); } @Override - public SearchStages setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchStages) super.setPrettyPrint(prettyPrint); + public SearchNativeSqlQueries setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchNativeSqlQueries) super.setPrettyPrint(prettyPrint); } @Override - public SearchStages setQuotaUser(java.lang.String quotaUser) { - return (SearchStages) super.setQuotaUser(quotaUser); + public SearchNativeSqlQueries setQuotaUser(java.lang.String quotaUser) { + return (SearchNativeSqlQueries) super.setQuotaUser(quotaUser); } @Override - public SearchStages setUploadType(java.lang.String uploadType) { - return (SearchStages) super.setUploadType(uploadType); + public SearchNativeSqlQueries setUploadType(java.lang.String uploadType) { + return (SearchNativeSqlQueries) super.setUploadType(uploadType); } @Override - public SearchStages setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchStages) super.setUploadProtocol(uploadProtocol); + public SearchNativeSqlQueries setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchNativeSqlQueries) super.setUploadProtocol(uploadProtocol); } /** @@ -5686,7 +5452,7 @@ public java.lang.String getName() { * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID * " */ - public SearchStages setName(java.lang.String name) { + public SearchNativeSqlQueries 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 " + @@ -5697,49 +5463,49 @@ public SearchStages setName(java.lang.String name) { } /** - * Optional. Maximum number of stages (paging based on stage_id) to return in each - * response. The service may return fewer than this. The default page size is 10; the - * maximum page size is 100. + * Optional. Maximum number of queries to return in each response. The service may + * return fewer than this. The default page size is 10; the maximum page size is 100. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. Maximum number of stages (paging based on stage_id) to return in each response. The - service may return fewer than this. The default page size is 10; the maximum page size is 100. + /** Optional. Maximum number of queries to return in each response. The service may return fewer than + this. The default page size is 10; the maximum page size is 100. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * Optional. Maximum number of stages (paging based on stage_id) to return in each - * response. The service may return fewer than this. The default page size is 10; the - * maximum page size is 100. + * Optional. Maximum number of queries to return in each response. The service may + * return fewer than this. The default page size is 10; the maximum page size is 100. */ - public SearchStages setPageSize(java.lang.Integer pageSize) { + public SearchNativeSqlQueries setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. A page token received from a previous FetchSparkApplicationStagesList call. - * Provide this token to retrieve the subsequent page. + * Optional. A page token received from a previous + * SearchSparkApplicationNativeSqlQueries call. Provide this token to retrieve the + * subsequent page. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A page token received from a previous FetchSparkApplicationStagesList call. Provide this - token to retrieve the subsequent page. + /** Optional. A page token received from a previous SearchSparkApplicationNativeSqlQueries call. + Provide this token to retrieve the subsequent page. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. A page token received from a previous FetchSparkApplicationStagesList call. - * Provide this token to retrieve the subsequent page. + * Optional. A page token received from a previous + * SearchSparkApplicationNativeSqlQueries call. Provide this token to retrieve the + * subsequent page. */ - public SearchStages setPageToken(java.lang.String pageToken) { + public SearchNativeSqlQueries setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -5755,95 +5521,51 @@ public java.lang.String getParent() { } /** Required. Parent (Batch) resource reference. */ - public SearchStages setParent(java.lang.String parent) { + public SearchNativeSqlQueries setParent(java.lang.String parent) { this.parent = parent; return this; } - /** Optional. List only stages in the given state. */ - @com.google.api.client.util.Key - private java.lang.String stageStatus; - - /** Optional. List only stages in the given state. - */ - public java.lang.String getStageStatus() { - return stageStatus; - } - - /** Optional. List only stages in the given state. */ - public SearchStages setStageStatus(java.lang.String stageStatus) { - this.stageStatus = stageStatus; - return this; - } - - /** - * Optional. The list of summary metrics fields to include. Empty list will default to - * skip all summary metrics fields. Example, if the response should include - * TaskQuantileMetrics, the request should have task_quantile_metrics in - * summary_metrics_mask field - */ - @com.google.api.client.util.Key - private String summaryMetricsMask; - - /** Optional. The list of summary metrics fields to include. Empty list will default to skip all - summary metrics fields. Example, if the response should include TaskQuantileMetrics, the request - should have task_quantile_metrics in summary_metrics_mask field - */ - public String getSummaryMetricsMask() { - return summaryMetricsMask; - } - - /** - * Optional. The list of summary metrics fields to include. Empty list will default to - * skip all summary metrics fields. Example, if the response should include - * TaskQuantileMetrics, the request should have task_quantile_metrics in - * summary_metrics_mask field - */ - public SearchStages setSummaryMetricsMask(String summaryMetricsMask) { - this.summaryMetricsMask = summaryMetricsMask; - return this; - } - @Override - public SearchStages set(String parameterName, Object value) { - return (SearchStages) super.set(parameterName, value); + public SearchNativeSqlQueries set(String parameterName, Object value) { + return (SearchNativeSqlQueries) super.set(parameterName, value); } } /** - * Obtain summary of Executor Summary for a Spark Application + * Obtain data corresponding to SQL Queries for a Spark Application. * - * Create a request for the method "sparkApplications.summarizeExecutors". + * Create a request for the method "sparkApplications.searchSqlQueries". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link SummarizeExecutors#execute()} method to invoke the remote operation. + * parameters, call the {@link SearchSqlQueries#execute()} method to invoke the remote operation. * * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @return the request */ - public SummarizeExecutors summarizeExecutors(java.lang.String name) throws java.io.IOException { - SummarizeExecutors result = new SummarizeExecutors(name); + public SearchSqlQueries searchSqlQueries(java.lang.String name) throws java.io.IOException { + SearchSqlQueries result = new SearchSqlQueries(name); initialize(result); return result; } - public class SummarizeExecutors extends DataprocRequest{@link SummarizeExecutors#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * optional parameters, call the {@link SearchSqlQueries#execute()} method to invoke the remote + * operation.
{@link SearchSqlQueries#initialize(com.google.api.client.googleapis.services.Abs + * tractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.
* * @param name Required. The fully qualified name of the batch to retrieve in the format @@ -5851,8 +5573,8 @@ public class SummarizeExecutors extends DataprocRequest{@link SummarizeJobs#initialize(com.google.api.client.googleapis.services.Abstra - * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking - * the constructor.
+ * optional parameters, call the {@link SearchStageAttemptTasks#execute()} method to invoke the + * remote operation.{@link SearchStageAttemptTasks#initialize(com.google.api.client.googleapi + * s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
* * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @since 1.13 */ - protected SummarizeJobs(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SummarizeSparkApplicationJobsResponse.class); + protected SearchStageAttemptTasks(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationStageAttemptTasksResponse.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(), @@ -6040,58 +5847,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public SummarizeJobs set$Xgafv(java.lang.String $Xgafv) { - return (SummarizeJobs) super.set$Xgafv($Xgafv); + public SearchStageAttemptTasks set$Xgafv(java.lang.String $Xgafv) { + return (SearchStageAttemptTasks) super.set$Xgafv($Xgafv); } @Override - public SummarizeJobs setAccessToken(java.lang.String accessToken) { - return (SummarizeJobs) super.setAccessToken(accessToken); + public SearchStageAttemptTasks setAccessToken(java.lang.String accessToken) { + return (SearchStageAttemptTasks) super.setAccessToken(accessToken); } @Override - public SummarizeJobs setAlt(java.lang.String alt) { - return (SummarizeJobs) super.setAlt(alt); + public SearchStageAttemptTasks setAlt(java.lang.String alt) { + return (SearchStageAttemptTasks) super.setAlt(alt); } @Override - public SummarizeJobs setCallback(java.lang.String callback) { - return (SummarizeJobs) super.setCallback(callback); + public SearchStageAttemptTasks setCallback(java.lang.String callback) { + return (SearchStageAttemptTasks) super.setCallback(callback); } @Override - public SummarizeJobs setFields(java.lang.String fields) { - return (SummarizeJobs) super.setFields(fields); + public SearchStageAttemptTasks setFields(java.lang.String fields) { + return (SearchStageAttemptTasks) super.setFields(fields); } @Override - public SummarizeJobs setKey(java.lang.String key) { - return (SummarizeJobs) super.setKey(key); + public SearchStageAttemptTasks setKey(java.lang.String key) { + return (SearchStageAttemptTasks) super.setKey(key); } @Override - public SummarizeJobs setOauthToken(java.lang.String oauthToken) { - return (SummarizeJobs) super.setOauthToken(oauthToken); + public SearchStageAttemptTasks setOauthToken(java.lang.String oauthToken) { + return (SearchStageAttemptTasks) super.setOauthToken(oauthToken); } @Override - public SummarizeJobs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SummarizeJobs) super.setPrettyPrint(prettyPrint); + public SearchStageAttemptTasks setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchStageAttemptTasks) super.setPrettyPrint(prettyPrint); } @Override - public SummarizeJobs setQuotaUser(java.lang.String quotaUser) { - return (SummarizeJobs) super.setQuotaUser(quotaUser); + public SearchStageAttemptTasks setQuotaUser(java.lang.String quotaUser) { + return (SearchStageAttemptTasks) super.setQuotaUser(quotaUser); } @Override - public SummarizeJobs setUploadType(java.lang.String uploadType) { - return (SummarizeJobs) super.setUploadType(uploadType); + public SearchStageAttemptTasks setUploadType(java.lang.String uploadType) { + return (SearchStageAttemptTasks) super.setUploadType(uploadType); } @Override - public SummarizeJobs setUploadProtocol(java.lang.String uploadProtocol) { - return (SummarizeJobs) super.setUploadProtocol(uploadProtocol); + public SearchStageAttemptTasks setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchStageAttemptTasks) super.setUploadProtocol(uploadProtocol); } /** @@ -6114,7 +5921,7 @@ public java.lang.String getName() { * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID * " */ - public SummarizeJobs setName(java.lang.String name) { + public SearchStageAttemptTasks 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 " + @@ -6124,6 +5931,52 @@ public SummarizeJobs setName(java.lang.String name) { return this; } + /** + * Optional. Maximum number of tasks to return in each response. The service may return + * fewer than this. The default page size is 10; the maximum page size is 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of tasks to return in each response. The service may return fewer than + this. The default page size is 10; the maximum page size is 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Maximum number of tasks to return in each response. The service may return + * fewer than this. The default page size is 10; the maximum page size is 100. + */ + public SearchStageAttemptTasks setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token received from a previous ListSparkApplicationStageAttemptTasks + * call. Provide this token to retrieve the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token received from a previous ListSparkApplicationStageAttemptTasks call. Provide + this token to retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token received from a previous ListSparkApplicationStageAttemptTasks + * call. Provide this token to retrieve the subsequent page. + */ + public SearchStageAttemptTasks setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + /** Required. Parent (Batch) resource reference. */ @com.google.api.client.util.Key private java.lang.String parent; @@ -6135,61 +5988,124 @@ public java.lang.String getParent() { } /** Required. Parent (Batch) resource reference. */ - public SummarizeJobs setParent(java.lang.String parent) { + public SearchStageAttemptTasks setParent(java.lang.String parent) { this.parent = parent; return this; } + /** Optional. Sort the tasks by runtime. */ + @com.google.api.client.util.Key + private java.lang.Boolean sortRuntime; + + /** Optional. Sort the tasks by runtime. + */ + public java.lang.Boolean getSortRuntime() { + return sortRuntime; + } + + /** Optional. Sort the tasks by runtime. */ + public SearchStageAttemptTasks setSortRuntime(java.lang.Boolean sortRuntime) { + this.sortRuntime = sortRuntime; + return this; + } + + /** Optional. Stage Attempt ID */ + @com.google.api.client.util.Key + private java.lang.Integer stageAttemptId; + + /** Optional. Stage Attempt ID + */ + public java.lang.Integer getStageAttemptId() { + return stageAttemptId; + } + + /** Optional. Stage Attempt ID */ + public SearchStageAttemptTasks setStageAttemptId(java.lang.Integer stageAttemptId) { + this.stageAttemptId = stageAttemptId; + return this; + } + + /** Optional. Stage ID */ + @com.google.api.client.util.Key + private java.lang.Long stageId; + + /** Optional. Stage ID + */ + public java.lang.Long getStageId() { + return stageId; + } + + /** Optional. Stage ID */ + public SearchStageAttemptTasks setStageId(java.lang.Long stageId) { + this.stageId = stageId; + return this; + } + + /** Optional. List only tasks in the state. */ + @com.google.api.client.util.Key + private java.lang.String taskStatus; + + /** Optional. List only tasks in the state. + */ + public java.lang.String getTaskStatus() { + return taskStatus; + } + + /** Optional. List only tasks in the state. */ + public SearchStageAttemptTasks setTaskStatus(java.lang.String taskStatus) { + this.taskStatus = taskStatus; + return this; + } + @Override - public SummarizeJobs set(String parameterName, Object value) { - return (SummarizeJobs) super.set(parameterName, value); + public SearchStageAttemptTasks set(String parameterName, Object value) { + return (SearchStageAttemptTasks) super.set(parameterName, value); } } /** - * Obtain summary of Tasks for a Spark Application Stage Attempt + * Obtain data corresponding to a spark stage attempts for a Spark Application. * - * Create a request for the method "sparkApplications.summarizeStageAttemptTasks". + * Create a request for the method "sparkApplications.searchStageAttempts". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link SummarizeStageAttemptTasks#execute()} method to invoke the remote - * operation. + * parameters, call the {@link SearchStageAttempts#execute()} method to invoke the remote operation. * * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @return the request */ - public SummarizeStageAttemptTasks summarizeStageAttemptTasks(java.lang.String name) throws java.io.IOException { - SummarizeStageAttemptTasks result = new SummarizeStageAttemptTasks(name); + public SearchStageAttempts searchStageAttempts(java.lang.String name) throws java.io.IOException { + SearchStageAttempts result = new SearchStageAttempts(name); initialize(result); return result; } - public class SummarizeStageAttemptTasks extends DataprocRequest{@link SummarizeStageAttemptTasks#initialize(com.google.api.client.google - * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
+ * optional parameters, call the {@link SearchStageAttempts#execute()} method to invoke the remote + * operation.{@link SearchStageAttempts#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @since 1.13 */ - protected SummarizeStageAttemptTasks(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SummarizeSparkApplicationStageAttemptTasksResponse.class); + protected SearchStageAttempts(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationStageAttemptsResponse.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(), @@ -6209,58 +6125,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public SummarizeStageAttemptTasks set$Xgafv(java.lang.String $Xgafv) { - return (SummarizeStageAttemptTasks) super.set$Xgafv($Xgafv); + public SearchStageAttempts set$Xgafv(java.lang.String $Xgafv) { + return (SearchStageAttempts) super.set$Xgafv($Xgafv); } @Override - public SummarizeStageAttemptTasks setAccessToken(java.lang.String accessToken) { - return (SummarizeStageAttemptTasks) super.setAccessToken(accessToken); + public SearchStageAttempts setAccessToken(java.lang.String accessToken) { + return (SearchStageAttempts) super.setAccessToken(accessToken); } @Override - public SummarizeStageAttemptTasks setAlt(java.lang.String alt) { - return (SummarizeStageAttemptTasks) super.setAlt(alt); + public SearchStageAttempts setAlt(java.lang.String alt) { + return (SearchStageAttempts) super.setAlt(alt); } @Override - public SummarizeStageAttemptTasks setCallback(java.lang.String callback) { - return (SummarizeStageAttemptTasks) super.setCallback(callback); + public SearchStageAttempts setCallback(java.lang.String callback) { + return (SearchStageAttempts) super.setCallback(callback); } @Override - public SummarizeStageAttemptTasks setFields(java.lang.String fields) { - return (SummarizeStageAttemptTasks) super.setFields(fields); + public SearchStageAttempts setFields(java.lang.String fields) { + return (SearchStageAttempts) super.setFields(fields); } @Override - public SummarizeStageAttemptTasks setKey(java.lang.String key) { - return (SummarizeStageAttemptTasks) super.setKey(key); + public SearchStageAttempts setKey(java.lang.String key) { + return (SearchStageAttempts) super.setKey(key); } @Override - public SummarizeStageAttemptTasks setOauthToken(java.lang.String oauthToken) { - return (SummarizeStageAttemptTasks) super.setOauthToken(oauthToken); + public SearchStageAttempts setOauthToken(java.lang.String oauthToken) { + return (SearchStageAttempts) super.setOauthToken(oauthToken); } @Override - public SummarizeStageAttemptTasks setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SummarizeStageAttemptTasks) super.setPrettyPrint(prettyPrint); + public SearchStageAttempts setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchStageAttempts) super.setPrettyPrint(prettyPrint); } @Override - public SummarizeStageAttemptTasks setQuotaUser(java.lang.String quotaUser) { - return (SummarizeStageAttemptTasks) super.setQuotaUser(quotaUser); + public SearchStageAttempts setQuotaUser(java.lang.String quotaUser) { + return (SearchStageAttempts) super.setQuotaUser(quotaUser); } @Override - public SummarizeStageAttemptTasks setUploadType(java.lang.String uploadType) { - return (SummarizeStageAttemptTasks) super.setUploadType(uploadType); + public SearchStageAttempts setUploadType(java.lang.String uploadType) { + return (SearchStageAttempts) super.setUploadType(uploadType); } @Override - public SummarizeStageAttemptTasks setUploadProtocol(java.lang.String uploadProtocol) { - return (SummarizeStageAttemptTasks) super.setUploadProtocol(uploadProtocol); + public SearchStageAttempts setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchStageAttempts) super.setUploadProtocol(uploadProtocol); } /** @@ -6283,7 +6199,7 @@ public java.lang.String getName() { * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID * " */ - public SummarizeStageAttemptTasks setName(java.lang.String name) { + public SearchStageAttempts 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 " + @@ -6293,6 +6209,55 @@ public SummarizeStageAttemptTasks setName(java.lang.String name) { return this; } + /** + * Optional. Maximum number of stage attempts (paging based on stage_attempt_id) to + * return in each response. The service may return fewer than this. The default page + * size is 10; the maximum page size is 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of stage attempts (paging based on stage_attempt_id) to return in each + response. The service may return fewer than this. The default page size is 10; the maximum page + size is 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Maximum number of stage attempts (paging based on stage_attempt_id) to + * return in each response. The service may return fewer than this. The default page + * size is 10; the maximum page size is 100. + */ + public SearchStageAttempts setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token received from a previous SearchSparkApplicationStageAttempts + * call. Provide this token to retrieve the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token received from a previous SearchSparkApplicationStageAttempts call. Provide + this token to retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token received from a previous SearchSparkApplicationStageAttempts + * call. Provide this token to retrieve the subsequent page. + */ + public SearchStageAttempts setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + /** Required. Parent (Batch) resource reference. */ @com.google.api.client.util.Key private java.lang.String parent; @@ -6304,92 +6269,104 @@ public java.lang.String getParent() { } /** Required. Parent (Batch) resource reference. */ - public SummarizeStageAttemptTasks setParent(java.lang.String parent) { + public SearchStageAttempts setParent(java.lang.String parent) { this.parent = parent; return this; } - /** Required. Stage Attempt ID */ + /** Required. Stage ID for which attempts are to be fetched */ @com.google.api.client.util.Key - private java.lang.Integer stageAttemptId; + private java.lang.Long stageId; - /** Required. Stage Attempt ID + /** Required. Stage ID for which attempts are to be fetched */ - public java.lang.Integer getStageAttemptId() { - return stageAttemptId; + public java.lang.Long getStageId() { + return stageId; } - /** Required. Stage Attempt ID */ - public SummarizeStageAttemptTasks setStageAttemptId(java.lang.Integer stageAttemptId) { - this.stageAttemptId = stageAttemptId; + /** Required. Stage ID for which attempts are to be fetched */ + public SearchStageAttempts setStageId(java.lang.Long stageId) { + this.stageId = stageId; return this; } - /** Required. Stage ID */ + /** + * Optional. The list of summary metrics fields to include. Empty list will default to + * skip all summary metrics fields. Example, if the response should include + * TaskQuantileMetrics, the request should have task_quantile_metrics in + * summary_metrics_mask field + */ @com.google.api.client.util.Key - private java.lang.Long stageId; + private String summaryMetricsMask; - /** Required. Stage ID + /** Optional. The list of summary metrics fields to include. Empty list will default to skip all + summary metrics fields. Example, if the response should include TaskQuantileMetrics, the request + should have task_quantile_metrics in summary_metrics_mask field */ - public java.lang.Long getStageId() { - return stageId; + public String getSummaryMetricsMask() { + return summaryMetricsMask; } - /** Required. Stage ID */ - public SummarizeStageAttemptTasks setStageId(java.lang.Long stageId) { - this.stageId = stageId; + /** + * Optional. The list of summary metrics fields to include. Empty list will default to + * skip all summary metrics fields. Example, if the response should include + * TaskQuantileMetrics, the request should have task_quantile_metrics in + * summary_metrics_mask field + */ + public SearchStageAttempts setSummaryMetricsMask(String summaryMetricsMask) { + this.summaryMetricsMask = summaryMetricsMask; return this; } @Override - public SummarizeStageAttemptTasks set(String parameterName, Object value) { - return (SummarizeStageAttemptTasks) super.set(parameterName, value); + public SearchStageAttempts set(String parameterName, Object value) { + return (SearchStageAttempts) super.set(parameterName, value); } } /** - * Obtain summary of Stages for a Spark Application + * Obtain data corresponding to stages for a Spark Application. * - * Create a request for the method "sparkApplications.summarizeStages". + * Create a request for the method "sparkApplications.searchStages". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link SummarizeStages#execute()} method to invoke the remote operation. + * parameters, call the {@link SearchStages#execute()} method to invoke the remote operation. * * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @return the request */ - public SummarizeStages summarizeStages(java.lang.String name) throws java.io.IOException { - SummarizeStages result = new SummarizeStages(name); + public SearchStages searchStages(java.lang.String name) throws java.io.IOException { + SearchStages result = new SearchStages(name); initialize(result); return result; } - public class SummarizeStages extends DataprocRequest{@link SummarizeStages#initialize(com.google.api.client.googleapis.services.Abst - * ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking - * the constructor.
+ * optional parameters, call the {@link SearchStages#execute()} method to invoke the remote + * operation.{@link + * SearchStages#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" * @since 1.13 */ - protected SummarizeStages(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SummarizeSparkApplicationStagesResponse.class); + protected SearchStages(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSparkApplicationStagesResponse.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(), @@ -6409,58 +6386,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public SummarizeStages set$Xgafv(java.lang.String $Xgafv) { - return (SummarizeStages) super.set$Xgafv($Xgafv); + public SearchStages set$Xgafv(java.lang.String $Xgafv) { + return (SearchStages) super.set$Xgafv($Xgafv); } @Override - public SummarizeStages setAccessToken(java.lang.String accessToken) { - return (SummarizeStages) super.setAccessToken(accessToken); + public SearchStages setAccessToken(java.lang.String accessToken) { + return (SearchStages) super.setAccessToken(accessToken); } @Override - public SummarizeStages setAlt(java.lang.String alt) { - return (SummarizeStages) super.setAlt(alt); + public SearchStages setAlt(java.lang.String alt) { + return (SearchStages) super.setAlt(alt); } @Override - public SummarizeStages setCallback(java.lang.String callback) { - return (SummarizeStages) super.setCallback(callback); + public SearchStages setCallback(java.lang.String callback) { + return (SearchStages) super.setCallback(callback); } @Override - public SummarizeStages setFields(java.lang.String fields) { - return (SummarizeStages) super.setFields(fields); + public SearchStages setFields(java.lang.String fields) { + return (SearchStages) super.setFields(fields); } @Override - public SummarizeStages setKey(java.lang.String key) { - return (SummarizeStages) super.setKey(key); + public SearchStages setKey(java.lang.String key) { + return (SearchStages) super.setKey(key); } @Override - public SummarizeStages setOauthToken(java.lang.String oauthToken) { - return (SummarizeStages) super.setOauthToken(oauthToken); + public SearchStages setOauthToken(java.lang.String oauthToken) { + return (SearchStages) super.setOauthToken(oauthToken); } @Override - public SummarizeStages setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SummarizeStages) super.setPrettyPrint(prettyPrint); + public SearchStages setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchStages) super.setPrettyPrint(prettyPrint); } @Override - public SummarizeStages setQuotaUser(java.lang.String quotaUser) { - return (SummarizeStages) super.setQuotaUser(quotaUser); + public SearchStages setQuotaUser(java.lang.String quotaUser) { + return (SearchStages) super.setQuotaUser(quotaUser); } @Override - public SummarizeStages setUploadType(java.lang.String uploadType) { - return (SummarizeStages) super.setUploadType(uploadType); + public SearchStages setUploadType(java.lang.String uploadType) { + return (SearchStages) super.setUploadType(uploadType); } @Override - public SummarizeStages setUploadProtocol(java.lang.String uploadProtocol) { - return (SummarizeStages) super.setUploadProtocol(uploadProtocol); + public SearchStages setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchStages) super.setUploadProtocol(uploadProtocol); } /** @@ -6483,7 +6460,7 @@ public java.lang.String getName() { * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID * " */ - public SummarizeStages setName(java.lang.String name) { + public SearchStages 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 " + @@ -6493,6 +6470,54 @@ public SummarizeStages setName(java.lang.String name) { return this; } + /** + * Optional. Maximum number of stages (paging based on stage_id) to return in each + * response. The service may return fewer than this. The default page size is 10; the + * maximum page size is 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of stages (paging based on stage_id) to return in each response. The + service may return fewer than this. The default page size is 10; the maximum page size is 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Maximum number of stages (paging based on stage_id) to return in each + * response. The service may return fewer than this. The default page size is 10; the + * maximum page size is 100. + */ + public SearchStages setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token received from a previous FetchSparkApplicationStagesList call. + * Provide this token to retrieve the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token received from a previous FetchSparkApplicationStagesList call. Provide this + token to retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token received from a previous FetchSparkApplicationStagesList call. + * Provide this token to retrieve the subsequent page. + */ + public SearchStages setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + /** Required. Parent (Batch) resource reference. */ @com.google.api.client.util.Key private java.lang.String parent; @@ -6504,62 +6529,104 @@ public java.lang.String getParent() { } /** Required. Parent (Batch) resource reference. */ - public SummarizeStages setParent(java.lang.String parent) { + public SearchStages setParent(java.lang.String parent) { this.parent = parent; return this; } - @Override - public SummarizeStages set(String parameterName, Object value) { - return (SummarizeStages) super.set(parameterName, value); + /** Optional. List only stages in the given state. */ + @com.google.api.client.util.Key + private java.lang.String stageStatus; + + /** Optional. List only stages in the given state. + */ + public java.lang.String getStageStatus() { + return stageStatus; } - } - /** - * Write wrapper objects from dataplane to spanner - * - * Create a request for the method "sparkApplications.write". - * - * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link Write#execute()} method to invoke the remote operation. + + /** Optional. List only stages in the given state. */ + public SearchStages setStageStatus(java.lang.String stageStatus) { + this.stageStatus = stageStatus; + return this; + } + + /** + * Optional. The list of summary metrics fields to include. Empty list will default to + * skip all summary metrics fields. Example, if the response should include + * TaskQuantileMetrics, the request should have task_quantile_metrics in + * summary_metrics_mask field + */ + @com.google.api.client.util.Key + private String summaryMetricsMask; + + /** Optional. The list of summary metrics fields to include. Empty list will default to skip all + summary metrics fields. Example, if the response should include TaskQuantileMetrics, the request + should have task_quantile_metrics in summary_metrics_mask field + */ + public String getSummaryMetricsMask() { + return summaryMetricsMask; + } + + /** + * Optional. The list of summary metrics fields to include. Empty list will default to + * skip all summary metrics fields. Example, if the response should include + * TaskQuantileMetrics, the request should have task_quantile_metrics in + * summary_metrics_mask field + */ + public SearchStages setSummaryMetricsMask(String summaryMetricsMask) { + this.summaryMetricsMask = summaryMetricsMask; + return this; + } + + @Override + public SearchStages set(String parameterName, Object value) { + return (SearchStages) super.set(parameterName, value); + } + } + /** + * Obtain summary of Executor Summary for a Spark Application * - * @param name Required. The fully qualified name of the spark application to write data about in the format + * Create a request for the method "sparkApplications.summarizeExecutors". + * + * This request holds the parameters needed by the dataproc server. After setting any optional + * parameters, call the {@link SummarizeExecutors#execute()} method to invoke the remote operation. + * + * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" - * @param content the {@link com.google.api.services.dataproc.model.WriteSparkApplicationContextRequest} * @return the request */ - public Write write(java.lang.String name, com.google.api.services.dataproc.model.WriteSparkApplicationContextRequest content) throws java.io.IOException { - Write result = new Write(name, content); + public SummarizeExecutors summarizeExecutors(java.lang.String name) throws java.io.IOException { + SummarizeExecutors result = new SummarizeExecutors(name); initialize(result); return result; } - public class Write extends DataprocRequest{@link - * Write#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 SummarizeExecutors#execute()} method to invoke the remote + * operation.{@link SummarizeExecutors#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* - * @param name Required. The fully qualified name of the spark application to write data about in the format + * @param name Required. The fully qualified name of the batch to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT * ION_ID" - * @param content the {@link com.google.api.services.dataproc.model.WriteSparkApplicationContextRequest} * @since 1.13 */ - protected Write(java.lang.String name, com.google.api.services.dataproc.model.WriteSparkApplicationContextRequest content) { - super(Dataproc.this, "POST", REST_PATH, content, com.google.api.services.dataproc.model.WriteSparkApplicationContextResponse.class); + protected SummarizeExecutors(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SummarizeSparkApplicationExecutorsResponse.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(), @@ -6569,69 +6636,79 @@ protected Write(java.lang.String name, com.google.api.services.dataproc.model.Wr } @Override - public Write set$Xgafv(java.lang.String $Xgafv) { - return (Write) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Write setAccessToken(java.lang.String accessToken) { - return (Write) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Write setAlt(java.lang.String alt) { - return (Write) super.setAlt(alt); + public SummarizeExecutors set$Xgafv(java.lang.String $Xgafv) { + return (SummarizeExecutors) super.set$Xgafv($Xgafv); } @Override - public Write setCallback(java.lang.String callback) { - return (Write) super.setCallback(callback); + public SummarizeExecutors setAccessToken(java.lang.String accessToken) { + return (SummarizeExecutors) super.setAccessToken(accessToken); } @Override - public Write setFields(java.lang.String fields) { - return (Write) super.setFields(fields); + public SummarizeExecutors setAlt(java.lang.String alt) { + return (SummarizeExecutors) super.setAlt(alt); } @Override - public Write setKey(java.lang.String key) { - return (Write) super.setKey(key); + public SummarizeExecutors setCallback(java.lang.String callback) { + return (SummarizeExecutors) super.setCallback(callback); } @Override - public Write setOauthToken(java.lang.String oauthToken) { - return (Write) super.setOauthToken(oauthToken); + public SummarizeExecutors setFields(java.lang.String fields) { + return (SummarizeExecutors) super.setFields(fields); } @Override - public Write setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Write) super.setPrettyPrint(prettyPrint); + public SummarizeExecutors setKey(java.lang.String key) { + return (SummarizeExecutors) super.setKey(key); } @Override - public Write setQuotaUser(java.lang.String quotaUser) { - return (Write) super.setQuotaUser(quotaUser); + public SummarizeExecutors setOauthToken(java.lang.String oauthToken) { + return (SummarizeExecutors) super.setOauthToken(oauthToken); } @Override - public Write setUploadType(java.lang.String uploadType) { - return (Write) super.setUploadType(uploadType); + public SummarizeExecutors setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SummarizeExecutors) super.setPrettyPrint(prettyPrint); } @Override - public Write setUploadProtocol(java.lang.String uploadProtocol) { - return (Write) super.setUploadProtocol(uploadProtocol); + public SummarizeExecutors setQuotaUser(java.lang.String quotaUser) { + return (SummarizeExecutors) super.setQuotaUser(quotaUser); + } + + @Override + public SummarizeExecutors setUploadType(java.lang.String uploadType) { + return (SummarizeExecutors) super.setUploadType(uploadType); + } + + @Override + public SummarizeExecutors setUploadProtocol(java.lang.String uploadProtocol) { + return (SummarizeExecutors) super.setUploadProtocol(uploadProtocol); } /** - * Required. The fully qualified name of the spark application to write data about in - * the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkAppli - * cations/APPLICATION_ID" + * Required. The fully qualified name of the batch to retrieve in the format "projects/P + * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID + * " */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The fully qualified name of the spark application to write data about in the format + /** Required. The fully qualified name of the batch to retrieve in the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID" */ public java.lang.String getName() { @@ -6639,11 +6716,11 @@ public java.lang.String getName() { } /** - * Required. The fully qualified name of the spark application to write data about in - * the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkAppli - * cations/APPLICATION_ID" + * Required. The fully qualified name of the batch to retrieve in the format "projects/P + * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID + * " */ - public Write setName(java.lang.String name) { + public SummarizeExecutors 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 " + @@ -6653,832 +6730,883 @@ public Write setName(java.lang.String name) { return this; } - @Override - public Write set(String parameterName, Object value) { - return (Write) super.set(parameterName, value); - } - } - - } - } - /** - * An accessor for creating requests from the Operations collection. - * - *The typical use is:
- *
- * {@code Dataproc dataproc = new Dataproc(...);}
- * {@code Dataproc.Operations.List request = dataproc.operations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Operations operations() {
- return new Operations();
- }
-
- /**
- * The "operations" collection of methods.
- */
- public class Operations {
-
- /**
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
- * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
- * it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other
- * methods to check whether the cancellation succeeded or whether the operation completed despite
- * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
- * operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
- * Code.CANCELLED.
- *
- * Create a request for the method "operations.cancel".
- *
- * This request holds the parameters needed by the dataproc server. After setting any optional
- * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
- *
- * @param name The name of the operation resource to be cancelled.
- * @return the request
- */
- public Cancel cancel(java.lang.String name) throws java.io.IOException {
- Cancel result = new Cancel(name);
- initialize(result);
- return result;
- }
-
- public class Cancel extends DataprocRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the dataproc server. After setting any optional + * parameters, call the {@link SummarizeJobs#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 + * @param name Required. The fully qualified name of the batch to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT + * ION_ID" + * @return the request */ - protected Cancel(java.lang.String name) { - super(Dataproc.this, "POST", REST_PATH, null, com.google.api.services.dataproc.model.Empty.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/[^/]+/operations/[^/]+$"); - } + public SummarizeJobs summarizeJobs(java.lang.String name) throws java.io.IOException { + SummarizeJobs result = new SummarizeJobs(name); + initialize(result); + return result; } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + public class SummarizeJobs extends DataprocRequest{@link SummarizeJobs#initialize(com.google.api.client.googleapis.services.Abstra + * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
+ * + * @param name Required. The fully qualified name of the batch to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT + * ION_ID" + * @since 1.13 + */ + protected SummarizeJobs(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SummarizeSparkApplicationJobsResponse.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/[^/]+/batches/[^/]+/sparkApplications/[^/]+$"); + } + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public SummarizeJobs set$Xgafv(java.lang.String $Xgafv) { + return (SummarizeJobs) super.set$Xgafv($Xgafv); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public SummarizeJobs setAccessToken(java.lang.String accessToken) { + return (SummarizeJobs) super.setAccessToken(accessToken); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public SummarizeJobs setAlt(java.lang.String alt) { + return (SummarizeJobs) super.setAlt(alt); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public SummarizeJobs setCallback(java.lang.String callback) { + return (SummarizeJobs) super.setCallback(callback); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + @Override + public SummarizeJobs setFields(java.lang.String fields) { + return (SummarizeJobs) super.setFields(fields); + } - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public SummarizeJobs setKey(java.lang.String key) { + return (SummarizeJobs) super.setKey(key); + } - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + @Override + public SummarizeJobs setOauthToken(java.lang.String oauthToken) { + return (SummarizeJobs) super.setOauthToken(oauthToken); + } - /** The name of the operation resource to be cancelled. */ - public Cancel 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/[^/]+/operations/[^/]+$"); + @Override + public SummarizeJobs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SummarizeJobs) super.setPrettyPrint(prettyPrint); } - this.name = name; - return this; - } - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns google.rpc.Code.UNIMPLEMENTED. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to be deleted. - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } + @Override + public SummarizeJobs setQuotaUser(java.lang.String quotaUser) { + return (SummarizeJobs) super.setQuotaUser(quotaUser); + } - public class Delete extends DataprocRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the dataproc server. After setting any optional + * parameters, call the {@link SummarizeStageAttemptTasks#execute()} method to invoke the remote + * operation. * - * @param name The name of the operation resource to be deleted. - * @since 1.13 + * @param name Required. The fully qualified name of the batch to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT + * ION_ID" + * @return the request */ - protected Delete(java.lang.String name) { - super(Dataproc.this, "DELETE", REST_PATH, null, com.google.api.services.dataproc.model.Empty.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/[^/]+/operations/[^/]+$"); - } + public SummarizeStageAttemptTasks summarizeStageAttemptTasks(java.lang.String name) throws java.io.IOException { + SummarizeStageAttemptTasks result = new SummarizeStageAttemptTasks(name); + initialize(result); + return result; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class SummarizeStageAttemptTasks extends DataprocRequest{@link SummarizeStageAttemptTasks#initialize(com.google.api.client.google + * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
+ * + * @param name Required. The fully qualified name of the batch to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT + * ION_ID" + * @since 1.13 + */ + protected SummarizeStageAttemptTasks(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SummarizeSparkApplicationStageAttemptTasksResponse.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/[^/]+/batches/[^/]+/sparkApplications/[^/]+$"); + } + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public SummarizeStageAttemptTasks set$Xgafv(java.lang.String $Xgafv) { + return (SummarizeStageAttemptTasks) super.set$Xgafv($Xgafv); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public SummarizeStageAttemptTasks setAccessToken(java.lang.String accessToken) { + return (SummarizeStageAttemptTasks) super.setAccessToken(accessToken); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public SummarizeStageAttemptTasks setAlt(java.lang.String alt) { + return (SummarizeStageAttemptTasks) super.setAlt(alt); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public SummarizeStageAttemptTasks setCallback(java.lang.String callback) { + return (SummarizeStageAttemptTasks) super.setCallback(callback); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public SummarizeStageAttemptTasks setFields(java.lang.String fields) { + return (SummarizeStageAttemptTasks) super.setFields(fields); + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public SummarizeStageAttemptTasks setKey(java.lang.String key) { + return (SummarizeStageAttemptTasks) super.setKey(key); + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + @Override + public SummarizeStageAttemptTasks setOauthToken(java.lang.String oauthToken) { + return (SummarizeStageAttemptTasks) super.setOauthToken(oauthToken); + } - /** The name of the operation resource to be deleted. */ - 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/[^/]+/operations/[^/]+$"); + @Override + public SummarizeStageAttemptTasks setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SummarizeStageAttemptTasks) super.setPrettyPrint(prettyPrint); } - this.name = name; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } + @Override + public SummarizeStageAttemptTasks setQuotaUser(java.lang.String quotaUser) { + return (SummarizeStageAttemptTasks) super.setQuotaUser(quotaUser); + } - public class Get extends DataprocRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.Operation.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/[^/]+/operations/[^/]+$"); + /** Required. The fully qualified name of the batch to retrieve in the format + "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID" + */ + public java.lang.String getName() { + return name; } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * Required. The fully qualified name of the batch to retrieve in the format "projects/P + * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID + * " + */ + public SummarizeStageAttemptTasks 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/[^/]+/batches/[^/]+/sparkApplications/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** Required. Parent (Batch) resource reference. */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** Required. Parent (Batch) resource reference. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** Required. Parent (Batch) resource reference. */ + public SummarizeStageAttemptTasks setParent(java.lang.String parent) { + this.parent = parent; + return this; + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + /** Required. Stage Attempt ID */ + @com.google.api.client.util.Key + private java.lang.Integer stageAttemptId; - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + /** Required. Stage Attempt ID + */ + public java.lang.Integer getStageAttemptId() { + return stageAttemptId; + } - @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. Stage Attempt ID */ + public SummarizeStageAttemptTasks setStageAttemptId(java.lang.Integer stageAttemptId) { + this.stageAttemptId = stageAttemptId; + return this; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. Stage ID */ + @com.google.api.client.util.Key + private java.lang.Long stageId; - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + /** Required. Stage ID + */ + public java.lang.Long getStageId() { + return stageId; + } - /** The name of the operation resource. */ - 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/[^/]+/operations/[^/]+$"); + /** Required. Stage ID */ + public SummarizeStageAttemptTasks setStageId(java.lang.Long stageId) { + this.stageId = stageId; + return this; } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + @Override + public SummarizeStageAttemptTasks set(String parameterName, Object value) { + return (SummarizeStageAttemptTasks) super.set(parameterName, value); + } } - } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns UNIMPLEMENTED. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param name The name of the operation's parent resource. - * @return the request - */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } - - public class List extends DataprocRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the dataproc server. After setting any optional + * parameters, call the {@link SummarizeStages#execute()} method to invoke the remote operation. * - * @param name The name of the operation's parent resource. - * @since 1.13 + * @param name Required. The fully qualified name of the batch to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT + * ION_ID" + * @return the request */ - protected List(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.ListOperationsResponse.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/[^/]+/operations$"); - } + public SummarizeStages summarizeStages(java.lang.String name) throws java.io.IOException { + SummarizeStages result = new SummarizeStages(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class SummarizeStages extends DataprocRequest{@link SummarizeStages#initialize(com.google.api.client.googleapis.services.Abst + * ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
+ * + * @param name Required. The fully qualified name of the batch to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT + * ION_ID" + * @since 1.13 + */ + protected SummarizeStages(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SummarizeSparkApplicationStagesResponse.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/[^/]+/batches/[^/]+/sparkApplications/[^/]+$"); + } + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public SummarizeStages set$Xgafv(java.lang.String $Xgafv) { + return (SummarizeStages) super.set$Xgafv($Xgafv); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public SummarizeStages setAccessToken(java.lang.String accessToken) { + return (SummarizeStages) super.setAccessToken(accessToken); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public SummarizeStages setAlt(java.lang.String alt) { + return (SummarizeStages) super.setAlt(alt); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public SummarizeStages setCallback(java.lang.String callback) { + return (SummarizeStages) super.setCallback(callback); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public SummarizeStages setFields(java.lang.String fields) { + return (SummarizeStages) super.setFields(fields); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public SummarizeStages setKey(java.lang.String key) { + return (SummarizeStages) super.setKey(key); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public SummarizeStages setOauthToken(java.lang.String oauthToken) { + return (SummarizeStages) super.setOauthToken(oauthToken); + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public SummarizeStages setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SummarizeStages) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public SummarizeStages setQuotaUser(java.lang.String quotaUser) { + return (SummarizeStages) super.setQuotaUser(quotaUser); + } - /** The name of the operation's parent resource. */ - public List 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/[^/]+/operations$"); + @Override + public SummarizeStages setUploadType(java.lang.String uploadType) { + return (SummarizeStages) super.setUploadType(uploadType); } - this.name = name; - return this; - } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public SummarizeStages setUploadProtocol(java.lang.String uploadProtocol) { + return (SummarizeStages) super.setUploadProtocol(uploadProtocol); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + /** + * Required. The fully qualified name of the batch to retrieve in the format "projects/P + * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID + * " + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** Required. The fully qualified name of the batch to retrieve in the format + "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID" + */ + public java.lang.String getName() { + return name; + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** + * Required. The fully qualified name of the batch to retrieve in the format "projects/P + * ROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICATION_ID + * " + */ + public SummarizeStages 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/[^/]+/batches/[^/]+/sparkApplications/[^/]+$"); + } + this.name = name; + return this; + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** Required. Parent (Batch) resource reference. */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** Required. Parent (Batch) resource reference. + */ + public java.lang.String getParent() { + return parent; + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** Required. Parent (Batch) resource reference. */ + public SummarizeStages setParent(java.lang.String parent) { + this.parent = parent; + return this; + } - /** The standard list page token. + @Override + public SummarizeStages set(String parameterName, Object value) { + return (SummarizeStages) super.set(parameterName, value); + } + } + /** + * Write wrapper objects from dataplane to spanner + * + * Create a request for the method "sparkApplications.write". + * + * This request holds the parameters needed by the dataproc server. After setting any optional + * parameters, call the {@link Write#execute()} method to invoke the remote operation. + * + * @param name Required. The fully qualified name of the spark application to write data about in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT + * ION_ID" + * @param content the {@link com.google.api.services.dataproc.model.WriteSparkApplicationContextRequest} + * @return the request */ - public java.lang.String getPageToken() { - return pageToken; + public Write write(java.lang.String name, com.google.api.services.dataproc.model.WriteSparkApplicationContextRequest content) throws java.io.IOException { + Write result = new Write(name, content); + initialize(result); + return result; } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + public class Write extends DataprocRequest{@link + * Write#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The fully qualified name of the spark application to write data about in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID/sparkApplications/APPLICAT + * ION_ID" + * @param content the {@link com.google.api.services.dataproc.model.WriteSparkApplicationContextRequest} + * @since 1.13 + */ + protected Write(java.lang.String name, com.google.api.services.dataproc.model.WriteSparkApplicationContextRequest content) { + super(Dataproc.this, "POST", REST_PATH, content, com.google.api.services.dataproc.model.WriteSparkApplicationContextResponse.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/[^/]+/batches/[^/]+/sparkApplications/[^/]+$"); + } + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + @Override + public Write set$Xgafv(java.lang.String $Xgafv) { + return (Write) super.set$Xgafv($Xgafv); + } - } - /** - * An accessor for creating requests from the SessionTemplates collection. - * - *The typical use is:
- *
- * {@code Dataproc dataproc = new Dataproc(...);}
- * {@code Dataproc.SessionTemplates.List request = dataproc.sessionTemplates().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public SessionTemplates sessionTemplates() {
- return new SessionTemplates();
- }
+ @Override
+ public Write setAccessToken(java.lang.String accessToken) {
+ return (Write) super.setAccessToken(accessToken);
+ }
- /**
- * The "sessionTemplates" collection of methods.
- */
- public class SessionTemplates {
+ @Override
+ public Write setAlt(java.lang.String alt) {
+ return (Write) super.setAlt(alt);
+ }
- /**
- * Create a session template synchronously.
- *
- * Create a request for the method "sessionTemplates.create".
- *
- * This request holds the parameters needed by the dataproc 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 session template will be created.
- * @param content the {@link com.google.api.services.dataproc.model.SessionTemplate}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.dataproc.model.SessionTemplate content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
+ @Override
+ public Write setCallback(java.lang.String callback) {
+ return (Write) super.setCallback(callback);
+ }
- public class Create extends DataprocRequestThe typical use is:
+ *
+ * {@code Dataproc dataproc = new Dataproc(...);}
+ * {@code Dataproc.Operations.List request = dataproc.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
+ * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
+ * it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other
+ * methods to check whether the cancellation succeeded or whether the operation completed despite
+ * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
+ * operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
+ * Code.CANCELLED.
+ *
+ * Create a request for the method "operations.cancel".
+ *
+ * This request holds the parameters needed by the dataproc server. After setting any optional
+ * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ *
+ * @param name The name of the operation resource to be cancelled.
+ * @return the request
+ */
+ public Cancel cancel(java.lang.String name) throws java.io.IOException {
+ Cancel result = new Cancel(name);
+ initialize(result);
+ return result;
+ }
+
+ public class Cancel extends DataprocRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Cancel#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 session template will be created. - * @param content the {@link com.google.api.services.dataproc.model.SessionTemplate} + * @param name The name of the operation resource to be cancelled. * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.dataproc.model.SessionTemplate content) { - super(Dataproc.this, "POST", REST_PATH, content, com.google.api.services.dataproc.model.SessionTemplate.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Cancel(java.lang.String name) { + super(Dataproc.this, "POST", REST_PATH, null, com.google.api.services.dataproc.model.Empty.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent resource where this session template will be created. */ + /** The name of the operation resource to be cancelled. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent resource where this session template will be created. + /** The name of the operation resource to be cancelled. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** Required. The parent resource where this session template will be created. */ - public Create setParent(java.lang.String parent) { + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Deletes a session template. + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns google.rpc.Code.UNIMPLEMENTED. * - * Create a request for the method "sessionTemplates.delete". + * Create a request for the method "operations.delete". * * This request holds the parameters needed by the dataproc server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the session template resource to delete. + * @param name The name of the operation resource to be deleted. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -7492,12 +7620,14 @@ public class Delete extends DataprocRequest* {@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 name of the session template to retrieve. + * @param name The name of the operation resource. * @since 1.13 */ protected Get(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SessionTemplate.class); + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.Operation.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/[^/]+/sessionTemplates/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @@ -7711,22 +7843,22 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the session template to retrieve. */ + /** The name of the operation resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the session template to retrieve. + /** The name of the operation resource. */ public java.lang.String getName() { return name; } - /** Required. The name of the session template to retrieve. */ + /** The name of the operation resource. */ 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/[^/]+/sessionTemplates/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -7738,49 +7870,51 @@ public Get set(String parameterName, Object value) { } } /** - * Lists session templates. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns UNIMPLEMENTED. * - * Create a request for the method "sessionTemplates.list". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the dataproc server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent that owns this collection of session templates. + * @param name The name of the operation's parent resource. * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); initialize(result); return result; } - public class List extends DataprocRequest* {@link List#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 that owns this collection of session templates. + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected List(java.lang.String parent) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.ListSessionTemplatesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected List(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.ListOperationsResponse.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations$"); } } @@ -7849,370 +7983,252 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent that owns this collection of session templates. */ + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent that owns this collection of session templates. + /** The name of the operation's parent resource. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** Required. The parent that owns this collection of session templates. */ - public List setParent(java.lang.String parent) { + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations$"); } - this.parent = parent; + this.name = name; return this; } - /** - * Optional. A filter for the session templates to return in the response. Filters are - * case sensitive and have the following syntax:field = value AND field = value ... - */ + /** The standard list filter. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. A filter for the session templates to return in the response. Filters are case sensitive - and have the following syntax:field = value AND field = value ... + /** The standard list filter. */ public java.lang.String getFilter() { return filter; } - /** - * Optional. A filter for the session templates to return in the response. Filters are - * case sensitive and have the following syntax:field = value AND field = value ... - */ + /** The standard list filter. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Optional. The maximum number of sessions to return in each response. The service may - * return fewer than this value. - */ + /** The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The maximum number of sessions to return in each response. The service may return fewer - than this value. + /** The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** - * Optional. The maximum number of sessions to return in each response. The service may - * return fewer than this value. - */ + /** The standard list page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** - * Optional. A page token received from a previous ListSessions call. Provide this token - * to retrieve the subsequent page. - */ + /** The standard list page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A page token received from a previous ListSessions call. Provide this token to retrieve - the subsequent page. + /** The standard list page token. */ public java.lang.String getPageToken() { return pageToken; } - /** - * Optional. A page token received from a previous ListSessions call. Provide this token - * to retrieve the subsequent page. - */ + /** The standard list page token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } + /** + * When set to true, operations that are reachable are returned as normal, and those that + * are unreachable are returned in the ListOperationsResponse.unreachable field.This can + * only be true when reading across collections. For example, when parent is set to + * "projects/example/locations/-".This field is not supported by default and will result + * in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or + * product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to true, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field.This can only be true when + reading across collections. For example, when parent is set to "projects/example/locations/-".This + field is not supported by default and will result in an UNIMPLEMENTED error if set unless + explicitly documented otherwise in service or product specific documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to true, operations that are reachable are returned as normal, and those that + * are unreachable are returned in the ListOperationsResponse.unreachable field.This can + * only be true when reading across collections. For example, when parent is set to + * "projects/example/locations/-".This field is not supported by default and will result + * in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or + * product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the SessionTemplates collection. + * + *The typical use is:
+ *
+ * {@code Dataproc dataproc = new Dataproc(...);}
+ * {@code Dataproc.SessionTemplates.List request = dataproc.sessionTemplates().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public SessionTemplates sessionTemplates() {
+ return new SessionTemplates();
+ }
+
+ /**
+ * The "sessionTemplates" collection of methods.
+ */
+ public class SessionTemplates {
+
/**
- * Updates the session template synchronously.
+ * Create a session template synchronously.
*
- * Create a request for the method "sessionTemplates.patch".
+ * Create a request for the method "sessionTemplates.create".
*
* This request holds the parameters needed by the dataproc server. After setting any optional
- * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param name Required. Identifier. The resource name of the session template.
+ * @param parent Required. The parent resource where this session template will be created.
* @param content the {@link com.google.api.services.dataproc.model.SessionTemplate}
* @return the request
*/
- public Patch patch(java.lang.String name, com.google.api.services.dataproc.model.SessionTemplate content) throws java.io.IOException {
- Patch result = new Patch(name, content);
+ public Create create(java.lang.String parent, com.google.api.services.dataproc.model.SessionTemplate content) throws java.io.IOException {
+ Create result = new Create(parent, content);
initialize(result);
return result;
}
- public class Patch extends DataprocRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. Identifier. The resource name of the session template. + * @param parent Required. The parent resource where this session template will be created. * @param content the {@link com.google.api.services.dataproc.model.SessionTemplate} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.dataproc.model.SessionTemplate content) { - super(Dataproc.this, "PATCH", REST_PATH, content, com.google.api.services.dataproc.model.SessionTemplate.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Create(java.lang.String parent, com.google.api.services.dataproc.model.SessionTemplate content) { + super(Dataproc.this, "POST", REST_PATH, content, com.google.api.services.dataproc.model.SessionTemplate.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/sessionTemplates/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** Required. Identifier. The resource name of the session template. */ + /** Required. The parent resource where this session template will be created. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. Identifier. The resource name of the session template. - */ - public java.lang.String getName() { - return name; - } - - /** Required. Identifier. The resource name of the session template. */ - public Patch 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/[^/]+/sessionTemplates/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - - } - /** - * An accessor for creating requests from the Sessions collection. - * - *The typical use is:
- *
- * {@code Dataproc dataproc = new Dataproc(...);}
- * {@code Dataproc.Sessions.List request = dataproc.sessions().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Sessions sessions() {
- return new Sessions();
- }
-
- /**
- * The "sessions" collection of methods.
- */
- public class Sessions {
-
- /**
- * Create an interactive session asynchronously.
- *
- * Create a request for the method "sessions.create".
- *
- * This request holds the parameters needed by the dataproc 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 session will be created.
- * @param content the {@link com.google.api.services.dataproc.model.Session}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.dataproc.model.Session content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends DataprocRequest{@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 session will be created. - * @param content the {@link com.google.api.services.dataproc.model.Session} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.dataproc.model.Session content) { - super(Dataproc.this, "POST", REST_PATH, content, com.google.api.services.dataproc.model.Operation.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 where this session will be created. */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The parent resource where this session will be created. + /** Required. The parent resource where this session template will be created. */ public java.lang.String getParent() { return parent; } - /** Required. The parent resource where this session will be created. */ + /** Required. The parent resource where this session template will be created. */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -8223,85 +8239,20 @@ public Create setParent(java.lang.String parent) { return this; } - /** - * Optional. A unique ID used to identify the request. If the service receives two - * CreateSessionRequests (https://cloud.google.com/dataproc/docs/reference/rpc/google.clou - * d.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the - * second request is ignored, and the first Session is created and stored in the - * backend.Recommendation: Set this value to a UUID - * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain - * only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum - * length is 40 characters. - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. A unique ID used to identify the request. If the service receives two - CreateSessionRequests (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v - 1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the second request is ignored, - and the first Session is created and stored in the backend.Recommendation: Set this value to a UUID - (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters - (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. A unique ID used to identify the request. If the service receives two - * CreateSessionRequests (https://cloud.google.com/dataproc/docs/reference/rpc/google.clou - * d.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the - * second request is ignored, and the first Session is created and stored in the - * backend.Recommendation: Set this value to a UUID - * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain - * only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum - * length is 40 characters. - */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Required. The ID to use for the session, which becomes the final component of the - * session's resource name.This value must be 4-63 characters. Valid characters are - * /a-z-/. - */ - @com.google.api.client.util.Key - private java.lang.String sessionId; - - /** Required. The ID to use for the session, which becomes the final component of the session's - resource name.This value must be 4-63 characters. Valid characters are /a-z-/. - */ - public java.lang.String getSessionId() { - return sessionId; - } - - /** - * Required. The ID to use for the session, which becomes the final component of the - * session's resource name.This value must be 4-63 characters. Valid characters are - * /a-z-/. - */ - public Create setSessionId(java.lang.String sessionId) { - this.sessionId = sessionId; - return this; - } - @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** - * Deletes the interactive session resource. If the session is not in terminal state, it is - * terminated, and then deleted. + * Deletes a session template. * - * Create a request for the method "sessions.delete". + * Create a request for the method "sessionTemplates.delete". * * This request holds the parameters needed by the dataproc server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the session resource to delete. + * @param name Required. The name of the session template resource to delete. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -8310,18 +8261,17 @@ public Delete delete(java.lang.String name) throws java.io.IOException { return result; } - public class Delete extends DataprocRequest* {@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 name of the session to retrieve. + * @param name Required. The name of the session template to retrieve. * @since 1.13 */ protected Get(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.Session.class); + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SessionTemplate.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/[^/]+/sessions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/sessionTemplates/[^/]+$"); } } @@ -8572,22 +8485,22 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the session to retrieve. */ + /** Required. The name of the session template to retrieve. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the session to retrieve. + /** Required. The name of the session template to retrieve. */ public java.lang.String getName() { return name; } - /** Required. The name of the session to retrieve. */ + /** Required. The name of the session template to retrieve. */ 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/[^/]+/sessions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/sessionTemplates/[^/]+$"); } this.name = name; return this; @@ -8599,14 +8512,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists interactive sessions. + * Lists session templates. * - * Create a request for the method "sessions.list". + * Create a request for the method "sessionTemplates.list". * * This request holds the parameters needed by the dataproc server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent, which owns this collection of sessions. + * @param parent Required. The parent that owns this collection of session templates. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -8615,28 +8528,28 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends DataprocRequest* {@link List#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, which owns this collection of sessions. + * @param parent Required. The parent that owns this collection of session templates. * @since 1.13 */ protected List(java.lang.String parent) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.ListSessionsResponse.class); + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.ListSessionTemplatesResponse.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(), @@ -8710,17 +8623,17 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent, which owns this collection of sessions. */ + /** Required. The parent that owns this collection of session templates. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent, which owns this collection of sessions. + /** Required. The parent that owns this collection of session templates. */ public java.lang.String getParent() { return parent; } - /** Required. The parent, which owns this collection of sessions. */ + /** Required. The parent that owns this collection of session templates. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -8732,42 +8645,22 @@ public List setParent(java.lang.String parent) { } /** - * Optional. A filter for the sessions to return in the response.A filter is a logical - * expression constraining the values of various fields in each session resource. Filters - * are case sensitive, and may contain multiple clauses combined with logical operators - * (AND, OR). Supported fields are session_id, session_uuid, state, create_time, and - * labels.Example: state = ACTIVE and create_time < "2023-01-01T00:00:00Z" is a filter for - * sessions in an ACTIVE state that were created before 2023-01-01. state = ACTIVE and - * labels.environment=production is a filter for sessions in an ACTIVE state that have a - * production environment label.See https://google.aip.dev/assets/misc/ebnf-filtering.txt - * for a detailed description of the filter syntax and a list of supported comparators. + * Optional. A filter for the session templates to return in the response. Filters are + * case sensitive and have the following syntax:field = value AND field = value ... */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. A filter for the sessions to return in the response.A filter is a logical expression - constraining the values of various fields in each session resource. Filters are case sensitive, and - may contain multiple clauses combined with logical operators (AND, OR). Supported fields are - session_id, session_uuid, state, create_time, and labels.Example: state = ACTIVE and create_time < - "2023-01-01T00:00:00Z" is a filter for sessions in an ACTIVE state that were created before - 2023-01-01. state = ACTIVE and labels.environment=production is a filter for sessions in an ACTIVE - state that have a production environment label.See https://google.aip.dev/assets/misc/ebnf- - filtering.txt for a detailed description of the filter syntax and a list of supported comparators. + /** Optional. A filter for the session templates to return in the response. Filters are case sensitive + and have the following syntax:field = value AND field = value ... */ public java.lang.String getFilter() { return filter; } /** - * Optional. A filter for the sessions to return in the response.A filter is a logical - * expression constraining the values of various fields in each session resource. Filters - * are case sensitive, and may contain multiple clauses combined with logical operators - * (AND, OR). Supported fields are session_id, session_uuid, state, create_time, and - * labels.Example: state = ACTIVE and create_time < "2023-01-01T00:00:00Z" is a filter for - * sessions in an ACTIVE state that were created before 2023-01-01. state = ACTIVE and - * labels.environment=production is a filter for sessions in an ACTIVE state that have a - * production environment label.See https://google.aip.dev/assets/misc/ebnf-filtering.txt - * for a detailed description of the filter syntax and a list of supported comparators. + * Optional. A filter for the session templates to return in the response. Filters are + * case sensitive and have the following syntax:field = value AND field = value ... */ public List setFilter(java.lang.String filter) { this.filter = filter; @@ -8826,201 +8719,1419 @@ public List set(String parameterName, Object value) { } } /** - * Terminates the interactive session. + * Updates the session template synchronously. * - * Create a request for the method "sessions.terminate". + * Create a request for the method "sessionTemplates.patch". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link Terminate#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. The name of the session resource to terminate. - * @param content the {@link com.google.api.services.dataproc.model.TerminateSessionRequest} + * @param name Required. Identifier. The resource name of the session template. + * @param content the {@link com.google.api.services.dataproc.model.SessionTemplate} * @return the request */ - public Terminate terminate(java.lang.String name, com.google.api.services.dataproc.model.TerminateSessionRequest content) throws java.io.IOException { - Terminate result = new Terminate(name, content); + public Patch patch(java.lang.String name, com.google.api.services.dataproc.model.SessionTemplate content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Terminate extends DataprocRequest{@link - * Terminate#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 Patch#execute()} method to invoke the remote operation. + *{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The name of the session resource to terminate. - * @param content the {@link com.google.api.services.dataproc.model.TerminateSessionRequest} + * @param name Required. Identifier. The resource name of the session template. + * @param content the {@link com.google.api.services.dataproc.model.SessionTemplate} * @since 1.13 */ - protected Terminate(java.lang.String name, com.google.api.services.dataproc.model.TerminateSessionRequest content) { - super(Dataproc.this, "POST", REST_PATH, content, com.google.api.services.dataproc.model.Operation.class); + protected Patch(java.lang.String name, com.google.api.services.dataproc.model.SessionTemplate content) { + super(Dataproc.this, "PATCH", REST_PATH, content, com.google.api.services.dataproc.model.SessionTemplate.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/[^/]+/sessions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/sessionTemplates/[^/]+$"); } } @Override - public Terminate set$Xgafv(java.lang.String $Xgafv) { - return (Terminate) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Terminate setAccessToken(java.lang.String accessToken) { - return (Terminate) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Terminate setAlt(java.lang.String alt) { - return (Terminate) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Terminate setCallback(java.lang.String callback) { - return (Terminate) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Identifier. The resource name of the session template. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Identifier. The resource name of the session template. + */ + public java.lang.String getName() { + return name; + } + + /** Required. Identifier. The resource name of the session template. */ + public Patch 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/[^/]+/sessionTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } + } + + } + /** + * An accessor for creating requests from the Sessions collection. + * + *The typical use is:
+ *
+ * {@code Dataproc dataproc = new Dataproc(...);}
+ * {@code Dataproc.Sessions.List request = dataproc.sessions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Sessions sessions() {
+ return new Sessions();
+ }
+
+ /**
+ * The "sessions" collection of methods.
+ */
+ public class Sessions {
+
+ /**
+ * Create an interactive session asynchronously.
+ *
+ * Create a request for the method "sessions.create".
+ *
+ * This request holds the parameters needed by the dataproc 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 session will be created.
+ * @param content the {@link com.google.api.services.dataproc.model.Session}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.dataproc.model.Session content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends DataprocRequest{@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 session will be created. + * @param content the {@link com.google.api.services.dataproc.model.Session} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.dataproc.model.Session content) { + super(Dataproc.this, "POST", REST_PATH, content, com.google.api.services.dataproc.model.Operation.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 where this session will be created. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this session will be created. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource where this session will be created. */ + 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; + } + + /** + * Optional. A unique ID used to identify the request. If the service receives two + * CreateSessionRequests (https://cloud.google.com/dataproc/docs/reference/rpc/google.clou + * d.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the + * second request is ignored, and the first Session is created and stored in the + * backend.Recommendation: Set this value to a UUID + * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain + * only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum + * length is 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. A unique ID used to identify the request. If the service receives two + CreateSessionRequests (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v + 1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the second request is ignored, + and the first Session is created and stored in the backend.Recommendation: Set this value to a UUID + (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters + (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. A unique ID used to identify the request. If the service receives two + * CreateSessionRequests (https://cloud.google.com/dataproc/docs/reference/rpc/google.clou + * d.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the + * second request is ignored, and the first Session is created and stored in the + * backend.Recommendation: Set this value to a UUID + * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain + * only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum + * length is 40 characters. + */ + public Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Required. The ID to use for the session, which becomes the final component of the + * session's resource name.This value must be 4-63 characters. Valid characters are + * /a-z-/. + */ + @com.google.api.client.util.Key + private java.lang.String sessionId; + + /** Required. The ID to use for the session, which becomes the final component of the session's + resource name.This value must be 4-63 characters. Valid characters are /a-z-/. + */ + public java.lang.String getSessionId() { + return sessionId; + } + + /** + * Required. The ID to use for the session, which becomes the final component of the + * session's resource name.This value must be 4-63 characters. Valid characters are + * /a-z-/. + */ + public Create setSessionId(java.lang.String sessionId) { + this.sessionId = sessionId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the interactive session resource. If the session is not in terminal state, it is + * terminated, and then deleted. + * + * Create a request for the method "sessions.delete". + * + * This request holds the parameters needed by the dataproc server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the session resource to delete. + * @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 DataprocRequest{@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 name of the session resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Dataproc.this, "DELETE", REST_PATH, null, com.google.api.services.dataproc.model.Operation.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/[^/]+/sessions/[^/]+$"); + } + } + + @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 name of the session resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the session resource to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the session resource to delete. */ + 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/[^/]+/sessions/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. A unique ID used to identify the request. If the service receives two + * DeleteSessionRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud + * .dataproc.v1#google.cloud.dataproc.v1.DeleteSessionRequest)s with the same ID, the + * second request is ignored.Recommendation: Set this value to a UUID + * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain + * only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum + * length is 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. A unique ID used to identify the request. If the service receives two + DeleteSessionRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1 + #google.cloud.dataproc.v1.DeleteSessionRequest)s with the same ID, the second request is + ignored.Recommendation: Set this value to a UUID + (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters + (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. A unique ID used to identify the request. If the service receives two + * DeleteSessionRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud + * .dataproc.v1#google.cloud.dataproc.v1.DeleteSessionRequest)s with the same ID, the + * second request is ignored.Recommendation: Set this value to a UUID + * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain + * only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum + * length is 40 characters. + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the resource representation for an interactive session. + * + * Create a request for the method "sessions.get". + * + * This request holds the parameters needed by the dataproc server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the session to retrieve. + * @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 DataprocRequest+ * {@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 name of the session to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.Session.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/[^/]+/sessions/[^/]+$"); + } + } + + @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. The name of the session to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the session to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the session to retrieve. */ + 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/[^/]+/sessions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists interactive sessions. + * + * Create a request for the method "sessions.list". + * + * This request holds the parameters needed by the dataproc server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent, which owns this collection of sessions. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends DataprocRequest+ * {@link List#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, which owns this collection of sessions. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.ListSessionsResponse.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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent, which owns this collection of sessions. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent, which owns this collection of sessions. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent, which owns this collection of sessions. */ + public List 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. A filter for the sessions to return in the response.A filter is a logical + * expression constraining the values of various fields in each session resource. Filters + * are case sensitive, and may contain multiple clauses combined with logical operators + * (AND, OR). Supported fields are session_id, session_uuid, state, create_time, and + * labels.Example: state = ACTIVE and create_time < "2023-01-01T00:00:00Z" is a filter for + * sessions in an ACTIVE state that were created before 2023-01-01. state = ACTIVE and + * labels.environment=production is a filter for sessions in an ACTIVE state that have a + * production environment label.See https://google.aip.dev/assets/misc/ebnf-filtering.txt + * for a detailed description of the filter syntax and a list of supported comparators. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. A filter for the sessions to return in the response.A filter is a logical expression + constraining the values of various fields in each session resource. Filters are case sensitive, and + may contain multiple clauses combined with logical operators (AND, OR). Supported fields are + session_id, session_uuid, state, create_time, and labels.Example: state = ACTIVE and create_time < + "2023-01-01T00:00:00Z" is a filter for sessions in an ACTIVE state that were created before + 2023-01-01. state = ACTIVE and labels.environment=production is a filter for sessions in an ACTIVE + state that have a production environment label.See https://google.aip.dev/assets/misc/ebnf- + filtering.txt for a detailed description of the filter syntax and a list of supported comparators. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. A filter for the sessions to return in the response.A filter is a logical + * expression constraining the values of various fields in each session resource. Filters + * are case sensitive, and may contain multiple clauses combined with logical operators + * (AND, OR). Supported fields are session_id, session_uuid, state, create_time, and + * labels.Example: state = ACTIVE and create_time < "2023-01-01T00:00:00Z" is a filter for + * sessions in an ACTIVE state that were created before 2023-01-01. state = ACTIVE and + * labels.environment=production is a filter for sessions in an ACTIVE state that have a + * production environment label.See https://google.aip.dev/assets/misc/ebnf-filtering.txt + * for a detailed description of the filter syntax and a list of supported comparators. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The maximum number of sessions to return in each response. The service may + * return fewer than this value. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of sessions to return in each response. The service may return fewer + than this value. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of sessions to return in each response. The service may + * return fewer than this value. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token received from a previous ListSessions call. Provide this token + * to retrieve the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token received from a previous ListSessions call. Provide this token to retrieve + the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token received from a previous ListSessions call. Provide this token + * to retrieve the subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Terminates the interactive session. + * + * Create a request for the method "sessions.terminate". + * + * This request holds the parameters needed by the dataproc server. After setting any optional + * parameters, call the {@link Terminate#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the session resource to terminate. + * @param content the {@link com.google.api.services.dataproc.model.TerminateSessionRequest} + * @return the request + */ + public Terminate terminate(java.lang.String name, com.google.api.services.dataproc.model.TerminateSessionRequest content) throws java.io.IOException { + Terminate result = new Terminate(name, content); + initialize(result); + return result; + } + + public class Terminate extends DataprocRequest{@link + * Terminate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the session resource to terminate. + * @param content the {@link com.google.api.services.dataproc.model.TerminateSessionRequest} + * @since 1.13 + */ + protected Terminate(java.lang.String name, com.google.api.services.dataproc.model.TerminateSessionRequest content) { + super(Dataproc.this, "POST", REST_PATH, content, com.google.api.services.dataproc.model.Operation.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/[^/]+/sessions/[^/]+$"); + } + } + + @Override + public Terminate set$Xgafv(java.lang.String $Xgafv) { + return (Terminate) super.set$Xgafv($Xgafv); + } + + @Override + public Terminate setAccessToken(java.lang.String accessToken) { + return (Terminate) super.setAccessToken(accessToken); + } + + @Override + public Terminate setAlt(java.lang.String alt) { + return (Terminate) super.setAlt(alt); + } + + @Override + public Terminate setCallback(java.lang.String callback) { + return (Terminate) super.setCallback(callback); + } + + @Override + public Terminate setFields(java.lang.String fields) { + return (Terminate) super.setFields(fields); + } + + @Override + public Terminate setKey(java.lang.String key) { + return (Terminate) super.setKey(key); + } + + @Override + public Terminate setOauthToken(java.lang.String oauthToken) { + return (Terminate) super.setOauthToken(oauthToken); + } + + @Override + public Terminate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Terminate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Terminate setQuotaUser(java.lang.String quotaUser) { + return (Terminate) super.setQuotaUser(quotaUser); + } + + @Override + public Terminate setUploadType(java.lang.String uploadType) { + return (Terminate) super.setUploadType(uploadType); + } + + @Override + public Terminate setUploadProtocol(java.lang.String uploadProtocol) { + return (Terminate) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the session resource to terminate. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the session resource to terminate. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the session resource to terminate. */ + public Terminate 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/[^/]+/sessions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Terminate set(String parameterName, Object value) { + return (Terminate) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the SparkApplications collection. + * + *The typical use is:
+ *
+ * {@code Dataproc dataproc = new Dataproc(...);}
+ * {@code Dataproc.SparkApplications.List request = dataproc.sparkApplications().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public SparkApplications sparkApplications() {
+ return new SparkApplications();
+ }
+
+ /**
+ * The "sparkApplications" collection of methods.
+ */
+ public class SparkApplications {
+
+ /**
+ * Obtain high level information corresponding to a single Spark Application.
+ *
+ * Create a request for the method "sparkApplications.access".
+ *
+ * This request holds the parameters needed by the dataproc server. After setting any optional
+ * parameters, call the {@link Access#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. The fully qualified name of the session to retrieve in the format
+ * "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLI
+ * CATION_ID"
+ * @return the request
+ */
+ public Access access(java.lang.String name) throws java.io.IOException {
+ Access result = new Access(name);
+ initialize(result);
+ return result;
+ }
+
+ public class Access extends DataprocRequest{@link + * Access#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The fully qualified name of the session to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLI + * CATION_ID" + * @since 1.13 + */ + protected Access(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSessionSparkApplicationResponse.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/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$"); + } + } + + @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 Access set$Xgafv(java.lang.String $Xgafv) { + return (Access) super.set$Xgafv($Xgafv); + } + + @Override + public Access setAccessToken(java.lang.String accessToken) { + return (Access) super.setAccessToken(accessToken); + } + + @Override + public Access setAlt(java.lang.String alt) { + return (Access) super.setAlt(alt); + } + + @Override + public Access setCallback(java.lang.String callback) { + return (Access) super.setCallback(callback); + } + + @Override + public Access setFields(java.lang.String fields) { + return (Access) super.setFields(fields); + } + + @Override + public Access setKey(java.lang.String key) { + return (Access) super.setKey(key); + } + + @Override + public Access setOauthToken(java.lang.String oauthToken) { + return (Access) super.setOauthToken(oauthToken); + } + + @Override + public Access setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Access) super.setPrettyPrint(prettyPrint); + } + + @Override + public Access setQuotaUser(java.lang.String quotaUser) { + return (Access) super.setQuotaUser(quotaUser); + } + + @Override + public Access setUploadType(java.lang.String uploadType) { + return (Access) super.setUploadType(uploadType); + } + + @Override + public Access setUploadProtocol(java.lang.String uploadProtocol) { + return (Access) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The fully qualified name of the session to retrieve in the format "projects + * /PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATI + * ON_ID" + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The fully qualified name of the session to retrieve in the format "projects/PROJECT_ID/lo + cations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID" + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The fully qualified name of the session to retrieve in the format "projects + * /PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATI + * ON_ID" + */ + public Access 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/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. Parent (Session) resource reference. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent (Session) resource reference. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Parent (Session) resource reference. */ + public Access setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public Access set(String parameterName, Object value) { + return (Access) super.set(parameterName, value); + } + } + /** + * Obtain environment details for a Spark Application + * + * Create a request for the method "sparkApplications.accessEnvironmentInfo". + * + * This request holds the parameters needed by the dataproc server. After setting any optional + * parameters, call the {@link AccessEnvironmentInfo#execute()} method to invoke the remote + * operation. + * + * @param name Required. The fully qualified name of the session to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLI + * CATION_ID" + * @return the request + */ + public AccessEnvironmentInfo accessEnvironmentInfo(java.lang.String name) throws java.io.IOException { + AccessEnvironmentInfo result = new AccessEnvironmentInfo(name); + initialize(result); + return result; + } + + public class AccessEnvironmentInfo extends DataprocRequest{@link AccessEnvironmentInfo#initialize(com.google.api.client.googleapis. + * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
+ * + * @param name Required. The fully qualified name of the session to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLI + * CATION_ID" + * @since 1.13 + */ + protected AccessEnvironmentInfo(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSessionSparkApplicationEnvironmentInfoResponse.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/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$"); + } + } + + @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 AccessEnvironmentInfo set$Xgafv(java.lang.String $Xgafv) { + return (AccessEnvironmentInfo) super.set$Xgafv($Xgafv); + } + + @Override + public AccessEnvironmentInfo setAccessToken(java.lang.String accessToken) { + return (AccessEnvironmentInfo) super.setAccessToken(accessToken); + } + + @Override + public AccessEnvironmentInfo setAlt(java.lang.String alt) { + return (AccessEnvironmentInfo) super.setAlt(alt); + } + + @Override + public AccessEnvironmentInfo setCallback(java.lang.String callback) { + return (AccessEnvironmentInfo) super.setCallback(callback); + } - @Override - public Terminate setFields(java.lang.String fields) { - return (Terminate) super.setFields(fields); - } + @Override + public AccessEnvironmentInfo setFields(java.lang.String fields) { + return (AccessEnvironmentInfo) super.setFields(fields); + } - @Override - public Terminate setKey(java.lang.String key) { - return (Terminate) super.setKey(key); - } + @Override + public AccessEnvironmentInfo setKey(java.lang.String key) { + return (AccessEnvironmentInfo) super.setKey(key); + } - @Override - public Terminate setOauthToken(java.lang.String oauthToken) { - return (Terminate) super.setOauthToken(oauthToken); - } + @Override + public AccessEnvironmentInfo setOauthToken(java.lang.String oauthToken) { + return (AccessEnvironmentInfo) super.setOauthToken(oauthToken); + } - @Override - public Terminate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Terminate) super.setPrettyPrint(prettyPrint); - } + @Override + public AccessEnvironmentInfo setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AccessEnvironmentInfo) super.setPrettyPrint(prettyPrint); + } - @Override - public Terminate setQuotaUser(java.lang.String quotaUser) { - return (Terminate) super.setQuotaUser(quotaUser); - } + @Override + public AccessEnvironmentInfo setQuotaUser(java.lang.String quotaUser) { + return (AccessEnvironmentInfo) super.setQuotaUser(quotaUser); + } - @Override - public Terminate setUploadType(java.lang.String uploadType) { - return (Terminate) super.setUploadType(uploadType); - } + @Override + public AccessEnvironmentInfo setUploadType(java.lang.String uploadType) { + return (AccessEnvironmentInfo) super.setUploadType(uploadType); + } - @Override - public Terminate setUploadProtocol(java.lang.String uploadProtocol) { - return (Terminate) super.setUploadProtocol(uploadProtocol); - } + @Override + public AccessEnvironmentInfo setUploadProtocol(java.lang.String uploadProtocol) { + return (AccessEnvironmentInfo) super.setUploadProtocol(uploadProtocol); + } - /** Required. The name of the session resource to terminate. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Required. The fully qualified name of the session to retrieve in the format "projects + * /PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATI + * ON_ID" + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Required. The name of the session resource to terminate. - */ - public java.lang.String getName() { - return name; - } + /** Required. The fully qualified name of the session to retrieve in the format "projects/PROJECT_ID/lo + cations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID" + */ + public java.lang.String getName() { + return name; + } - /** Required. The name of the session resource to terminate. */ - public Terminate 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/[^/]+/sessions/[^/]+$"); + /** + * Required. The fully qualified name of the session to retrieve in the format "projects + * /PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATI + * ON_ID" + */ + public AccessEnvironmentInfo 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/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$"); + } + this.name = name; + return this; } - this.name = name; - return this; - } - @Override - public Terminate set(String parameterName, Object value) { - return (Terminate) super.set(parameterName, value); - } - } + /** Required. Parent (Session) resource reference. */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * An accessor for creating requests from the SparkApplications collection. - * - *The typical use is:
- *
- * {@code Dataproc dataproc = new Dataproc(...);}
- * {@code Dataproc.SparkApplications.List request = dataproc.sparkApplications().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public SparkApplications sparkApplications() {
- return new SparkApplications();
- }
+ /** Required. Parent (Session) resource reference.
+ */
+ public java.lang.String getParent() {
+ return parent;
+ }
- /**
- * The "sparkApplications" collection of methods.
- */
- public class SparkApplications {
+ /** Required. Parent (Session) resource reference. */
+ public AccessEnvironmentInfo setParent(java.lang.String parent) {
+ this.parent = parent;
+ return this;
+ }
+ @Override
+ public AccessEnvironmentInfo set(String parameterName, Object value) {
+ return (AccessEnvironmentInfo) super.set(parameterName, value);
+ }
+ }
/**
- * Obtain high level information corresponding to a single Spark Application.
+ * Obtain data corresponding to a spark job for a Spark Application.
*
- * Create a request for the method "sparkApplications.access".
+ * Create a request for the method "sparkApplications.accessJob".
*
* This request holds the parameters needed by the dataproc server. After setting any optional
- * parameters, call the {@link Access#execute()} method to invoke the remote operation.
+ * parameters, call the {@link AccessJob#execute()} method to invoke the remote operation.
*
* @param name Required. The fully qualified name of the session to retrieve in the format
* "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLI
* CATION_ID"
* @return the request
*/
- public Access access(java.lang.String name) throws java.io.IOException {
- Access result = new Access(name);
+ public AccessJob accessJob(java.lang.String name) throws java.io.IOException {
+ AccessJob result = new AccessJob(name);
initialize(result);
return result;
}
- public class Access extends DataprocRequest{@link - * Access#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 AccessJob#execute()} method to invoke the remote + * operation.{@link + * AccessJob#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param name Required. The fully qualified name of the session to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLI * CATION_ID" * @since 1.13 */ - protected Access(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSessionSparkApplicationResponse.class); + protected AccessJob(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSessionSparkApplicationJobResponse.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(), @@ -9040,58 +10151,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Access set$Xgafv(java.lang.String $Xgafv) { - return (Access) super.set$Xgafv($Xgafv); + public AccessJob set$Xgafv(java.lang.String $Xgafv) { + return (AccessJob) super.set$Xgafv($Xgafv); } @Override - public Access setAccessToken(java.lang.String accessToken) { - return (Access) super.setAccessToken(accessToken); + public AccessJob setAccessToken(java.lang.String accessToken) { + return (AccessJob) super.setAccessToken(accessToken); } @Override - public Access setAlt(java.lang.String alt) { - return (Access) super.setAlt(alt); + public AccessJob setAlt(java.lang.String alt) { + return (AccessJob) super.setAlt(alt); } @Override - public Access setCallback(java.lang.String callback) { - return (Access) super.setCallback(callback); + public AccessJob setCallback(java.lang.String callback) { + return (AccessJob) super.setCallback(callback); } @Override - public Access setFields(java.lang.String fields) { - return (Access) super.setFields(fields); + public AccessJob setFields(java.lang.String fields) { + return (AccessJob) super.setFields(fields); } @Override - public Access setKey(java.lang.String key) { - return (Access) super.setKey(key); + public AccessJob setKey(java.lang.String key) { + return (AccessJob) super.setKey(key); } @Override - public Access setOauthToken(java.lang.String oauthToken) { - return (Access) super.setOauthToken(oauthToken); + public AccessJob setOauthToken(java.lang.String oauthToken) { + return (AccessJob) super.setOauthToken(oauthToken); } @Override - public Access setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Access) super.setPrettyPrint(prettyPrint); + public AccessJob setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AccessJob) super.setPrettyPrint(prettyPrint); } @Override - public Access setQuotaUser(java.lang.String quotaUser) { - return (Access) super.setQuotaUser(quotaUser); + public AccessJob setQuotaUser(java.lang.String quotaUser) { + return (AccessJob) super.setQuotaUser(quotaUser); } @Override - public Access setUploadType(java.lang.String uploadType) { - return (Access) super.setUploadType(uploadType); + public AccessJob setUploadType(java.lang.String uploadType) { + return (AccessJob) super.setUploadType(uploadType); } @Override - public Access setUploadProtocol(java.lang.String uploadProtocol) { - return (Access) super.setUploadProtocol(uploadProtocol); + public AccessJob setUploadProtocol(java.lang.String uploadProtocol) { + return (AccessJob) super.setUploadProtocol(uploadProtocol); } /** @@ -9114,7 +10225,7 @@ public java.lang.String getName() { * /PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATI * ON_ID" */ - public Access setName(java.lang.String name) { + public AccessJob 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 " + @@ -9124,6 +10235,22 @@ public Access setName(java.lang.String name) { return this; } + /** Required. Job ID to fetch data for. */ + @com.google.api.client.util.Key + private java.lang.Long jobId; + + /** Required. Job ID to fetch data for. + */ + public java.lang.Long getJobId() { + return jobId; + } + + /** Required. Job ID to fetch data for. */ + public AccessJob setJobId(java.lang.Long jobId) { + this.jobId = jobId; + return this; + } + /** Required. Parent (Session) resource reference. */ @com.google.api.client.util.Key private java.lang.String parent; @@ -9135,23 +10262,23 @@ public java.lang.String getParent() { } /** Required. Parent (Session) resource reference. */ - public Access setParent(java.lang.String parent) { + public AccessJob setParent(java.lang.String parent) { this.parent = parent; return this; } @Override - public Access set(String parameterName, Object value) { - return (Access) super.set(parameterName, value); + public AccessJob set(String parameterName, Object value) { + return (AccessJob) super.set(parameterName, value); } } /** - * Obtain environment details for a Spark Application + * Obtain data corresponding to Native Build Information for a Spark Application. * - * Create a request for the method "sparkApplications.accessEnvironmentInfo". + * Create a request for the method "sparkApplications.accessNativeBuildInfo". * * This request holds the parameters needed by the dataproc server. After setting any optional - * parameters, call the {@link AccessEnvironmentInfo#execute()} method to invoke the remote + * parameters, call the {@link AccessNativeBuildInfo#execute()} method to invoke the remote * operation. * * @param name Required. The fully qualified name of the session to retrieve in the format @@ -9159,27 +10286,27 @@ public Access set(String parameterName, Object value) { * CATION_ID" * @return the request */ - public AccessEnvironmentInfo accessEnvironmentInfo(java.lang.String name) throws java.io.IOException { - AccessEnvironmentInfo result = new AccessEnvironmentInfo(name); + public AccessNativeBuildInfo accessNativeBuildInfo(java.lang.String name) throws java.io.IOException { + AccessNativeBuildInfo result = new AccessNativeBuildInfo(name); initialize(result); return result; } - public class AccessEnvironmentInfo extends DataprocRequest{@link AccessEnvironmentInfo#initialize(com.google.api.client.googleapis. + * optional parameters, call the {@link AccessNativeBuildInfo#execute()} method to invoke the + * remote operation.
{@link AccessNativeBuildInfo#initialize(com.google.api.client.googleapis. * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately * after invoking the constructor.
* @@ -9188,8 +10315,8 @@ public class AccessEnvironmentInfo extends DataprocRequest{@link - * AccessJob#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 AccessNativeSqlQuery#execute()} method to invoke the + * remote operation.{@link AccessNativeSqlQuery#initialize(com.google.api.client.googleapis.s + * ervices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
* * @param name Required. The fully qualified name of the session to retrieve in the format * "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLI * CATION_ID" * @since 1.13 */ - protected AccessJob(java.lang.String name) { - super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSessionSparkApplicationJobResponse.class); + protected AccessNativeSqlQuery(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.AccessSessionSparkApplicationNativeSqlQueryResponse.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(), @@ -9377,58 +10505,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AccessJob set$Xgafv(java.lang.String $Xgafv) { - return (AccessJob) super.set$Xgafv($Xgafv); + public AccessNativeSqlQuery set$Xgafv(java.lang.String $Xgafv) { + return (AccessNativeSqlQuery) super.set$Xgafv($Xgafv); } @Override - public AccessJob setAccessToken(java.lang.String accessToken) { - return (AccessJob) super.setAccessToken(accessToken); + public AccessNativeSqlQuery setAccessToken(java.lang.String accessToken) { + return (AccessNativeSqlQuery) super.setAccessToken(accessToken); } @Override - public AccessJob setAlt(java.lang.String alt) { - return (AccessJob) super.setAlt(alt); + public AccessNativeSqlQuery setAlt(java.lang.String alt) { + return (AccessNativeSqlQuery) super.setAlt(alt); } @Override - public AccessJob setCallback(java.lang.String callback) { - return (AccessJob) super.setCallback(callback); + public AccessNativeSqlQuery setCallback(java.lang.String callback) { + return (AccessNativeSqlQuery) super.setCallback(callback); } @Override - public AccessJob setFields(java.lang.String fields) { - return (AccessJob) super.setFields(fields); + public AccessNativeSqlQuery setFields(java.lang.String fields) { + return (AccessNativeSqlQuery) super.setFields(fields); } @Override - public AccessJob setKey(java.lang.String key) { - return (AccessJob) super.setKey(key); + public AccessNativeSqlQuery setKey(java.lang.String key) { + return (AccessNativeSqlQuery) super.setKey(key); } @Override - public AccessJob setOauthToken(java.lang.String oauthToken) { - return (AccessJob) super.setOauthToken(oauthToken); + public AccessNativeSqlQuery setOauthToken(java.lang.String oauthToken) { + return (AccessNativeSqlQuery) super.setOauthToken(oauthToken); } @Override - public AccessJob setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AccessJob) super.setPrettyPrint(prettyPrint); + public AccessNativeSqlQuery setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AccessNativeSqlQuery) super.setPrettyPrint(prettyPrint); } @Override - public AccessJob setQuotaUser(java.lang.String quotaUser) { - return (AccessJob) super.setQuotaUser(quotaUser); + public AccessNativeSqlQuery setQuotaUser(java.lang.String quotaUser) { + return (AccessNativeSqlQuery) super.setQuotaUser(quotaUser); } @Override - public AccessJob setUploadType(java.lang.String uploadType) { - return (AccessJob) super.setUploadType(uploadType); + public AccessNativeSqlQuery setUploadType(java.lang.String uploadType) { + return (AccessNativeSqlQuery) super.setUploadType(uploadType); } @Override - public AccessJob setUploadProtocol(java.lang.String uploadProtocol) { - return (AccessJob) super.setUploadProtocol(uploadProtocol); + public AccessNativeSqlQuery setUploadProtocol(java.lang.String uploadProtocol) { + return (AccessNativeSqlQuery) super.setUploadProtocol(uploadProtocol); } /** @@ -9451,7 +10579,7 @@ public java.lang.String getName() { * /PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATI * ON_ID" */ - public AccessJob setName(java.lang.String name) { + public AccessNativeSqlQuery 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 " + @@ -9461,19 +10589,19 @@ public AccessJob setName(java.lang.String name) { return this; } - /** Required. Job ID to fetch data for. */ + /** Required. Execution ID */ @com.google.api.client.util.Key - private java.lang.Long jobId; + private java.lang.Long executionId; - /** Required. Job ID to fetch data for. + /** Required. Execution ID */ - public java.lang.Long getJobId() { - return jobId; + public java.lang.Long getExecutionId() { + return executionId; } - /** Required. Job ID to fetch data for. */ - public AccessJob setJobId(java.lang.Long jobId) { - this.jobId = jobId; + /** Required. Execution ID */ + public AccessNativeSqlQuery setExecutionId(java.lang.Long executionId) { + this.executionId = executionId; return this; } @@ -9488,14 +10616,14 @@ public java.lang.String getParent() { } /** Required. Parent (Session) resource reference. */ - public AccessJob setParent(java.lang.String parent) { + public AccessNativeSqlQuery setParent(java.lang.String parent) { this.parent = parent; return this; } @Override - public AccessJob set(String parameterName, Object value) { - return (AccessJob) super.set(parameterName, value); + public AccessNativeSqlQuery set(String parameterName, Object value) { + return (AccessNativeSqlQuery) super.set(parameterName, value); } } /** @@ -11325,6 +12453,223 @@ public SearchJobs set(String parameterName, Object value) { return (SearchJobs) super.set(parameterName, value); } } + /** + * Obtain data corresponding to Native SQL Queries for a Spark Application. + * + * Create a request for the method "sparkApplications.searchNativeSqlQueries". + * + * This request holds the parameters needed by the dataproc server. After setting any optional + * parameters, call the {@link SearchNativeSqlQueries#execute()} method to invoke the remote + * operation. + * + * @param name Required. The fully qualified name of the session to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLI + * CATION_ID" + * @return the request + */ + public SearchNativeSqlQueries searchNativeSqlQueries(java.lang.String name) throws java.io.IOException { + SearchNativeSqlQueries result = new SearchNativeSqlQueries(name); + initialize(result); + return result; + } + + public class SearchNativeSqlQueries extends DataprocRequest{@link SearchNativeSqlQueries#initialize(com.google.api.client.googleapis + * .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
+ * + * @param name Required. The fully qualified name of the session to retrieve in the format + * "projects/PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLI + * CATION_ID" + * @since 1.13 + */ + protected SearchNativeSqlQueries(java.lang.String name) { + super(Dataproc.this, "GET", REST_PATH, null, com.google.api.services.dataproc.model.SearchSessionSparkApplicationNativeSqlQueriesResponse.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/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$"); + } + } + + @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 SearchNativeSqlQueries set$Xgafv(java.lang.String $Xgafv) { + return (SearchNativeSqlQueries) super.set$Xgafv($Xgafv); + } + + @Override + public SearchNativeSqlQueries setAccessToken(java.lang.String accessToken) { + return (SearchNativeSqlQueries) super.setAccessToken(accessToken); + } + + @Override + public SearchNativeSqlQueries setAlt(java.lang.String alt) { + return (SearchNativeSqlQueries) super.setAlt(alt); + } + + @Override + public SearchNativeSqlQueries setCallback(java.lang.String callback) { + return (SearchNativeSqlQueries) super.setCallback(callback); + } + + @Override + public SearchNativeSqlQueries setFields(java.lang.String fields) { + return (SearchNativeSqlQueries) super.setFields(fields); + } + + @Override + public SearchNativeSqlQueries setKey(java.lang.String key) { + return (SearchNativeSqlQueries) super.setKey(key); + } + + @Override + public SearchNativeSqlQueries setOauthToken(java.lang.String oauthToken) { + return (SearchNativeSqlQueries) super.setOauthToken(oauthToken); + } + + @Override + public SearchNativeSqlQueries setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchNativeSqlQueries) super.setPrettyPrint(prettyPrint); + } + + @Override + public SearchNativeSqlQueries setQuotaUser(java.lang.String quotaUser) { + return (SearchNativeSqlQueries) super.setQuotaUser(quotaUser); + } + + @Override + public SearchNativeSqlQueries setUploadType(java.lang.String uploadType) { + return (SearchNativeSqlQueries) super.setUploadType(uploadType); + } + + @Override + public SearchNativeSqlQueries setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchNativeSqlQueries) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The fully qualified name of the session to retrieve in the format "projects + * /PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATI + * ON_ID" + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The fully qualified name of the session to retrieve in the format "projects/PROJECT_ID/lo + cations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATION_ID" + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The fully qualified name of the session to retrieve in the format "projects + * /PROJECT_ID/locations/DATAPROC_REGION/sessions/SESSION_ID/sparkApplications/APPLICATI + * ON_ID" + */ + public SearchNativeSqlQueries 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/[^/]+/sessions/[^/]+/sparkApplications/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Maximum number of queries to return in each response. The service may + * return fewer than this. The default page size is 10; the maximum page size is 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of queries to return in each response. The service may return fewer than + this. The default page size is 10; the maximum page size is 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Maximum number of queries to return in each response. The service may + * return fewer than this. The default page size is 10; the maximum page size is 100. + */ + public SearchNativeSqlQueries setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token received from a previous + * SearchSessionSparkApplicationSqlQueries call. Provide this token to retrieve the + * subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token received from a previous SearchSessionSparkApplicationSqlQueries call. + Provide this token to retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token received from a previous + * SearchSessionSparkApplicationSqlQueries call. Provide this token to retrieve the + * subsequent page. + */ + public SearchNativeSqlQueries setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Required. Parent (Session) resource reference. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent (Session) resource reference. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Parent (Session) resource reference. */ + public SearchNativeSqlQueries setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public SearchNativeSqlQueries set(String parameterName, Object value) { + return (SearchNativeSqlQueries) super.set(parameterName, value); + } + } /** * Obtain data corresponding to SQL Queries for a Spark Application. * diff --git a/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AccessSessionSparkApplicationNativeBuildInfoResponse.java b/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AccessSessionSparkApplicationNativeBuildInfoResponse.java new file mode 100644 index 00000000000..5c72911cc3c --- /dev/null +++ b/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AccessSessionSparkApplicationNativeBuildInfoResponse.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.dataproc.model; + +/** + * Details of a native build info for a Spark Application + * + *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 Dataproc 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 AccessSessionSparkApplicationNativeBuildInfoResponse extends com.google.api.client.json.GenericJson { + + /** + * Native SQL Execution Data + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NativeBuildInfoUiData executionData; + + /** + * Native SQL Execution Data + * @return value or {@code null} for none + */ + public NativeBuildInfoUiData getExecutionData() { + return executionData; + } + + /** + * Native SQL Execution Data + * @param executionData executionData or {@code null} for none + */ + public AccessSessionSparkApplicationNativeBuildInfoResponse setExecutionData(NativeBuildInfoUiData executionData) { + this.executionData = executionData; + return this; + } + + @Override + public AccessSessionSparkApplicationNativeBuildInfoResponse set(String fieldName, Object value) { + return (AccessSessionSparkApplicationNativeBuildInfoResponse) super.set(fieldName, value); + } + + @Override + public AccessSessionSparkApplicationNativeBuildInfoResponse clone() { + return (AccessSessionSparkApplicationNativeBuildInfoResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AccessSessionSparkApplicationNativeSqlQueryResponse.java b/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AccessSessionSparkApplicationNativeSqlQueryResponse.java new file mode 100644 index 00000000000..5ada0cf4a79 --- /dev/null +++ b/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AccessSessionSparkApplicationNativeSqlQueryResponse.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.dataproc.model; + +/** + * Details of a native query for a Spark Application + * + *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 Dataproc 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 AccessSessionSparkApplicationNativeSqlQueryResponse extends com.google.api.client.json.GenericJson { + + /** + * Native SQL Execution Data + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NativeSqlExecutionUiData executionData; + + /** + * Native SQL Execution Data + * @return value or {@code null} for none + */ + public NativeSqlExecutionUiData getExecutionData() { + return executionData; + } + + /** + * Native SQL Execution Data + * @param executionData executionData or {@code null} for none + */ + public AccessSessionSparkApplicationNativeSqlQueryResponse setExecutionData(NativeSqlExecutionUiData executionData) { + this.executionData = executionData; + return this; + } + + @Override + public AccessSessionSparkApplicationNativeSqlQueryResponse set(String fieldName, Object value) { + return (AccessSessionSparkApplicationNativeSqlQueryResponse) super.set(fieldName, value); + } + + @Override + public AccessSessionSparkApplicationNativeSqlQueryResponse clone() { + return (AccessSessionSparkApplicationNativeSqlQueryResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AccessSparkApplicationNativeBuildInfoResponse.java b/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AccessSparkApplicationNativeBuildInfoResponse.java new file mode 100644 index 00000000000..a1044b13fe8 --- /dev/null +++ b/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AccessSparkApplicationNativeBuildInfoResponse.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.dataproc.model; + +/** + * Details of Native Build Info for a Spark Application + * + *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 Dataproc 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 AccessSparkApplicationNativeBuildInfoResponse extends com.google.api.client.json.GenericJson { + + /** + * Native Build Info Data + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NativeBuildInfoUiData buildInfo; + + /** + * Native Build Info Data + * @return value or {@code null} for none + */ + public NativeBuildInfoUiData getBuildInfo() { + return buildInfo; + } + + /** + * Native Build Info Data + * @param buildInfo buildInfo or {@code null} for none + */ + public AccessSparkApplicationNativeBuildInfoResponse setBuildInfo(NativeBuildInfoUiData buildInfo) { + this.buildInfo = buildInfo; + return this; + } + + @Override + public AccessSparkApplicationNativeBuildInfoResponse set(String fieldName, Object value) { + return (AccessSparkApplicationNativeBuildInfoResponse) super.set(fieldName, value); + } + + @Override + public AccessSparkApplicationNativeBuildInfoResponse clone() { + return (AccessSparkApplicationNativeBuildInfoResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AccessSparkApplicationNativeSqlQueryResponse.java b/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AccessSparkApplicationNativeSqlQueryResponse.java new file mode 100644 index 00000000000..76ef5e93f7a --- /dev/null +++ b/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AccessSparkApplicationNativeSqlQueryResponse.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.dataproc.model; + +/** + * Details of a query for a Spark Application + * + *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 Dataproc 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 AccessSparkApplicationNativeSqlQueryResponse extends com.google.api.client.json.GenericJson { + + /** + * Native SQL Execution Data + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NativeSqlExecutionUiData executionData; + + /** + * Native SQL Execution Data + * @return value or {@code null} for none + */ + public NativeSqlExecutionUiData getExecutionData() { + return executionData; + } + + /** + * Native SQL Execution Data + * @param executionData executionData or {@code null} for none + */ + public AccessSparkApplicationNativeSqlQueryResponse setExecutionData(NativeSqlExecutionUiData executionData) { + this.executionData = executionData; + return this; + } + + @Override + public AccessSparkApplicationNativeSqlQueryResponse set(String fieldName, Object value) { + return (AccessSparkApplicationNativeSqlQueryResponse) super.set(fieldName, value); + } + + @Override + public AccessSparkApplicationNativeSqlQueryResponse clone() { + return (AccessSparkApplicationNativeSqlQueryResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AttachmentOperationMetadata.java b/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AttachmentOperationMetadata.java new file mode 100644 index 00000000000..67e1f0ff5f7 --- /dev/null +++ b/clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/AttachmentOperationMetadata.java @@ -0,0 +1,234 @@ +/* + * 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.dataproc.model; + +/** + * Metadata describing the Attachment operation. + * + *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 Dataproc 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 AttachmentOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. Name of the attachment for the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attachment; + + /** + * Output only. Attachment UUID for the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attachmentUuid; + + /** + * Output only. The time when the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. Short description of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. The time when the operation finished. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String doneTime; + + /** + * Output only. Labels associated with the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis 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 Dataproc 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 ComputeTuningConfigResponse extends com.google.api.client.json.GenericJson { + + /** + * Recommended Spark properties for the query (e.g., {"spark.sql.shuffle.partitions": "500"}). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis 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 Dataproc 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 SearchSessionSparkApplicationNativeSqlQueriesResponse extends com.google.api.client.json.GenericJson { + + /** + * This token is included in the response if there are more results to fetch. To fetch additional + * results, provide this value as the page_token in a subsequent + * SearchSessionSparkApplicationSqlQueriesRequest. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. Native SQL Execution Data + * 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 Cloud Dataproc 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 SearchSparkApplicationNativeSqlQueriesResponse extends com.google.api.client.json.GenericJson { + + /** + * This token is included in the response if there are more results to fetch. To fetch additional + * results, provide this value as the page_token in a subsequent + * SearchSparkApplicationNativeSqlQueriesRequest. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. Native SQL Execution Data + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List