diff --git a/clients/google-api-services-devicerun/v1/2.0.0/README.md b/clients/google-api-services-devicerun/v1/2.0.0/README.md index 1ccf3409d34..225732fa98f 100644 --- a/clients/google-api-services-devicerun/v1/2.0.0/README.md +++ b/clients/google-api-services-devicerun/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-devicerun - v1-rev20261019-2.9.2 + v1-rev20261028-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-devicerun:v1-rev20261019-2.9.2' + implementation 'com.google.apis:google-api-services-devicerun:v1-rev20261028-2.9.2' } ``` diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/DeviceRun.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/DeviceRun.java index 563f3c61339..4e3da551d8c 100644 --- a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/DeviceRun.java +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/DeviceRun.java @@ -133,6 +133,1883 @@ protected void initialize(com.google.api.client.googleapis.services.AbstractGoog super.initialize(httpClientRequest); } + /** + * An accessor for creating requests from the Projects collection. + * + *

The typical use is:

+ *
+   *   {@code DeviceRun devicerun = new DeviceRun(...);}
+   *   {@code DeviceRun.Projects.List request = devicerun.projects().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Projects projects() { + return new Projects(); + } + + /** + * The "projects" collection of methods. + */ + public class Projects { + + /** + * An accessor for creating requests from the Locations collection. + * + *

The typical use is:

+ *
+     *   {@code DeviceRun devicerun = new DeviceRun(...);}
+     *   {@code DeviceRun.Locations.List request = devicerun.locations().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * Gets information about a location. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the devicerun server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Resource name for the location. + * @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 DeviceRunRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Gets information about a location. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the the devicerun server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Resource name for the location. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(DeviceRun.this, "GET", REST_PATH, null, com.google.api.services.devicerun.v1.model.Location.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/[^/]+$"); + } + } + + @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); + } + + /** Resource name for the location. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Resource name for the location. + */ + public java.lang.String getName() { + return name; + } + + /** Resource name for the location. */ + 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/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all projects. + * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method + * lists locations visible to that specific project. This includes public, private, or other + * project-specific locations enabled for the project. For gRPC and client library implementations, + * the resource name is passed as the `name` field. For direct service calls, the resource name is + * incorporated into the request path based on the specific service implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the devicerun server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The resource that owns the locations collection, if applicable. + * @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 DeviceRunRequest { + + private static final String REST_PATH = "v1/{+name}/locations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all + * projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, + * the method lists locations visible to that specific project. This includes public, private, or + * other project-specific locations enabled for the project. For gRPC and client library + * implementations, the resource name is passed as the `name` field. For direct service calls, the + * resource name is incorporated into the request path based on the specific service + * implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the the devicerun server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The resource that owns the locations collection, if applicable. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(DeviceRun.this, "GET", REST_PATH, null, com.google.api.services.devicerun.v1.model.ListLocationsResponse.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/[^/]+$"); + } + } + + @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); + } + + /** The resource that owns the locations collection, if applicable. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The resource that owns the locations collection, if applicable. + */ + public java.lang.String getName() { + return name; + } + + /** The resource that owns the locations collection, if applicable. */ + 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/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + @com.google.api.client.util.Key + private java.util.List extraLocationTypes; + + /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for + internal usage. + */ + public java.util.List getExtraLocationTypes() { + return extraLocationTypes; + } + + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + public List setExtraLocationTypes(java.util.List extraLocationTypes) { + this.extraLocationTypes = extraLocationTypes; + return this; + } + + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like + `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of results to return. If not set, the service selects a default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token received from the `next_page_token` field in the response. Send that page token to + receive the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive 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); + } + } + + /** + * An accessor for creating requests from the Devices collection. + * + *

The typical use is:

+ *
+       *   {@code DeviceRun devicerun = new DeviceRun(...);}
+       *   {@code DeviceRun.Devices.List request = devicerun.devices().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Devices devices() { + return new Devices(); + } + + /** + * The "devices" collection of methods. + */ + public class Devices { + + /** + * Returns information about a specific device. + * + * Create a request for the method "devices.get". + * + * This request holds the parameters needed by the devicerun server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the device. Format: `projects/{project}/locations/global/devices/{device}`. + * @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 DeviceRunRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/devices/[^/]+$"); + + /** + * Returns information about a specific device. + * + * Create a request for the method "devices.get". + * + * This request holds the parameters needed by the the devicerun server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the device. Format: `projects/{project}/locations/global/devices/{device}`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(DeviceRun.this, "GET", REST_PATH, null, com.google.api.services.devicerun.v1.model.CatalogDevice.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/[^/]+/devices/[^/]+$"); + } + } + + @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 device. Format: + * `projects/{project}/locations/global/devices/{device}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the device. Format: `projects/{project}/locations/global/devices/{device}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the device. Format: + * `projects/{project}/locations/global/devices/{device}`. + */ + 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/[^/]+/devices/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all devices. + * + * Create a request for the method "devices.list". + * + * This request holds the parameters needed by the devicerun server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent of the collection of devices. Format: `projects/{project}/locations/global`. + * @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 DeviceRunRequest { + + private static final String REST_PATH = "v1/{+parent}/devices"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists all devices. + * + * Create a request for the method "devices.list". + * + * This request holds the parameters needed by the the devicerun server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@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 of the collection of devices. Format: `projects/{project}/locations/global`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(DeviceRun.this, "GET", REST_PATH, null, com.google.api.services.devicerun.v1.model.CatalogListDevicesResponse.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 of the collection of devices. Format: + * `projects/{project}/locations/global`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent of the collection of devices. Format: `projects/{project}/locations/global`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent of the collection of devices. Format: + * `projects/{project}/locations/global`. + */ + 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. An AIP-160 (https://google.aip.dev/160) filter expression restricting which + * devices are returned. An empty filter returns all devices. Filtering is supported over + * the `Device` fields, including nested fields via dot-path. Enum and string values must + * be double-quoted. Examples: * `platform = "ANDROID"` * `platform = "ANDROID" AND + * os_version = "34"` * `hardware_type = "PHYSICAL" AND form_factor = "PHONE"` * + * `android_details.build_type = "userdebug"` * `availability.capacity = "HIGH"` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. An AIP-160 (https://google.aip.dev/160) filter expression restricting which devices are + returned. An empty filter returns all devices. Filtering is supported over the `Device` fields, + including nested fields via dot-path. Enum and string values must be double-quoted. Examples: * + `platform = "ANDROID"` * `platform = "ANDROID" AND os_version = "34"` * `hardware_type = "PHYSICAL" + AND form_factor = "PHONE"` * `android_details.build_type = "userdebug"` * `availability.capacity = + "HIGH"` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. An AIP-160 (https://google.aip.dev/160) filter expression restricting which + * devices are returned. An empty filter returns all devices. Filtering is supported over + * the `Device` fields, including nested fields via dot-path. Enum and string values must + * be double-quoted. Examples: * `platform = "ANDROID"` * `platform = "ANDROID" AND + * os_version = "34"` * `hardware_type = "PHYSICAL" AND form_factor = "PHONE"` * + * `android_details.build_type = "userdebug"` * `availability.capacity = "HIGH"` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The maximum number of devices to return. The server may return fewer items + * than this value. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of devices to return. The server may return fewer items than this + value. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of devices to return. The server may return fewer items + * than this value. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListDevices` call. Provide this to + * receive the subsequent page. When paginating, all other parameters provided to + * `ListDevices` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListDevices` call. Provide this to receive the + subsequent page. When paginating, all other parameters provided to `ListDevices` must match the + call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListDevices` call. Provide this to + * receive the subsequent page. When paginating, all other parameters provided to + * `ListDevices` must match the call that provided the page token. + */ + 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); + } + } + + } + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+       *   {@code DeviceRun devicerun = new DeviceRun(...);}
+       *   {@code DeviceRun.Operations.List request = devicerun.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 devicerun 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. + * @param content the {@link com.google.api.services.devicerun.v1.model.GoogleLongrunningCancelOperationRequest} + * @return the request + */ + public Cancel cancel(java.lang.String name, com.google.api.services.devicerun.v1.model.GoogleLongrunningCancelOperationRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); + initialize(result); + return result; + } + + public class Cancel extends DeviceRunRequest { + + private static final String REST_PATH = "v1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/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 the devicerun server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

{@link + * Cancel#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 to be cancelled. + * @param content the {@link com.google.api.services.devicerun.v1.model.GoogleLongrunningCancelOperationRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.devicerun.v1.model.GoogleLongrunningCancelOperationRequest content) { + super(DeviceRun.this, "POST", REST_PATH, content, com.google.api.services.devicerun.v1.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/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** 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/[^/]+$"); + } + 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 devicerun 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; + } + + public class Delete extends DeviceRunRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * 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 the devicerun server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#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 to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(DeviceRun.this, "DELETE", REST_PATH, null, com.google.api.services.devicerun.v1.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/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** 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/[^/]+$"); + } + 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 devicerun 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; + } + + public class Get extends DeviceRunRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * 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 the devicerun server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(DeviceRun.this, "GET", REST_PATH, null, com.google.api.services.devicerun.v1.model.GoogleLongrunningOperation.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/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** 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/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) 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 devicerun 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 DeviceRunRequest { + + private static final String REST_PATH = "v1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * 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 the devicerun server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#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's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(DeviceRun.this, "GET", REST_PATH, null, com.google.api.services.devicerun.v1.model.GoogleLongrunningListOperationsResponse.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/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** 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/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** 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 SoftwareVersions collection. + * + *

The typical use is:

+ *
+       *   {@code DeviceRun devicerun = new DeviceRun(...);}
+       *   {@code DeviceRun.SoftwareVersions.List request = devicerun.softwareVersions().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public SoftwareVersions softwareVersions() { + return new SoftwareVersions(); + } + + /** + * The "softwareVersions" collection of methods. + */ + public class SoftwareVersions { + + /** + * Returns information about a specific software version. + * + * Create a request for the method "softwareVersions.get". + * + * This request holds the parameters needed by the devicerun server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the software version. Format: + * `projects/{project}/locations/global/softwareVersions/{software_version}`. + * @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 DeviceRunRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/softwareVersions/[^/]+$"); + + /** + * Returns information about a specific software version. + * + * Create a request for the method "softwareVersions.get". + * + * This request holds the parameters needed by the the devicerun server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the software version. Format: + * `projects/{project}/locations/global/softwareVersions/{software_version}`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(DeviceRun.this, "GET", REST_PATH, null, com.google.api.services.devicerun.v1.model.CatalogSoftwareVersion.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/[^/]+/softwareVersions/[^/]+$"); + } + } + + @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 software version. Format: + * `projects/{project}/locations/global/softwareVersions/{software_version}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the software version. Format: + `projects/{project}/locations/global/softwareVersions/{software_version}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the software version. Format: + * `projects/{project}/locations/global/softwareVersions/{software_version}`. + */ + 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/[^/]+/softwareVersions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all software versions. + * + * Create a request for the method "softwareVersions.list". + * + * This request holds the parameters needed by the devicerun server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent of the collection of software versions. Format: + * `projects/{project}/locations/global`. + * @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 DeviceRunRequest { + + private static final String REST_PATH = "v1/{+parent}/softwareVersions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists all software versions. + * + * Create a request for the method "softwareVersions.list". + * + * This request holds the parameters needed by the the devicerun server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@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 of the collection of software versions. Format: + * `projects/{project}/locations/global`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(DeviceRun.this, "GET", REST_PATH, null, com.google.api.services.devicerun.v1.model.CatalogListSoftwareVersionsResponse.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 of the collection of software versions. Format: + * `projects/{project}/locations/global`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent of the collection of software versions. Format: + `projects/{project}/locations/global`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent of the collection of software versions. Format: + * `projects/{project}/locations/global`. + */ + 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. An AIP-160 (https://google.aip.dev/160) filter expression restricting which + * software versions are returned. An empty filter returns all software versions. + * Filtering is supported over the `SoftwareVersion` fields, including nested fields via + * dot-path. Enum and string values must be double-quoted. Examples: * `software_type = + * "ANDROIDX_TEST_ORCHESTRATOR"` * `software_type = "ANDROIDX_TEST_ORCHESTRATOR" AND + * is_default = true` * `lifecycle.state = "ACTIVE"` * `version = "1.4.1"` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. An AIP-160 (https://google.aip.dev/160) filter expression restricting which software + versions are returned. An empty filter returns all software versions. Filtering is supported over + the `SoftwareVersion` fields, including nested fields via dot-path. Enum and string values must be + double-quoted. Examples: * `software_type = "ANDROIDX_TEST_ORCHESTRATOR"` * `software_type = + "ANDROIDX_TEST_ORCHESTRATOR" AND is_default = true` * `lifecycle.state = "ACTIVE"` * `version = + "1.4.1"` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. An AIP-160 (https://google.aip.dev/160) filter expression restricting which + * software versions are returned. An empty filter returns all software versions. + * Filtering is supported over the `SoftwareVersion` fields, including nested fields via + * dot-path. Enum and string values must be double-quoted. Examples: * `software_type = + * "ANDROIDX_TEST_ORCHESTRATOR"` * `software_type = "ANDROIDX_TEST_ORCHESTRATOR" AND + * is_default = true` * `lifecycle.state = "ACTIVE"` * `version = "1.4.1"` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The maximum number of software versions to return. The server may return + * fewer items than this value. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of software versions to return. The server may return fewer items than + this value. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of software versions to return. The server may return + * fewer items than this value. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListSoftwareVersions` call. Provide + * this to receive the subsequent page. When paginating, all other parameters provided to + * `ListSoftwareVersions` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListSoftwareVersions` call. Provide this to + receive the subsequent page. When paginating, all other parameters provided to + `ListSoftwareVersions` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListSoftwareVersions` call. Provide + * this to receive the subsequent page. When paginating, all other parameters provided to + * `ListSoftwareVersions` must match the call that provided the page token. + */ + 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); + } + } + + } + } + } + /** * Builder for {@link DeviceRun}. * diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/DeviceRunScopes.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/DeviceRunScopes.java new file mode 100644 index 00000000000..6a3881c5b4d --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/DeviceRunScopes.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.devicerun.v1; + +/** + * Available OAuth 2.0 scopes for use with the Device Run API. + * + * @since 1.4 + */ +public class DeviceRunScopes { + + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ + public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + + /** + * Returns an unmodifiable set that contains all scopes declared by this class. + * + * @since 1.16 + */ + public static java.util.Set all() { + java.util.Set set = new java.util.HashSet(); + set.add(CLOUD_PLATFORM); + return java.util.Collections.unmodifiableSet(set); + } + + private DeviceRunScopes() { + } +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogAndroidDeviceDetails.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogAndroidDeviceDetails.java new file mode 100644 index 00000000000..1005dcdaa8e --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogAndroidDeviceDetails.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.devicerun.v1.model; + +/** + * Android-specific device attributes. + * + *

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 Device Run 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 CatalogAndroidDeviceDetails extends com.google.api.client.json.GenericJson { + + /** + * Output only. Mirrors the AOSP `ro.build.type` property, e.g. "user", "userdebug", "eng". Empty + * if unknown. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String buildType; + + /** + * Output only. Lists ABIs supported by the device (android.os.Build.SUPPORTED_ABIS), most + * preferred first, e.g. "arm64-v8a". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List supportedAbis; + + /** + * Output only. Mirrors the AOSP `ro.build.type` property, e.g. "user", "userdebug", "eng". Empty + * if unknown. + * @return value or {@code null} for none + */ + public java.lang.String getBuildType() { + return buildType; + } + + /** + * Output only. Mirrors the AOSP `ro.build.type` property, e.g. "user", "userdebug", "eng". Empty + * if unknown. + * @param buildType buildType or {@code null} for none + */ + public CatalogAndroidDeviceDetails setBuildType(java.lang.String buildType) { + this.buildType = buildType; + return this; + } + + /** + * Output only. Lists ABIs supported by the device (android.os.Build.SUPPORTED_ABIS), most + * preferred first, e.g. "arm64-v8a". + * @return value or {@code null} for none + */ + public java.util.List getSupportedAbis() { + return supportedAbis; + } + + /** + * Output only. Lists ABIs supported by the device (android.os.Build.SUPPORTED_ABIS), most + * preferred first, e.g. "arm64-v8a". + * @param supportedAbis supportedAbis or {@code null} for none + */ + public CatalogAndroidDeviceDetails setSupportedAbis(java.util.List supportedAbis) { + this.supportedAbis = supportedAbis; + return this; + } + + @Override + public CatalogAndroidDeviceDetails set(String fieldName, Object value) { + return (CatalogAndroidDeviceDetails) super.set(fieldName, value); + } + + @Override + public CatalogAndroidDeviceDetails clone() { + return (CatalogAndroidDeviceDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogAndroidxTestOrchestratorDetails.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogAndroidxTestOrchestratorDetails.java new file mode 100644 index 00000000000..5594b0230c1 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogAndroidxTestOrchestratorDetails.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.devicerun.v1.model; + +/** + * AndroidX Test Orchestrator-specific attributes. Reserved for future orchestrator-only fields. + * + *

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 Device Run 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 CatalogAndroidxTestOrchestratorDetails extends com.google.api.client.json.GenericJson { + + @Override + public CatalogAndroidxTestOrchestratorDetails set(String fieldName, Object value) { + return (CatalogAndroidxTestOrchestratorDetails) super.set(fieldName, value); + } + + @Override + public CatalogAndroidxTestOrchestratorDetails clone() { + return (CatalogAndroidxTestOrchestratorDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogAutomationSupport.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogAutomationSupport.java new file mode 100644 index 00000000000..dff94187c45 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogAutomationSupport.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.devicerun.v1.model; + +/** + * Per-product metadata for the Automation (DeviceRun) product. + * + *

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 Device Run 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 CatalogAutomationSupport extends com.google.api.client.json.GenericJson { + + @Override + public CatalogAutomationSupport set(String fieldName, Object value) { + return (CatalogAutomationSupport) super.set(fieldName, value); + } + + @Override + public CatalogAutomationSupport clone() { + return (CatalogAutomationSupport) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogDevice.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogDevice.java new file mode 100644 index 00000000000..f951d9d382a --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogDevice.java @@ -0,0 +1,474 @@ +/* + * 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.devicerun.v1.model; + +/** + * A single routable device configuration in the catalog. + * + *

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 Device Run 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 CatalogDevice extends com.google.api.client.json.GenericJson { + + /** + * Output only. Reasons for access denial. This model is accessible/usable if this list is empty, + * otherwise the model is viewable only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List accessDeniedReasons; + + /** + * Output only. Contains Android-specific attributes (set when platform == ANDROID). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CatalogAndroidDeviceDetails androidDetails; + + /** + * Output only. Reports the current fleet availability for this device configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CatalogDeviceAvailability availability; + + /** + * Output only. Provides a human-readable display name, e.g. "Pixel 5". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Specifies the form factor of the device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String formFactor; + + /** + * Output only. Indicates whether the device is physical or virtual. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hardwareType; + + /** + * Output only. Contains iOS-specific attributes (set when platform == IOS). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CatalogIosDeviceDetails iosDetails; + + /** + * Output only. The lab hosting this device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CatalogLabInfo labInfo; + + /** + * Output only. Additional information. Informational only. May change over the lifecycle of a + * device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Output only. The device lifecycle (maturity stage and removal date). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CatalogLifecycle lifecycle; + + /** + * Output only. Specifies the hardware manufacturer of the device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String manufacturer; + + /** + * Output only. Provides a human-readable model identifier for this device, independent of OS + * version. May be empty. Platform-dependent: * Android physical: hardware codename + * (android.os.Build.DEVICE), e.g. "shiba". * Android virtual: AVD model identifier, e.g. + * "MediumPhone.arm". * iOS: model identifier, e.g. "iphone14pro". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modelCode; + + /** + * Identifier. Identifies the device resource. Format: + * `projects/{project}/locations/{location}/devices/{device}`. The {device} segment is an opaque, + * stable string. Clients must not parse it to derive or assume device-specific details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Specifies the OS version, e.g. "30" (Android API level) or "17.4" (iOS). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osVersion; + + /** + * Output only. Specifies the platform of the device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String platform; + + /** + * Output only. Measurements of the primary device screen. Informational only. Unset for devices + * without a screen (e.g. some wearables). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CatalogScreenMetrics primaryScreen; + + /** + * Output only. Products/Services supported by this device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List supportedProducts; + + /** + * Output only. Reasons for access denial. This model is accessible/usable if this list is empty, + * otherwise the model is viewable only. + * @return value or {@code null} for none + */ + public java.util.List getAccessDeniedReasons() { + return accessDeniedReasons; + } + + /** + * Output only. Reasons for access denial. This model is accessible/usable if this list is empty, + * otherwise the model is viewable only. + * @param accessDeniedReasons accessDeniedReasons or {@code null} for none + */ + public CatalogDevice setAccessDeniedReasons(java.util.List accessDeniedReasons) { + this.accessDeniedReasons = accessDeniedReasons; + return this; + } + + /** + * Output only. Contains Android-specific attributes (set when platform == ANDROID). + * @return value or {@code null} for none + */ + public CatalogAndroidDeviceDetails getAndroidDetails() { + return androidDetails; + } + + /** + * Output only. Contains Android-specific attributes (set when platform == ANDROID). + * @param androidDetails androidDetails or {@code null} for none + */ + public CatalogDevice setAndroidDetails(CatalogAndroidDeviceDetails androidDetails) { + this.androidDetails = androidDetails; + return this; + } + + /** + * Output only. Reports the current fleet availability for this device configuration. + * @return value or {@code null} for none + */ + public CatalogDeviceAvailability getAvailability() { + return availability; + } + + /** + * Output only. Reports the current fleet availability for this device configuration. + * @param availability availability or {@code null} for none + */ + public CatalogDevice setAvailability(CatalogDeviceAvailability availability) { + this.availability = availability; + return this; + } + + /** + * Output only. Provides a human-readable display name, e.g. "Pixel 5". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Provides a human-readable display name, e.g. "Pixel 5". + * @param displayName displayName or {@code null} for none + */ + public CatalogDevice setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Specifies the form factor of the device. + * @return value or {@code null} for none + */ + public java.lang.String getFormFactor() { + return formFactor; + } + + /** + * Output only. Specifies the form factor of the device. + * @param formFactor formFactor or {@code null} for none + */ + public CatalogDevice setFormFactor(java.lang.String formFactor) { + this.formFactor = formFactor; + return this; + } + + /** + * Output only. Indicates whether the device is physical or virtual. + * @return value or {@code null} for none + */ + public java.lang.String getHardwareType() { + return hardwareType; + } + + /** + * Output only. Indicates whether the device is physical or virtual. + * @param hardwareType hardwareType or {@code null} for none + */ + public CatalogDevice setHardwareType(java.lang.String hardwareType) { + this.hardwareType = hardwareType; + return this; + } + + /** + * Output only. Contains iOS-specific attributes (set when platform == IOS). + * @return value or {@code null} for none + */ + public CatalogIosDeviceDetails getIosDetails() { + return iosDetails; + } + + /** + * Output only. Contains iOS-specific attributes (set when platform == IOS). + * @param iosDetails iosDetails or {@code null} for none + */ + public CatalogDevice setIosDetails(CatalogIosDeviceDetails iosDetails) { + this.iosDetails = iosDetails; + return this; + } + + /** + * Output only. The lab hosting this device. + * @return value or {@code null} for none + */ + public CatalogLabInfo getLabInfo() { + return labInfo; + } + + /** + * Output only. The lab hosting this device. + * @param labInfo labInfo or {@code null} for none + */ + public CatalogDevice setLabInfo(CatalogLabInfo labInfo) { + this.labInfo = labInfo; + return this; + } + + /** + * Output only. Additional information. Informational only. May change over the lifecycle of a + * device. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Output only. Additional information. Informational only. May change over the lifecycle of a + * device. + * @param labels labels or {@code null} for none + */ + public CatalogDevice setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Output only. The device lifecycle (maturity stage and removal date). + * @return value or {@code null} for none + */ + public CatalogLifecycle getLifecycle() { + return lifecycle; + } + + /** + * Output only. The device lifecycle (maturity stage and removal date). + * @param lifecycle lifecycle or {@code null} for none + */ + public CatalogDevice setLifecycle(CatalogLifecycle lifecycle) { + this.lifecycle = lifecycle; + return this; + } + + /** + * Output only. Specifies the hardware manufacturer of the device. + * @return value or {@code null} for none + */ + public java.lang.String getManufacturer() { + return manufacturer; + } + + /** + * Output only. Specifies the hardware manufacturer of the device. + * @param manufacturer manufacturer or {@code null} for none + */ + public CatalogDevice setManufacturer(java.lang.String manufacturer) { + this.manufacturer = manufacturer; + return this; + } + + /** + * Output only. Provides a human-readable model identifier for this device, independent of OS + * version. May be empty. Platform-dependent: * Android physical: hardware codename + * (android.os.Build.DEVICE), e.g. "shiba". * Android virtual: AVD model identifier, e.g. + * "MediumPhone.arm". * iOS: model identifier, e.g. "iphone14pro". + * @return value or {@code null} for none + */ + public java.lang.String getModelCode() { + return modelCode; + } + + /** + * Output only. Provides a human-readable model identifier for this device, independent of OS + * version. May be empty. Platform-dependent: * Android physical: hardware codename + * (android.os.Build.DEVICE), e.g. "shiba". * Android virtual: AVD model identifier, e.g. + * "MediumPhone.arm". * iOS: model identifier, e.g. "iphone14pro". + * @param modelCode modelCode or {@code null} for none + */ + public CatalogDevice setModelCode(java.lang.String modelCode) { + this.modelCode = modelCode; + return this; + } + + /** + * Identifier. Identifies the device resource. Format: + * `projects/{project}/locations/{location}/devices/{device}`. The {device} segment is an opaque, + * stable string. Clients must not parse it to derive or assume device-specific details. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Identifies the device resource. Format: + * `projects/{project}/locations/{location}/devices/{device}`. The {device} segment is an opaque, + * stable string. Clients must not parse it to derive or assume device-specific details. + * @param name name or {@code null} for none + */ + public CatalogDevice setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Specifies the OS version, e.g. "30" (Android API level) or "17.4" (iOS). + * @return value or {@code null} for none + */ + public java.lang.String getOsVersion() { + return osVersion; + } + + /** + * Output only. Specifies the OS version, e.g. "30" (Android API level) or "17.4" (iOS). + * @param osVersion osVersion or {@code null} for none + */ + public CatalogDevice setOsVersion(java.lang.String osVersion) { + this.osVersion = osVersion; + return this; + } + + /** + * Output only. Specifies the platform of the device. + * @return value or {@code null} for none + */ + public java.lang.String getPlatform() { + return platform; + } + + /** + * Output only. Specifies the platform of the device. + * @param platform platform or {@code null} for none + */ + public CatalogDevice setPlatform(java.lang.String platform) { + this.platform = platform; + return this; + } + + /** + * Output only. Measurements of the primary device screen. Informational only. Unset for devices + * without a screen (e.g. some wearables). + * @return value or {@code null} for none + */ + public CatalogScreenMetrics getPrimaryScreen() { + return primaryScreen; + } + + /** + * Output only. Measurements of the primary device screen. Informational only. Unset for devices + * without a screen (e.g. some wearables). + * @param primaryScreen primaryScreen or {@code null} for none + */ + public CatalogDevice setPrimaryScreen(CatalogScreenMetrics primaryScreen) { + this.primaryScreen = primaryScreen; + return this; + } + + /** + * Output only. Products/Services supported by this device. + * @return value or {@code null} for none + */ + public java.util.List getSupportedProducts() { + return supportedProducts; + } + + /** + * Output only. Products/Services supported by this device. + * @param supportedProducts supportedProducts or {@code null} for none + */ + public CatalogDevice setSupportedProducts(java.util.List supportedProducts) { + this.supportedProducts = supportedProducts; + return this; + } + + @Override + public CatalogDevice set(String fieldName, Object value) { + return (CatalogDevice) super.set(fieldName, value); + } + + @Override + public CatalogDevice clone() { + return (CatalogDevice) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogDeviceAvailability.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogDeviceAvailability.java new file mode 100644 index 00000000000..c8e782a2a0b --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogDeviceAvailability.java @@ -0,0 +1,99 @@ +/* + * 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.devicerun.v1.model; + +/** + * Fleet availability for a device configuration. + * + *

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 Device Run 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 CatalogDeviceAvailability extends com.google.api.client.json.GenericJson { + + /** + * Output only. Specifies the current availability bucket (idle, immediately allocatable devices) + * for this device configuration. This is a best-effort snapshot, refreshed periodically. It + * fluctuates depending on traffic as other requests allocate devices. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String available; + + /** + * Output only. Specifies the current capacity bucket for this device configuration. Represents + * the total number of online devices (idle or in use). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String capacity; + + /** + * Output only. Specifies the current availability bucket (idle, immediately allocatable devices) + * for this device configuration. This is a best-effort snapshot, refreshed periodically. It + * fluctuates depending on traffic as other requests allocate devices. + * @return value or {@code null} for none + */ + public java.lang.String getAvailable() { + return available; + } + + /** + * Output only. Specifies the current availability bucket (idle, immediately allocatable devices) + * for this device configuration. This is a best-effort snapshot, refreshed periodically. It + * fluctuates depending on traffic as other requests allocate devices. + * @param available available or {@code null} for none + */ + public CatalogDeviceAvailability setAvailable(java.lang.String available) { + this.available = available; + return this; + } + + /** + * Output only. Specifies the current capacity bucket for this device configuration. Represents + * the total number of online devices (idle or in use). + * @return value or {@code null} for none + */ + public java.lang.String getCapacity() { + return capacity; + } + + /** + * Output only. Specifies the current capacity bucket for this device configuration. Represents + * the total number of online devices (idle or in use). + * @param capacity capacity or {@code null} for none + */ + public CatalogDeviceAvailability setCapacity(java.lang.String capacity) { + this.capacity = capacity; + return this; + } + + @Override + public CatalogDeviceAvailability set(String fieldName, Object value) { + return (CatalogDeviceAvailability) super.set(fieldName, value); + } + + @Override + public CatalogDeviceAvailability clone() { + return (CatalogDeviceAvailability) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogDeviceStreamingSupport.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogDeviceStreamingSupport.java new file mode 100644 index 00000000000..fafc82e3dd2 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogDeviceStreamingSupport.java @@ -0,0 +1,72 @@ +/* + * 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.devicerun.v1.model; + +/** + * Per-product metadata for the DeviceStreaming product. + * + *

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 Device Run 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 CatalogDeviceStreamingSupport extends com.google.api.client.json.GenericJson { + + /** + * Output only. Specifies the minimum Android Studio version that supports this device. Optional; + * only set when the device is known to work only at or above a certain Android Studio version. + * Expected format "major.minor.micro.patch", e.g. "5921.22.2211.8881706". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minimumAndroidStudioVersion; + + /** + * Output only. Specifies the minimum Android Studio version that supports this device. Optional; + * only set when the device is known to work only at or above a certain Android Studio version. + * Expected format "major.minor.micro.patch", e.g. "5921.22.2211.8881706". + * @return value or {@code null} for none + */ + public java.lang.String getMinimumAndroidStudioVersion() { + return minimumAndroidStudioVersion; + } + + /** + * Output only. Specifies the minimum Android Studio version that supports this device. Optional; + * only set when the device is known to work only at or above a certain Android Studio version. + * Expected format "major.minor.micro.patch", e.g. "5921.22.2211.8881706". + * @param minimumAndroidStudioVersion minimumAndroidStudioVersion or {@code null} for none + */ + public CatalogDeviceStreamingSupport setMinimumAndroidStudioVersion(java.lang.String minimumAndroidStudioVersion) { + this.minimumAndroidStudioVersion = minimumAndroidStudioVersion; + return this; + } + + @Override + public CatalogDeviceStreamingSupport set(String fieldName, Object value) { + return (CatalogDeviceStreamingSupport) super.set(fieldName, value); + } + + @Override + public CatalogDeviceStreamingSupport clone() { + return (CatalogDeviceStreamingSupport) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogIosDeviceDetails.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogIosDeviceDetails.java new file mode 100644 index 00000000000..a276e88df88 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogIosDeviceDetails.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.devicerun.v1.model; + +/** + * iOS-specific device attributes. Reserved for future iOS-only fields. + * + *

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 Device Run 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 CatalogIosDeviceDetails extends com.google.api.client.json.GenericJson { + + @Override + public CatalogIosDeviceDetails set(String fieldName, Object value) { + return (CatalogIosDeviceDetails) super.set(fieldName, value); + } + + @Override + public CatalogIosDeviceDetails clone() { + return (CatalogIosDeviceDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogLabInfo.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogLabInfo.java new file mode 100644 index 00000000000..7133d795320 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogLabInfo.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.devicerun.v1.model; + +/** + * The lab hosting a device. + * + *

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 Device Run 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 CatalogLabInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. Display name of the lab where the device is hosted. If empty, the device is hosted + * in a Google owned lab. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. The Unicode country/region code (CLDR) of the lab where the device is hosted, e.g. + * "US" for United States, "KR" for South Korea. Empty when the hosting region is not published. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String regionCode; + + /** + * Output only. Display name of the lab where the device is hosted. If empty, the device is hosted + * in a Google owned lab. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Display name of the lab where the device is hosted. If empty, the device is hosted + * in a Google owned lab. + * @param displayName displayName or {@code null} for none + */ + public CatalogLabInfo setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. The Unicode country/region code (CLDR) of the lab where the device is hosted, e.g. + * "US" for United States, "KR" for South Korea. Empty when the hosting region is not published. + * @return value or {@code null} for none + */ + public java.lang.String getRegionCode() { + return regionCode; + } + + /** + * Output only. The Unicode country/region code (CLDR) of the lab where the device is hosted, e.g. + * "US" for United States, "KR" for South Korea. Empty when the hosting region is not published. + * @param regionCode regionCode or {@code null} for none + */ + public CatalogLabInfo setRegionCode(java.lang.String regionCode) { + this.regionCode = regionCode; + return this; + } + + @Override + public CatalogLabInfo set(String fieldName, Object value) { + return (CatalogLabInfo) super.set(fieldName, value); + } + + @Override + public CatalogLabInfo clone() { + return (CatalogLabInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogLifecycle.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogLifecycle.java new file mode 100644 index 00000000000..ea5f8225e48 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogLifecycle.java @@ -0,0 +1,93 @@ +/* + * 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.devicerun.v1.model; + +/** + * Catalog resource lifecycle: maturity state plus key lifecycle dates. + * + *

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 Device Run 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 CatalogLifecycle extends com.google.api.client.json.GenericJson { + + /** + * Output only. Specifies the date the resource is scheduled to be removed from the catalog. Only + * set when `state == DEPRECATED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date removalDate; + + /** + * Output only. Specifies the current maturity state of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. Specifies the date the resource is scheduled to be removed from the catalog. Only + * set when `state == DEPRECATED`. + * @return value or {@code null} for none + */ + public Date getRemovalDate() { + return removalDate; + } + + /** + * Output only. Specifies the date the resource is scheduled to be removed from the catalog. Only + * set when `state == DEPRECATED`. + * @param removalDate removalDate or {@code null} for none + */ + public CatalogLifecycle setRemovalDate(Date removalDate) { + this.removalDate = removalDate; + return this; + } + + /** + * Output only. Specifies the current maturity state of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. Specifies the current maturity state of the resource. + * @param state state or {@code null} for none + */ + public CatalogLifecycle setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public CatalogLifecycle set(String fieldName, Object value) { + return (CatalogLifecycle) super.set(fieldName, value); + } + + @Override + public CatalogLifecycle clone() { + return (CatalogLifecycle) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogListDevicesResponse.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogListDevicesResponse.java new file mode 100644 index 00000000000..55966d902ca --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogListDevicesResponse.java @@ -0,0 +1,99 @@ +/* + * 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.devicerun.v1.model; + +/** + * Response including listed devices. + * + *

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 Device Run 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 CatalogListDevicesResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of devices. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List devices; + + static { + // hack to force ProGuard to consider CatalogDevice 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(CatalogDevice.class); + } + + /** + * Token to receive the next page of devices. This will be absent if the end of the response list + * has been reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of devices. + * @return value or {@code null} for none + */ + public java.util.List getDevices() { + return devices; + } + + /** + * The list of devices. + * @param devices devices or {@code null} for none + */ + public CatalogListDevicesResponse setDevices(java.util.List devices) { + this.devices = devices; + return this; + } + + /** + * Token to receive the next page of devices. This will be absent if the end of the response list + * has been reached. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Token to receive the next page of devices. This will be absent if the end of the response list + * has been reached. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public CatalogListDevicesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public CatalogListDevicesResponse set(String fieldName, Object value) { + return (CatalogListDevicesResponse) super.set(fieldName, value); + } + + @Override + public CatalogListDevicesResponse clone() { + return (CatalogListDevicesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogListSoftwareVersionsResponse.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogListSoftwareVersionsResponse.java new file mode 100644 index 00000000000..b3feba9d795 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogListSoftwareVersionsResponse.java @@ -0,0 +1,93 @@ +/* + * 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.devicerun.v1.model; + +/** + * Response including listed software versions. + * + *

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 Device Run 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 CatalogListSoftwareVersionsResponse extends com.google.api.client.json.GenericJson { + + /** + * Token to receive the next page of software versions. This will be absent if the end of the + * response list has been reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of software versions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List softwareVersions; + + /** + * Token to receive the next page of software versions. This will be absent if the end of the + * response list has been reached. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Token to receive the next page of software versions. This will be absent if the end of the + * response list has been reached. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public CatalogListSoftwareVersionsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The list of software versions. + * @return value or {@code null} for none + */ + public java.util.List getSoftwareVersions() { + return softwareVersions; + } + + /** + * The list of software versions. + * @param softwareVersions softwareVersions or {@code null} for none + */ + public CatalogListSoftwareVersionsResponse setSoftwareVersions(java.util.List softwareVersions) { + this.softwareVersions = softwareVersions; + return this; + } + + @Override + public CatalogListSoftwareVersionsResponse set(String fieldName, Object value) { + return (CatalogListSoftwareVersionsResponse) super.set(fieldName, value); + } + + @Override + public CatalogListSoftwareVersionsResponse clone() { + return (CatalogListSoftwareVersionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogScreenMetrics.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogScreenMetrics.java new file mode 100644 index 00000000000..417ec5624e7 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogScreenMetrics.java @@ -0,0 +1,114 @@ +/* + * 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.devicerun.v1.model; + +/** + * Screen measurements of a device. + * + *

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 Device Run 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 CatalogScreenMetrics extends com.google.api.client.json.GenericJson { + + /** + * Output only. Pixel density in dots per inch (dpi). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer densityDpi; + + /** + * Output only. Height in pixels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer heightPx; + + /** + * Output only. Width in pixels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer widthPx; + + /** + * Output only. Pixel density in dots per inch (dpi). + * @return value or {@code null} for none + */ + public java.lang.Integer getDensityDpi() { + return densityDpi; + } + + /** + * Output only. Pixel density in dots per inch (dpi). + * @param densityDpi densityDpi or {@code null} for none + */ + public CatalogScreenMetrics setDensityDpi(java.lang.Integer densityDpi) { + this.densityDpi = densityDpi; + return this; + } + + /** + * Output only. Height in pixels. + * @return value or {@code null} for none + */ + public java.lang.Integer getHeightPx() { + return heightPx; + } + + /** + * Output only. Height in pixels. + * @param heightPx heightPx or {@code null} for none + */ + public CatalogScreenMetrics setHeightPx(java.lang.Integer heightPx) { + this.heightPx = heightPx; + return this; + } + + /** + * Output only. Width in pixels. + * @return value or {@code null} for none + */ + public java.lang.Integer getWidthPx() { + return widthPx; + } + + /** + * Output only. Width in pixels. + * @param widthPx widthPx or {@code null} for none + */ + public CatalogScreenMetrics setWidthPx(java.lang.Integer widthPx) { + this.widthPx = widthPx; + return this; + } + + @Override + public CatalogScreenMetrics set(String fieldName, Object value) { + return (CatalogScreenMetrics) super.set(fieldName, value); + } + + @Override + public CatalogScreenMetrics clone() { + return (CatalogScreenMetrics) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogSoftwareVersion.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogSoftwareVersion.java new file mode 100644 index 00000000000..838bfdf8034 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogSoftwareVersion.java @@ -0,0 +1,261 @@ +/* + * 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.devicerun.v1.model; + +/** + * A single software version in the catalog. + * + *

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 Device Run 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 CatalogSoftwareVersion extends com.google.api.client.json.GenericJson { + + /** + * Output only. Contains AndroidX Test Orchestrator-specific attributes (set when software_type == + * ANDROIDX_TEST_ORCHESTRATOR). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CatalogAndroidxTestOrchestratorDetails androidxTestOrchestratorDetails; + + /** + * Output only. Provides a human-readable name for this version, e.g. "AndroidX Test Orchestrator + * 1.4.1". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Indicates whether the system uses this version when a request does not select one + * explicitly. Exactly one version per `software_type` is the default, and it may change over + * time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isDefault; + + /** + * Output only. The version lifecycle (maturity stage and removal date). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CatalogLifecycle lifecycle; + + /** + * Identifier. Identifies the software version resource. Format: + * `projects/{project}/locations/{location}/softwareVersions/{software_version}`. The + * {software_version} segment is an opaque, stable string. Clients must not parse it to derive or + * assume the version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Specifies which software this is a version of. Filter on this field to narrow the + * collection to a single kind of software, for example `software_type = + * "ANDROIDX_TEST_ORCHESTRATOR"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String softwareType; + + /** + * Output only. Specifies the version identifier, e.g. "1.4.1". Unique within a `software_type`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String version; + + /** + * Output only. Contains Xcode-specific attributes (set when software_type == XCODE). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CatalogXcodeDetails xcodeDetails; + + /** + * Output only. Contains AndroidX Test Orchestrator-specific attributes (set when software_type == + * ANDROIDX_TEST_ORCHESTRATOR). + * @return value or {@code null} for none + */ + public CatalogAndroidxTestOrchestratorDetails getAndroidxTestOrchestratorDetails() { + return androidxTestOrchestratorDetails; + } + + /** + * Output only. Contains AndroidX Test Orchestrator-specific attributes (set when software_type == + * ANDROIDX_TEST_ORCHESTRATOR). + * @param androidxTestOrchestratorDetails androidxTestOrchestratorDetails or {@code null} for none + */ + public CatalogSoftwareVersion setAndroidxTestOrchestratorDetails(CatalogAndroidxTestOrchestratorDetails androidxTestOrchestratorDetails) { + this.androidxTestOrchestratorDetails = androidxTestOrchestratorDetails; + return this; + } + + /** + * Output only. Provides a human-readable name for this version, e.g. "AndroidX Test Orchestrator + * 1.4.1". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Provides a human-readable name for this version, e.g. "AndroidX Test Orchestrator + * 1.4.1". + * @param displayName displayName or {@code null} for none + */ + public CatalogSoftwareVersion setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Indicates whether the system uses this version when a request does not select one + * explicitly. Exactly one version per `software_type` is the default, and it may change over + * time. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsDefault() { + return isDefault; + } + + /** + * Output only. Indicates whether the system uses this version when a request does not select one + * explicitly. Exactly one version per `software_type` is the default, and it may change over + * time. + * @param isDefault isDefault or {@code null} for none + */ + public CatalogSoftwareVersion setIsDefault(java.lang.Boolean isDefault) { + this.isDefault = isDefault; + return this; + } + + /** + * Output only. The version lifecycle (maturity stage and removal date). + * @return value or {@code null} for none + */ + public CatalogLifecycle getLifecycle() { + return lifecycle; + } + + /** + * Output only. The version lifecycle (maturity stage and removal date). + * @param lifecycle lifecycle or {@code null} for none + */ + public CatalogSoftwareVersion setLifecycle(CatalogLifecycle lifecycle) { + this.lifecycle = lifecycle; + return this; + } + + /** + * Identifier. Identifies the software version resource. Format: + * `projects/{project}/locations/{location}/softwareVersions/{software_version}`. The + * {software_version} segment is an opaque, stable string. Clients must not parse it to derive or + * assume the version. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Identifies the software version resource. Format: + * `projects/{project}/locations/{location}/softwareVersions/{software_version}`. The + * {software_version} segment is an opaque, stable string. Clients must not parse it to derive or + * assume the version. + * @param name name or {@code null} for none + */ + public CatalogSoftwareVersion setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Specifies which software this is a version of. Filter on this field to narrow the + * collection to a single kind of software, for example `software_type = + * "ANDROIDX_TEST_ORCHESTRATOR"`. + * @return value or {@code null} for none + */ + public java.lang.String getSoftwareType() { + return softwareType; + } + + /** + * Output only. Specifies which software this is a version of. Filter on this field to narrow the + * collection to a single kind of software, for example `software_type = + * "ANDROIDX_TEST_ORCHESTRATOR"`. + * @param softwareType softwareType or {@code null} for none + */ + public CatalogSoftwareVersion setSoftwareType(java.lang.String softwareType) { + this.softwareType = softwareType; + return this; + } + + /** + * Output only. Specifies the version identifier, e.g. "1.4.1". Unique within a `software_type`. + * @return value or {@code null} for none + */ + public java.lang.String getVersion() { + return version; + } + + /** + * Output only. Specifies the version identifier, e.g. "1.4.1". Unique within a `software_type`. + * @param version version or {@code null} for none + */ + public CatalogSoftwareVersion setVersion(java.lang.String version) { + this.version = version; + return this; + } + + /** + * Output only. Contains Xcode-specific attributes (set when software_type == XCODE). + * @return value or {@code null} for none + */ + public CatalogXcodeDetails getXcodeDetails() { + return xcodeDetails; + } + + /** + * Output only. Contains Xcode-specific attributes (set when software_type == XCODE). + * @param xcodeDetails xcodeDetails or {@code null} for none + */ + public CatalogSoftwareVersion setXcodeDetails(CatalogXcodeDetails xcodeDetails) { + this.xcodeDetails = xcodeDetails; + return this; + } + + @Override + public CatalogSoftwareVersion set(String fieldName, Object value) { + return (CatalogSoftwareVersion) super.set(fieldName, value); + } + + @Override + public CatalogSoftwareVersion clone() { + return (CatalogSoftwareVersion) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogSupportedProduct.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogSupportedProduct.java new file mode 100644 index 00000000000..290194d38f2 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogSupportedProduct.java @@ -0,0 +1,92 @@ +/* + * 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.devicerun.v1.model; + +/** + * Declares that a device supports a given Device Cloud product, with optional per-product metadata. + * Discriminated by which product-specific message is set; adding a new product = new oneof arm + + * new per-product message. + * + *

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 Device Run 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 CatalogSupportedProduct extends com.google.api.client.json.GenericJson { + + /** + * Output only. Represents Automation, which is DeviceRun-backed automated test execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CatalogAutomationSupport automation; + + /** + * Output only. Represents DeviceStreaming, which is interactive remote device streaming. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CatalogDeviceStreamingSupport deviceStreaming; + + /** + * Output only. Represents Automation, which is DeviceRun-backed automated test execution. + * @return value or {@code null} for none + */ + public CatalogAutomationSupport getAutomation() { + return automation; + } + + /** + * Output only. Represents Automation, which is DeviceRun-backed automated test execution. + * @param automation automation or {@code null} for none + */ + public CatalogSupportedProduct setAutomation(CatalogAutomationSupport automation) { + this.automation = automation; + return this; + } + + /** + * Output only. Represents DeviceStreaming, which is interactive remote device streaming. + * @return value or {@code null} for none + */ + public CatalogDeviceStreamingSupport getDeviceStreaming() { + return deviceStreaming; + } + + /** + * Output only. Represents DeviceStreaming, which is interactive remote device streaming. + * @param deviceStreaming deviceStreaming or {@code null} for none + */ + public CatalogSupportedProduct setDeviceStreaming(CatalogDeviceStreamingSupport deviceStreaming) { + this.deviceStreaming = deviceStreaming; + return this; + } + + @Override + public CatalogSupportedProduct set(String fieldName, Object value) { + return (CatalogSupportedProduct) super.set(fieldName, value); + } + + @Override + public CatalogSupportedProduct clone() { + return (CatalogSupportedProduct) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogXcodeDetails.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogXcodeDetails.java new file mode 100644 index 00000000000..3c2b5fbb629 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/CatalogXcodeDetails.java @@ -0,0 +1,72 @@ +/* + * 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.devicerun.v1.model; + +/** + * Xcode-specific attributes. + * + *

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 Device Run 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 CatalogXcodeDetails extends com.google.api.client.json.GenericJson { + + /** + * Output only. Lists the iOS versions this Xcode can run tests against, e.g. "16.6". This is a + * property of the toolchain, so it says nothing about whether a device on that iOS version is + * available; list the `Device` collection to find out. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List supportedIosVersions; + + /** + * Output only. Lists the iOS versions this Xcode can run tests against, e.g. "16.6". This is a + * property of the toolchain, so it says nothing about whether a device on that iOS version is + * available; list the `Device` collection to find out. + * @return value or {@code null} for none + */ + public java.util.List getSupportedIosVersions() { + return supportedIosVersions; + } + + /** + * Output only. Lists the iOS versions this Xcode can run tests against, e.g. "16.6". This is a + * property of the toolchain, so it says nothing about whether a device on that iOS version is + * available; list the `Device` collection to find out. + * @param supportedIosVersions supportedIosVersions or {@code null} for none + */ + public CatalogXcodeDetails setSupportedIosVersions(java.util.List supportedIosVersions) { + this.supportedIosVersions = supportedIosVersions; + return this; + } + + @Override + public CatalogXcodeDetails set(String fieldName, Object value) { + return (CatalogXcodeDetails) super.set(fieldName, value); + } + + @Override + public CatalogXcodeDetails clone() { + return (CatalogXcodeDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/Date.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/Date.java new file mode 100644 index 00000000000..bb8c91ef362 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/Date.java @@ -0,0 +1,123 @@ +/* + * 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.devicerun.v1.model; + +/** + * Represents a whole or partial calendar date, such as a birthday. The time of day and time zone + * are either specified elsewhere or are insignificant. The date is relative to the Gregorian + * Calendar. This can represent one of the following: * A full date, with non-zero year, month, and + * day values. * A month and day, with a zero year (for example, an anniversary). * A year on its + * own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit + * card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * + * google.protobuf.Timestamp + * + *

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 Device Run 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 Date extends com.google.api.client.json.GenericJson { + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer day; + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer month; + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer year; + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @return value or {@code null} for none + */ + public java.lang.Integer getDay() { + return day; + } + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @param day day or {@code null} for none + */ + public Date setDay(java.lang.Integer day) { + this.day = day; + return this; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @return value or {@code null} for none + */ + public java.lang.Integer getMonth() { + return month; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @param month month or {@code null} for none + */ + public Date setMonth(java.lang.Integer month) { + this.month = month; + return this; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @return value or {@code null} for none + */ + public java.lang.Integer getYear() { + return year; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @param year year or {@code null} for none + */ + public Date setYear(java.lang.Integer year) { + this.year = year; + return this; + } + + @Override + public Date set(String fieldName, Object value) { + return (Date) super.set(fieldName, value); + } + + @Override + public Date clone() { + return (Date) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/Empty.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/Empty.java new file mode 100644 index 00000000000..6f7d412fa93 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/Empty.java @@ -0,0 +1,44 @@ +/* + * 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.devicerun.v1.model; + +/** + * A generic empty message that you can re-use to avoid defining duplicated empty messages in your + * APIs. A typical example is to use it as the request or the response type of an API method. For + * instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Device Run 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 Empty extends com.google.api.client.json.GenericJson { + + @Override + public Empty set(String fieldName, Object value) { + return (Empty) super.set(fieldName, value); + } + + @Override + public Empty clone() { + return (Empty) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/GoogleLongrunningCancelOperationRequest.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/GoogleLongrunningCancelOperationRequest.java new file mode 100644 index 00000000000..0279ec1d9a2 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/GoogleLongrunningCancelOperationRequest.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.devicerun.v1.model; + +/** + * The request message for Operations.CancelOperation. + * + *

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 Device Run 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 GoogleLongrunningCancelOperationRequest extends com.google.api.client.json.GenericJson { + + @Override + public GoogleLongrunningCancelOperationRequest set(String fieldName, Object value) { + return (GoogleLongrunningCancelOperationRequest) super.set(fieldName, value); + } + + @Override + public GoogleLongrunningCancelOperationRequest clone() { + return (GoogleLongrunningCancelOperationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/GoogleLongrunningListOperationsResponse.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/GoogleLongrunningListOperationsResponse.java new file mode 100644 index 00000000000..3c8b1f35c08 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/GoogleLongrunningListOperationsResponse.java @@ -0,0 +1,120 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.devicerun.v1.model; + +/** + * The response message for Operations.ListOperations. + * + *

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 Device Run 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 GoogleLongrunningListOperationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of operations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List operations; + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleLongrunningListOperationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * A list of operations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getOperations() { + return operations; + } + + /** + * A list of operations that matches the specified filter in the request. + * @param operations operations or {@code null} for none + */ + public GoogleLongrunningListOperationsResponse setOperations(java.util.List operations) { + this.operations = operations; + return this; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @param unreachable unreachable or {@code null} for none + */ + public GoogleLongrunningListOperationsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public GoogleLongrunningListOperationsResponse set(String fieldName, Object value) { + return (GoogleLongrunningListOperationsResponse) super.set(fieldName, value); + } + + @Override + public GoogleLongrunningListOperationsResponse clone() { + return (GoogleLongrunningListOperationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/GoogleLongrunningOperation.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/GoogleLongrunningOperation.java new file mode 100644 index 00000000000..6f6e40d705a --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/GoogleLongrunningOperation.java @@ -0,0 +1,195 @@ +/* + * 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.devicerun.v1.model; + +/** + * This resource represents a long-running operation that is the result of a network API call. + * + *

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 Device Run 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 GoogleLongrunningOperation extends com.google.api.client.json.GenericJson { + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean done; + + /** + * The error result of the operation in case of failure or cancellation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleRpcStatus error; + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map response; + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDone() { + return done; + } + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @param done done or {@code null} for none + */ + public GoogleLongrunningOperation setDone(java.lang.Boolean done) { + this.done = done; + return this; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @return value or {@code null} for none + */ + public GoogleRpcStatus getError() { + return error; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @param error error or {@code null} for none + */ + public GoogleLongrunningOperation setError(GoogleRpcStatus error) { + this.error = error; + return this; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @param metadata metadata or {@code null} for none + */ + public GoogleLongrunningOperation setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @param name name or {@code null} for none + */ + public GoogleLongrunningOperation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @return value or {@code null} for none + */ + public java.util.Map getResponse() { + return response; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @param response response or {@code null} for none + */ + public GoogleLongrunningOperation setResponse(java.util.Map response) { + this.response = response; + return this; + } + + @Override + public GoogleLongrunningOperation set(String fieldName, Object value) { + return (GoogleLongrunningOperation) super.set(fieldName, value); + } + + @Override + public GoogleLongrunningOperation clone() { + return (GoogleLongrunningOperation) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/GoogleRpcStatus.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/GoogleRpcStatus.java new file mode 100644 index 00000000000..1b90cc0de3d --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/GoogleRpcStatus.java @@ -0,0 +1,127 @@ +/* + * 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.devicerun.v1.model; + +/** + * The `Status` type defines a logical error model that is suitable for different programming + * environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). + * Each `Status` message contains three pieces of data: error code, error message, and error + * details. You can find out more about this error model and how to work with it in the [API Design + * Guide](https://cloud.google.com/apis/design/errors). + * + *

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 Device Run 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 GoogleRpcStatus extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List> details; + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @return value or {@code null} for none + */ + public java.lang.Integer getCode() { + return code; + } + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @param code code or {@code null} for none + */ + public GoogleRpcStatus setCode(java.lang.Integer code) { + this.code = code; + return this; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @return value or {@code null} for none + */ + public java.util.List> getDetails() { + return details; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @param details details or {@code null} for none + */ + public GoogleRpcStatus setDetails(java.util.List> details) { + this.details = details; + return this; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @param message message or {@code null} for none + */ + public GoogleRpcStatus setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public GoogleRpcStatus set(String fieldName, Object value) { + return (GoogleRpcStatus) super.set(fieldName, value); + } + + @Override + public GoogleRpcStatus clone() { + return (GoogleRpcStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/ListLocationsResponse.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/ListLocationsResponse.java new file mode 100644 index 00000000000..68897b925a4 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/ListLocationsResponse.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.devicerun.v1.model; + +/** + * The response message for Locations.ListLocations. + * + *

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 Device Run 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 ListLocationsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of locations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List locations; + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of locations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getLocations() { + return locations; + } + + /** + * A list of locations that matches the specified filter in the request. + * @param locations locations or {@code null} for none + */ + public ListLocationsResponse setLocations(java.util.List locations) { + this.locations = locations; + return this; + } + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListLocationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListLocationsResponse set(String fieldName, Object value) { + return (ListLocationsResponse) super.set(fieldName, value); + } + + @Override + public ListLocationsResponse clone() { + return (ListLocationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/Location.java b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/Location.java new file mode 100644 index 00000000000..4c2ffa966e8 --- /dev/null +++ b/clients/google-api-services-devicerun/v1/2.0.0/com/google/api/services/devicerun/v1/model/Location.java @@ -0,0 +1,168 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.devicerun.v1.model; + +/** + * A resource that represents a Google Cloud location. + * + *

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 Device Run 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 Location extends com.google.api.client.json.GenericJson { + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The canonical id for this location. For example: `"us-east1"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationId; + + /** + * Service-specific metadata. For example the available capacity at the given location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @param displayName displayName or {@code null} for none + */ + public Location setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @param labels labels or {@code null} for none + */ + public Location setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @return value or {@code null} for none + */ + public java.lang.String getLocationId() { + return locationId; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @param locationId locationId or {@code null} for none + */ + public Location setLocationId(java.lang.String locationId) { + this.locationId = locationId; + return this; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @param metadata metadata or {@code null} for none + */ + public Location setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @param name name or {@code null} for none + */ + public Location setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public Location set(String fieldName, Object value) { + return (Location) super.set(fieldName, value); + } + + @Override + public Location clone() { + return (Location) super.clone(); + } + +} diff --git a/clients/google-api-services-devicerun/v1/2.0.0/pom.xml b/clients/google-api-services-devicerun/v1/2.0.0/pom.xml index 095abae9213..8f420de3320 100644 --- a/clients/google-api-services-devicerun/v1/2.0.0/pom.xml +++ b/clients/google-api-services-devicerun/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-devicerun - v1-rev20261019-2.9.2 - Device Run API v1-rev20261019-2.9.2 + v1-rev20261028-2.9.2 + Device Run API v1-rev20261028-2.9.2 jar 2011 diff --git a/clients/google-api-services-devicerun/v1/README.md b/clients/google-api-services-devicerun/v1/README.md index 1ccf3409d34..225732fa98f 100644 --- a/clients/google-api-services-devicerun/v1/README.md +++ b/clients/google-api-services-devicerun/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-devicerun - v1-rev20261019-2.9.2 + v1-rev20261028-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-devicerun:v1-rev20261019-2.9.2' + implementation 'com.google.apis:google-api-services-devicerun:v1-rev20261028-2.9.2' } ```