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 Manufacturer Center 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 QuestionAndAnswer extends com.google.api.client.json.GenericJson { + + /** + * Required. The answer text. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String answer; + + /** + * Required. The question text. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String question; + + /** + * Required. The answer text. + * @return value or {@code null} for none + */ + public java.lang.String getAnswer() { + return answer; + } + + /** + * Required. The answer text. + * @param answer answer or {@code null} for none + */ + public QuestionAndAnswer setAnswer(java.lang.String answer) { + this.answer = answer; + return this; + } + + /** + * Required. The question text. + * @return value or {@code null} for none + */ + public java.lang.String getQuestion() { + return question; + } + + /** + * Required. The question text. + * @param question question or {@code null} for none + */ + public QuestionAndAnswer setQuestion(java.lang.String question) { + this.question = question; + return this; + } + + @Override + public QuestionAndAnswer set(String fieldName, Object value) { + return (QuestionAndAnswer) super.set(fieldName, value); + } + + @Override + public QuestionAndAnswer clone() { + return (QuestionAndAnswer) super.clone(); + } + +} diff --git a/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/model/RelatedProduct.java b/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/model/RelatedProduct.java new file mode 100644 index 00000000000..e2b24e60d04 --- /dev/null +++ b/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/model/RelatedProduct.java @@ -0,0 +1,118 @@ +/* + * 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.manufacturers.v1.model; + +/** + * A product related to this 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 Manufacturer Center 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 RelatedProduct extends com.google.api.client.json.GenericJson { + + /** + * Required. The identifier of the related product. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String identifier; + + /** + * Required. The identifier type of the related product, such as "GTIN" or "ID". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String identifierType; + + /** + * Required. The relationship to the related product, such as "ACCESSORY", "PART_OF_SET", + * "REQUIRED_PART", "OFTEN_BOUGHT_WITH", "SUBSTITUTE", or "DIFFERENT_BRAND". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String relationshipType; + + /** + * Required. The identifier of the related product. + * @return value or {@code null} for none + */ + public java.lang.String getIdentifier() { + return identifier; + } + + /** + * Required. The identifier of the related product. + * @param identifier identifier or {@code null} for none + */ + public RelatedProduct setIdentifier(java.lang.String identifier) { + this.identifier = identifier; + return this; + } + + /** + * Required. The identifier type of the related product, such as "GTIN" or "ID". + * @return value or {@code null} for none + */ + public java.lang.String getIdentifierType() { + return identifierType; + } + + /** + * Required. The identifier type of the related product, such as "GTIN" or "ID". + * @param identifierType identifierType or {@code null} for none + */ + public RelatedProduct setIdentifierType(java.lang.String identifierType) { + this.identifierType = identifierType; + return this; + } + + /** + * Required. The relationship to the related product, such as "ACCESSORY", "PART_OF_SET", + * "REQUIRED_PART", "OFTEN_BOUGHT_WITH", "SUBSTITUTE", or "DIFFERENT_BRAND". + * @return value or {@code null} for none + */ + public java.lang.String getRelationshipType() { + return relationshipType; + } + + /** + * Required. The relationship to the related product, such as "ACCESSORY", "PART_OF_SET", + * "REQUIRED_PART", "OFTEN_BOUGHT_WITH", "SUBSTITUTE", or "DIFFERENT_BRAND". + * @param relationshipType relationshipType or {@code null} for none + */ + public RelatedProduct setRelationshipType(java.lang.String relationshipType) { + this.relationshipType = relationshipType; + return this; + } + + @Override + public RelatedProduct set(String fieldName, Object value) { + return (RelatedProduct) super.set(fieldName, value); + } + + @Override + public RelatedProduct clone() { + return (RelatedProduct) super.clone(); + } + +} diff --git a/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/model/VariantOption.java b/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/model/VariantOption.java new file mode 100644 index 00000000000..69dbee576d4 --- /dev/null +++ b/clients/google-api-services-manufacturers/v1/2.0.0/com/google/api/services/manufacturers/v1/model/VariantOption.java @@ -0,0 +1,91 @@ +/* + * 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.manufacturers.v1.model; + +/** + * A variant-identifying option for the 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 Manufacturer Center 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 VariantOption extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of the variant option, such as "Color" or "Watch band style". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The value of the variant option, such as "Red" or "Milanese loop". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * Required. The name of the variant option, such as "Color" or "Watch band style". + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the variant option, such as "Color" or "Watch band style". + * @param name name or {@code null} for none + */ + public VariantOption setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The value of the variant option, such as "Red" or "Milanese loop". + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * Required. The value of the variant option, such as "Red" or "Milanese loop". + * @param value value or {@code null} for none + */ + public VariantOption setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public VariantOption set(String fieldName, Object value) { + return (VariantOption) super.set(fieldName, value); + } + + @Override + public VariantOption clone() { + return (VariantOption) super.clone(); + } + +} diff --git a/clients/google-api-services-manufacturers/v1/2.0.0/pom.xml b/clients/google-api-services-manufacturers/v1/2.0.0/pom.xml index be7d26128b7..1d77804aa70 100644 --- a/clients/google-api-services-manufacturers/v1/2.0.0/pom.xml +++ b/clients/google-api-services-manufacturers/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@