All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.content.model.Value.html Maven / Gradle / Ivy

There is a newer version: v2.1-rev20240825-2.0.0
Show newest version






Value (Content API for Shopping v2.1-rev20240609-2.0.0)












com.google.api.services.content.model

Class Value

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class Value
    extends com.google.api.client.json.GenericJson
    The single value of a rate group or the value of a rate group table's cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.

    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 Content API for Shopping. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Constructor Detail

      • Value

        public Value()
    • Method Detail

      • getCarrierRateName

        public String getCarrierRateName()
        The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
        Returns:
        value or null for none
      • setCarrierRateName

        public Value setCarrierRateName(String carrierRateName)
        The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
        Parameters:
        carrierRateName - carrierRateName or null for none
      • getFlatRate

        public Price getFlatRate()
        A flat rate. Can only be set if all other fields are not set.
        Returns:
        value or null for none
      • setFlatRate

        public Value setFlatRate(Price flatRate)
        A flat rate. Can only be set if all other fields are not set.
        Parameters:
        flatRate - flatRate or null for none
      • getNoShipping

        public Boolean getNoShipping()
        If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
        Returns:
        value or null for none
      • setNoShipping

        public Value setNoShipping(Boolean noShipping)
        If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set.
        Parameters:
        noShipping - noShipping or null for none
      • getPricePercentage

        public String getPricePercentage()
        A percentage of the price represented as a number in decimal notation (for example, `"5.4"`). Can only be set if all other fields are not set.
        Returns:
        value or null for none
      • setPricePercentage

        public Value setPricePercentage(String pricePercentage)
        A percentage of the price represented as a number in decimal notation (for example, `"5.4"`). Can only be set if all other fields are not set.
        Parameters:
        pricePercentage - pricePercentage or null for none
      • getSubtableName

        public String getSubtableName()
        The name of a subtable. Can only be set in table cells (not for single values), and only if all other fields are not set.
        Returns:
        value or null for none
      • setSubtableName

        public Value setSubtableName(String subtableName)
        The name of a subtable. Can only be set in table cells (not for single values), and only if all other fields are not set.
        Parameters:
        subtableName - subtableName or null for none
      • set

        public Value set(String fieldName,
                         Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public Value clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy