
com.google.api.services.testing.model.TestMatrix Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* 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/google/apis-client-generator/
* (build: 2018-10-08 17:45:39 UTC)
* on 2019-04-09 at 00:25:22 UTC
* Modify at your own risk.
*/
package com.google.api.services.testing.model;
/**
* A group of one or more TestExecutions, built by taking a product of values over a pre-defined set
* of axes.
*
* 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 Testing 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 TestMatrix extends com.google.api.client.json.GenericJson {
/**
* Information about the client which invoked the test.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ClientInfo clientInfo;
/**
* Required. How the host machine(s) are configured.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private EnvironmentMatrix environmentMatrix;
/**
* The number of times a TestExecution should be re-attempted if one or more of its test cases
* fail for any reason. The maximum number of reruns allowed is 10.
*
* Default is 0, which implies no reruns.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer flakyTestAttempts;
/**
* Output only. Describes why the matrix is considered invalid. Only useful for matrices in the
* INVALID state.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String invalidMatrixDetails;
/**
* The cloud project that owns the test matrix.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String projectId;
/**
* Required. Where the results for the matrix are written.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ResultStorage resultStorage;
/**
* Output only. Indicates the current progress of the test matrix (e.g., FINISHED).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String state;
/**
* Output only. The list of test executions that the service creates for this matrix.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List testExecutions;
static {
// hack to force ProGuard to consider TestExecution used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(TestExecution.class);
}
/**
* Output only. Unique id set by the service.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String testMatrixId;
/**
* Required. How to run the test.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TestSpecification testSpecification;
/**
* Output only. The time this test matrix was initially created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String timestamp;
/**
* Information about the client which invoked the test.
* @return value or {@code null} for none
*/
public ClientInfo getClientInfo() {
return clientInfo;
}
/**
* Information about the client which invoked the test.
* @param clientInfo clientInfo or {@code null} for none
*/
public TestMatrix setClientInfo(ClientInfo clientInfo) {
this.clientInfo = clientInfo;
return this;
}
/**
* Required. How the host machine(s) are configured.
* @return value or {@code null} for none
*/
public EnvironmentMatrix getEnvironmentMatrix() {
return environmentMatrix;
}
/**
* Required. How the host machine(s) are configured.
* @param environmentMatrix environmentMatrix or {@code null} for none
*/
public TestMatrix setEnvironmentMatrix(EnvironmentMatrix environmentMatrix) {
this.environmentMatrix = environmentMatrix;
return this;
}
/**
* The number of times a TestExecution should be re-attempted if one or more of its test cases
* fail for any reason. The maximum number of reruns allowed is 10.
*
* Default is 0, which implies no reruns.
* @return value or {@code null} for none
*/
public java.lang.Integer getFlakyTestAttempts() {
return flakyTestAttempts;
}
/**
* The number of times a TestExecution should be re-attempted if one or more of its test cases
* fail for any reason. The maximum number of reruns allowed is 10.
*
* Default is 0, which implies no reruns.
* @param flakyTestAttempts flakyTestAttempts or {@code null} for none
*/
public TestMatrix setFlakyTestAttempts(java.lang.Integer flakyTestAttempts) {
this.flakyTestAttempts = flakyTestAttempts;
return this;
}
/**
* Output only. Describes why the matrix is considered invalid. Only useful for matrices in the
* INVALID state.
* @return value or {@code null} for none
*/
public java.lang.String getInvalidMatrixDetails() {
return invalidMatrixDetails;
}
/**
* Output only. Describes why the matrix is considered invalid. Only useful for matrices in the
* INVALID state.
* @param invalidMatrixDetails invalidMatrixDetails or {@code null} for none
*/
public TestMatrix setInvalidMatrixDetails(java.lang.String invalidMatrixDetails) {
this.invalidMatrixDetails = invalidMatrixDetails;
return this;
}
/**
* The cloud project that owns the test matrix.
* @return value or {@code null} for none
*/
public java.lang.String getProjectId() {
return projectId;
}
/**
* The cloud project that owns the test matrix.
* @param projectId projectId or {@code null} for none
*/
public TestMatrix setProjectId(java.lang.String projectId) {
this.projectId = projectId;
return this;
}
/**
* Required. Where the results for the matrix are written.
* @return value or {@code null} for none
*/
public ResultStorage getResultStorage() {
return resultStorage;
}
/**
* Required. Where the results for the matrix are written.
* @param resultStorage resultStorage or {@code null} for none
*/
public TestMatrix setResultStorage(ResultStorage resultStorage) {
this.resultStorage = resultStorage;
return this;
}
/**
* Output only. Indicates the current progress of the test matrix (e.g., FINISHED).
* @return value or {@code null} for none
*/
public java.lang.String getState() {
return state;
}
/**
* Output only. Indicates the current progress of the test matrix (e.g., FINISHED).
* @param state state or {@code null} for none
*/
public TestMatrix setState(java.lang.String state) {
this.state = state;
return this;
}
/**
* Output only. The list of test executions that the service creates for this matrix.
* @return value or {@code null} for none
*/
public java.util.List getTestExecutions() {
return testExecutions;
}
/**
* Output only. The list of test executions that the service creates for this matrix.
* @param testExecutions testExecutions or {@code null} for none
*/
public TestMatrix setTestExecutions(java.util.List testExecutions) {
this.testExecutions = testExecutions;
return this;
}
/**
* Output only. Unique id set by the service.
* @return value or {@code null} for none
*/
public java.lang.String getTestMatrixId() {
return testMatrixId;
}
/**
* Output only. Unique id set by the service.
* @param testMatrixId testMatrixId or {@code null} for none
*/
public TestMatrix setTestMatrixId(java.lang.String testMatrixId) {
this.testMatrixId = testMatrixId;
return this;
}
/**
* Required. How to run the test.
* @return value or {@code null} for none
*/
public TestSpecification getTestSpecification() {
return testSpecification;
}
/**
* Required. How to run the test.
* @param testSpecification testSpecification or {@code null} for none
*/
public TestMatrix setTestSpecification(TestSpecification testSpecification) {
this.testSpecification = testSpecification;
return this;
}
/**
* Output only. The time this test matrix was initially created.
* @return value or {@code null} for none
*/
public String getTimestamp() {
return timestamp;
}
/**
* Output only. The time this test matrix was initially created.
* @param timestamp timestamp or {@code null} for none
*/
public TestMatrix setTimestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
@Override
public TestMatrix set(String fieldName, Object value) {
return (TestMatrix) super.set(fieldName, value);
}
@Override
public TestMatrix clone() {
return (TestMatrix) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy