com.google.api.services.testing.model.TestSetup 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: 2017-11-07 19:12:12 UTC)
* on 2017-11-15 at 02:35:13 UTC
* Modify at your own risk.
*/
package com.google.api.services.testing.model;
/**
* A description of how to set up the device prior to running the test
*
* 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 Google 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 TestSetup extends com.google.api.client.json.GenericJson {
/**
* The device will be logged in on this account for the duration of the test. Optional
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Account account;
/**
* List of directories on the device to upload to GCS at the end of the test; they must be
* absolute paths under /sdcard or /data/local/tmp. Path names are restricted to characters a-z
* A-Z 0-9 _ - . + and /
*
* Note: The paths /sdcard and /data will be made available and treated as implicit path
* substitutions. E.g. if /sdcard on a particular device does not map to external storage, the
* system will replace it with the external storage path prefix for that device.
*
* Optional
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List directoriesToPull;
/**
* Environment variables to set for the test (only applicable for instrumentation tests).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List environmentVariables;
static {
// hack to force ProGuard to consider EnvironmentVariable 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(EnvironmentVariable.class);
}
/**
* List of files to push to the device before starting the test.
*
* Optional
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List filesToPush;
/**
* The network traffic profile used for running the test. Optional
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String networkProfile;
/**
* The device will be logged in on this account for the duration of the test. Optional
* @return value or {@code null} for none
*/
public Account getAccount() {
return account;
}
/**
* The device will be logged in on this account for the duration of the test. Optional
* @param account account or {@code null} for none
*/
public TestSetup setAccount(Account account) {
this.account = account;
return this;
}
/**
* List of directories on the device to upload to GCS at the end of the test; they must be
* absolute paths under /sdcard or /data/local/tmp. Path names are restricted to characters a-z
* A-Z 0-9 _ - . + and /
*
* Note: The paths /sdcard and /data will be made available and treated as implicit path
* substitutions. E.g. if /sdcard on a particular device does not map to external storage, the
* system will replace it with the external storage path prefix for that device.
*
* Optional
* @return value or {@code null} for none
*/
public java.util.List getDirectoriesToPull() {
return directoriesToPull;
}
/**
* List of directories on the device to upload to GCS at the end of the test; they must be
* absolute paths under /sdcard or /data/local/tmp. Path names are restricted to characters a-z
* A-Z 0-9 _ - . + and /
*
* Note: The paths /sdcard and /data will be made available and treated as implicit path
* substitutions. E.g. if /sdcard on a particular device does not map to external storage, the
* system will replace it with the external storage path prefix for that device.
*
* Optional
* @param directoriesToPull directoriesToPull or {@code null} for none
*/
public TestSetup setDirectoriesToPull(java.util.List directoriesToPull) {
this.directoriesToPull = directoriesToPull;
return this;
}
/**
* Environment variables to set for the test (only applicable for instrumentation tests).
* @return value or {@code null} for none
*/
public java.util.List getEnvironmentVariables() {
return environmentVariables;
}
/**
* Environment variables to set for the test (only applicable for instrumentation tests).
* @param environmentVariables environmentVariables or {@code null} for none
*/
public TestSetup setEnvironmentVariables(java.util.List environmentVariables) {
this.environmentVariables = environmentVariables;
return this;
}
/**
* List of files to push to the device before starting the test.
*
* Optional
* @return value or {@code null} for none
*/
public java.util.List getFilesToPush() {
return filesToPush;
}
/**
* List of files to push to the device before starting the test.
*
* Optional
* @param filesToPush filesToPush or {@code null} for none
*/
public TestSetup setFilesToPush(java.util.List filesToPush) {
this.filesToPush = filesToPush;
return this;
}
/**
* The network traffic profile used for running the test. Optional
* @return value or {@code null} for none
*/
public java.lang.String getNetworkProfile() {
return networkProfile;
}
/**
* The network traffic profile used for running the test. Optional
* @param networkProfile networkProfile or {@code null} for none
*/
public TestSetup setNetworkProfile(java.lang.String networkProfile) {
this.networkProfile = networkProfile;
return this;
}
@Override
public TestSetup set(String fieldName, Object value) {
return (TestSetup) super.set(fieldName, value);
}
@Override
public TestSetup clone() {
return (TestSetup) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy