{@link + * Validate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param content the {@link com.google.api.services.walletobjects.model.JwtValidateRequest} + * @since 1.13 + */ + protected Validate(com.google.api.services.walletobjects.model.JwtValidateRequest content) { + super(Walletobjects.this, "POST", REST_PATH, content, com.google.api.services.walletobjects.model.JwtValidateResponse.class); + } + + @Override + public Validate set$Xgafv(java.lang.String $Xgafv) { + return (Validate) super.set$Xgafv($Xgafv); + } + + @Override + public Validate setAccessToken(java.lang.String accessToken) { + return (Validate) super.setAccessToken(accessToken); + } + + @Override + public Validate setAlt(java.lang.String alt) { + return (Validate) super.setAlt(alt); + } + + @Override + public Validate setCallback(java.lang.String callback) { + return (Validate) super.setCallback(callback); + } + + @Override + public Validate setFields(java.lang.String fields) { + return (Validate) super.setFields(fields); + } + + @Override + public Validate setKey(java.lang.String key) { + return (Validate) super.setKey(key); + } + + @Override + public Validate setOauthToken(java.lang.String oauthToken) { + return (Validate) super.setOauthToken(oauthToken); + } + + @Override + public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Validate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Validate setQuotaUser(java.lang.String quotaUser) { + return (Validate) super.setQuotaUser(quotaUser); + } + + @Override + public Validate setUploadType(java.lang.String uploadType) { + return (Validate) super.setUploadType(uploadType); + } + + @Override + public Validate setUploadProtocol(java.lang.String uploadProtocol) { + return (Validate) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Validate set(String parameterName, Object value) { + return (Validate) super.set(parameterName, value); + } + } } diff --git a/clients/google-api-services-walletobjects/v1/2.0.0/com/google/api/services/walletobjects/model/JsonResource.java b/clients/google-api-services-walletobjects/v1/2.0.0/com/google/api/services/walletobjects/model/JsonResource.java new file mode 100644 index 00000000000..ab2b6a3a5c2 --- /dev/null +++ b/clients/google-api-services-walletobjects/v1/2.0.0/com/google/api/services/walletobjects/model/JsonResource.java @@ -0,0 +1,75 @@ +/* + * 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.walletobjects.model; + +/** + * A JSON representation of a pass. + * + *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 Wallet 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 JsonResource extends com.google.api.client.json.GenericJson { + + /** + * Required. A JSON string representing the unencoded JWT payload for a pass of the format + * described at https://developers.google.com/wallet/reference/rest/v1/Jwt. This can be set to + * either the entire JSON representation described at this link or just the contents of the + * payload field holding the relevant classes and objects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String json; + + /** + * Required. A JSON string representing the unencoded JWT payload for a pass of the format + * described at https://developers.google.com/wallet/reference/rest/v1/Jwt. This can be set to + * either the entire JSON representation described at this link or just the contents of the + * payload field holding the relevant classes and objects. + * @return value or {@code null} for none + */ + public java.lang.String getJson() { + return json; + } + + /** + * Required. A JSON string representing the unencoded JWT payload for a pass of the format + * described at https://developers.google.com/wallet/reference/rest/v1/Jwt. This can be set to + * either the entire JSON representation described at this link or just the contents of the + * payload field holding the relevant classes and objects. + * @param json json or {@code null} for none + */ + public JsonResource setJson(java.lang.String json) { + this.json = json; + return this; + } + + @Override + public JsonResource set(String fieldName, Object value) { + return (JsonResource) super.set(fieldName, value); + } + + @Override + public JsonResource clone() { + return (JsonResource) super.clone(); + } + +} diff --git a/clients/google-api-services-walletobjects/v1/2.0.0/com/google/api/services/walletobjects/model/JwtValidateRequest.java b/clients/google-api-services-walletobjects/v1/2.0.0/com/google/api/services/walletobjects/model/JwtValidateRequest.java new file mode 100644 index 00000000000..0dd3f14f590 --- /dev/null +++ b/clients/google-api-services-walletobjects/v1/2.0.0/com/google/api/services/walletobjects/model/JwtValidateRequest.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.walletobjects.model; + +/** + * Request to validate the JWT or JSON representation of a pass. + * + *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 Wallet 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 JwtValidateRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. A JSON representation of a pass to be validated. Either this or jwt_resource should + * be set. Requests setting both or neither will be rejected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private JsonResource jsonResource; + + /** + * Optional. A JWT representation of a pass to be validated. Either this or json_resource should + * be set. Requests setting both or neither will be rejected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private JwtResource jwtResource; + + /** + * Optional. A JSON representation of a pass to be validated. Either this or jwt_resource should + * be set. Requests setting both or neither will be rejected. + * @return value or {@code null} for none + */ + public JsonResource getJsonResource() { + return jsonResource; + } + + /** + * Optional. A JSON representation of a pass to be validated. Either this or jwt_resource should + * be set. Requests setting both or neither will be rejected. + * @param jsonResource jsonResource or {@code null} for none + */ + public JwtValidateRequest setJsonResource(JsonResource jsonResource) { + this.jsonResource = jsonResource; + return this; + } + + /** + * Optional. A JWT representation of a pass to be validated. Either this or json_resource should + * be set. Requests setting both or neither will be rejected. + * @return value or {@code null} for none + */ + public JwtResource getJwtResource() { + return jwtResource; + } + + /** + * Optional. A JWT representation of a pass to be validated. Either this or json_resource should + * be set. Requests setting both or neither will be rejected. + * @param jwtResource jwtResource or {@code null} for none + */ + public JwtValidateRequest setJwtResource(JwtResource jwtResource) { + this.jwtResource = jwtResource; + return this; + } + + @Override + public JwtValidateRequest set(String fieldName, Object value) { + return (JwtValidateRequest) super.set(fieldName, value); + } + + @Override + public JwtValidateRequest clone() { + return (JwtValidateRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-walletobjects/v1/2.0.0/com/google/api/services/walletobjects/model/JwtValidateResponse.java b/clients/google-api-services-walletobjects/v1/2.0.0/com/google/api/services/walletobjects/model/JwtValidateResponse.java new file mode 100644 index 00000000000..b904a1cd774 --- /dev/null +++ b/clients/google-api-services-walletobjects/v1/2.0.0/com/google/api/services/walletobjects/model/JwtValidateResponse.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.walletobjects.model; + +/** + * Empty if the resource in the request is valid. Returns exception if invalid. + * + *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 Wallet 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 JwtValidateResponse extends com.google.api.client.json.GenericJson { + + @Override + public JwtValidateResponse set(String fieldName, Object value) { + return (JwtValidateResponse) super.set(fieldName, value); + } + + @Override + public JwtValidateResponse clone() { + return (JwtValidateResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-walletobjects/v1/2.0.0/pom.xml b/clients/google-api-services-walletobjects/v1/2.0.0/pom.xml index 36a7976af80..f3e0decc87e 100644 --- a/clients/google-api-services-walletobjects/v1/2.0.0/pom.xml +++ b/clients/google-api-services-walletobjects/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@