![JAR search and dependency download from the Maven repository](/logo.png)
com.google.api.services.spectrum.model.PawsVerifyDeviceResponse Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/google/apis-client-generator/
* (build: 2016-05-04 15:59:39 UTC)
* on 2016-05-18 at 06:28:13 UTC
* Modify at your own risk.
*/
package com.google.api.services.spectrum.model;
/**
* The device validation response 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 Google Spectrum Database 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 PawsVerifyDeviceResponse extends com.google.api.client.json.GenericJson {
/**
* A database may include the databaseChange parameter to notify a device of a change to its
* database URI, providing one or more alternate database URIs. The device should use this
* information to update its list of pre-configured databases by (only) replacing its entry for
* the responding database with the list of alternate URIs.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DbUpdateSpec databaseChange;
/**
* A device validities list is required in the device validation response to report whether each
* slave device listed in a previous device validation request is valid. The number of entries
* must match the number of device descriptors listed in the previous device validation request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List deviceValidities;
static {
// hack to force ProGuard to consider DeviceValidity 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(DeviceValidity.class);
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "spectrum#pawsVerifyDeviceResponse".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...).
*
* Required field.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;
/**
* The PAWS version. Must be exactly 1.0.
*
* Required field.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String version;
/**
* A database may include the databaseChange parameter to notify a device of a change to its
* database URI, providing one or more alternate database URIs. The device should use this
* information to update its list of pre-configured databases by (only) replacing its entry for
* the responding database with the list of alternate URIs.
* @return value or {@code null} for none
*/
public DbUpdateSpec getDatabaseChange() {
return databaseChange;
}
/**
* A database may include the databaseChange parameter to notify a device of a change to its
* database URI, providing one or more alternate database URIs. The device should use this
* information to update its list of pre-configured databases by (only) replacing its entry for
* the responding database with the list of alternate URIs.
* @param databaseChange databaseChange or {@code null} for none
*/
public PawsVerifyDeviceResponse setDatabaseChange(DbUpdateSpec databaseChange) {
this.databaseChange = databaseChange;
return this;
}
/**
* A device validities list is required in the device validation response to report whether each
* slave device listed in a previous device validation request is valid. The number of entries
* must match the number of device descriptors listed in the previous device validation request.
* @return value or {@code null} for none
*/
public java.util.List getDeviceValidities() {
return deviceValidities;
}
/**
* A device validities list is required in the device validation response to report whether each
* slave device listed in a previous device validation request is valid. The number of entries
* must match the number of device descriptors listed in the previous device validation request.
* @param deviceValidities deviceValidities or {@code null} for none
*/
public PawsVerifyDeviceResponse setDeviceValidities(java.util.List deviceValidities) {
this.deviceValidities = deviceValidities;
return this;
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "spectrum#pawsVerifyDeviceResponse".
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "spectrum#pawsVerifyDeviceResponse".
* @param kind kind or {@code null} for none
*/
public PawsVerifyDeviceResponse setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...).
*
* Required field.
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}
/**
* The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...).
*
* Required field.
* @param type type or {@code null} for none
*/
public PawsVerifyDeviceResponse setType(java.lang.String type) {
this.type = type;
return this;
}
/**
* The PAWS version. Must be exactly 1.0.
*
* Required field.
* @return value or {@code null} for none
*/
public java.lang.String getVersion() {
return version;
}
/**
* The PAWS version. Must be exactly 1.0.
*
* Required field.
* @param version version or {@code null} for none
*/
public PawsVerifyDeviceResponse setVersion(java.lang.String version) {
this.version = version;
return this;
}
@Override
public PawsVerifyDeviceResponse set(String fieldName, Object value) {
return (PawsVerifyDeviceResponse) super.set(fieldName, value);
}
@Override
public PawsVerifyDeviceResponse clone() {
return (PawsVerifyDeviceResponse) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy