Class FulfillmentInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FulfillmentInfo.Builder>
com.google.cloud.retail.v2alpha.FulfillmentInfo.Builder
All Implemented Interfaces:
FulfillmentInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FulfillmentInfo

public static final class FulfillmentInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<FulfillmentInfo.Builder> implements FulfillmentInfoOrBuilder
 Fulfillment information, such as the store IDs for in-store pickup or region
 IDs for different shipping methods.
 
Protobuf type google.cloud.retail.v2alpha.FulfillmentInfo
  • Method Summary

    Modifier and Type
    Method
    Description
    The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type], such as the store IDs for [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type] or the region IDs for [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
    The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type], such as the store IDs for [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type] or the region IDs for [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
    addPlaceIdsBytes(com.google.protobuf.ByteString value)
    The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type], such as the store IDs for [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type] or the region IDs for [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
     
     
     
    The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type], such as the store IDs for [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type] or the region IDs for [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
    The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    getPlaceIds(int index)
    The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type], such as the store IDs for [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type] or the region IDs for [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
    com.google.protobuf.ByteString
    getPlaceIdsBytes(int index)
    The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type], such as the store IDs for [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type] or the region IDs for [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
    int
    The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type], such as the store IDs for [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type] or the region IDs for [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
    com.google.protobuf.ProtocolStringList
    The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type], such as the store IDs for [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type] or the region IDs for [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
    The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types.
    com.google.protobuf.ByteString
    The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setPlaceIds(int index, String value)
    The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type], such as the store IDs for [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type] or the region IDs for [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
    setType(String value)
    The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types.
    setTypeBytes(com.google.protobuf.ByteString value)
    The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FulfillmentInfo.Builder>
    • clear

      public FulfillmentInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FulfillmentInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FulfillmentInfo.Builder>
    • getDefaultInstanceForType

      public FulfillmentInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public FulfillmentInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FulfillmentInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public FulfillmentInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FulfillmentInfo.Builder>
    • mergeFrom

      public FulfillmentInfo.Builder mergeFrom(FulfillmentInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FulfillmentInfo.Builder>
    • mergeFrom

      public FulfillmentInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FulfillmentInfo.Builder>
      Throws:
      IOException
    • getType

      public String getType()
       The fulfillment type, including commonly used types (such as pickup in
       store and same day delivery), and custom types. Customers have to map
       custom types to their display names before rendering UI.
      
       Supported values:
      
       * "pickup-in-store"
       * "ship-to-store"
       * "same-day-delivery"
       * "next-day-delivery"
       * "custom-type-1"
       * "custom-type-2"
       * "custom-type-3"
       * "custom-type-4"
       * "custom-type-5"
      
       If this field is set to an invalid value other than these, an
       INVALID_ARGUMENT error is returned.
       
      string type = 1;
      Specified by:
      getType in interface FulfillmentInfoOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The fulfillment type, including commonly used types (such as pickup in
       store and same day delivery), and custom types. Customers have to map
       custom types to their display names before rendering UI.
      
       Supported values:
      
       * "pickup-in-store"
       * "ship-to-store"
       * "same-day-delivery"
       * "next-day-delivery"
       * "custom-type-1"
       * "custom-type-2"
       * "custom-type-3"
       * "custom-type-4"
       * "custom-type-5"
      
       If this field is set to an invalid value other than these, an
       INVALID_ARGUMENT error is returned.
       
      string type = 1;
      Specified by:
      getTypeBytes in interface FulfillmentInfoOrBuilder
      Returns:
      The bytes for type.
    • setType

      public FulfillmentInfo.Builder setType(String value)
       The fulfillment type, including commonly used types (such as pickup in
       store and same day delivery), and custom types. Customers have to map
       custom types to their display names before rendering UI.
      
       Supported values:
      
       * "pickup-in-store"
       * "ship-to-store"
       * "same-day-delivery"
       * "next-day-delivery"
       * "custom-type-1"
       * "custom-type-2"
       * "custom-type-3"
       * "custom-type-4"
       * "custom-type-5"
      
       If this field is set to an invalid value other than these, an
       INVALID_ARGUMENT error is returned.
       
      string type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public FulfillmentInfo.Builder clearType()
       The fulfillment type, including commonly used types (such as pickup in
       store and same day delivery), and custom types. Customers have to map
       custom types to their display names before rendering UI.
      
       Supported values:
      
       * "pickup-in-store"
       * "ship-to-store"
       * "same-day-delivery"
       * "next-day-delivery"
       * "custom-type-1"
       * "custom-type-2"
       * "custom-type-3"
       * "custom-type-4"
       * "custom-type-5"
      
       If this field is set to an invalid value other than these, an
       INVALID_ARGUMENT error is returned.
       
      string type = 1;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public FulfillmentInfo.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The fulfillment type, including commonly used types (such as pickup in
       store and same day delivery), and custom types. Customers have to map
       custom types to their display names before rendering UI.
      
       Supported values:
      
       * "pickup-in-store"
       * "ship-to-store"
       * "same-day-delivery"
       * "next-day-delivery"
       * "custom-type-1"
       * "custom-type-2"
       * "custom-type-3"
       * "custom-type-4"
       * "custom-type-5"
      
       If this field is set to an invalid value other than these, an
       INVALID_ARGUMENT error is returned.
       
      string type = 1;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getPlaceIdsList

      public com.google.protobuf.ProtocolStringList getPlaceIdsList()
       The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type],
       such as the store IDs for
       [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type]
       or the region IDs for
       [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
      
       A maximum of 3000 values are allowed. Each value must be a string with a
       length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
       as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
       returned.
       
      repeated string place_ids = 2;
      Specified by:
      getPlaceIdsList in interface FulfillmentInfoOrBuilder
      Returns:
      A list containing the placeIds.
    • getPlaceIdsCount

      public int getPlaceIdsCount()
       The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type],
       such as the store IDs for
       [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type]
       or the region IDs for
       [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
      
       A maximum of 3000 values are allowed. Each value must be a string with a
       length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
       as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
       returned.
       
      repeated string place_ids = 2;
      Specified by:
      getPlaceIdsCount in interface FulfillmentInfoOrBuilder
      Returns:
      The count of placeIds.
    • getPlaceIds

      public String getPlaceIds(int index)
       The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type],
       such as the store IDs for
       [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type]
       or the region IDs for
       [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
      
       A maximum of 3000 values are allowed. Each value must be a string with a
       length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
       as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
       returned.
       
      repeated string place_ids = 2;
      Specified by:
      getPlaceIds in interface FulfillmentInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The placeIds at the given index.
    • getPlaceIdsBytes

      public com.google.protobuf.ByteString getPlaceIdsBytes(int index)
       The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type],
       such as the store IDs for
       [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type]
       or the region IDs for
       [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
      
       A maximum of 3000 values are allowed. Each value must be a string with a
       length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
       as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
       returned.
       
      repeated string place_ids = 2;
      Specified by:
      getPlaceIdsBytes in interface FulfillmentInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the placeIds at the given index.
    • setPlaceIds

      public FulfillmentInfo.Builder setPlaceIds(int index, String value)
       The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type],
       such as the store IDs for
       [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type]
       or the region IDs for
       [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
      
       A maximum of 3000 values are allowed. Each value must be a string with a
       length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
       as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
       returned.
       
      repeated string place_ids = 2;
      Parameters:
      index - The index to set the value at.
      value - The placeIds to set.
      Returns:
      This builder for chaining.
    • addPlaceIds

      public FulfillmentInfo.Builder addPlaceIds(String value)
       The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type],
       such as the store IDs for
       [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type]
       or the region IDs for
       [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
      
       A maximum of 3000 values are allowed. Each value must be a string with a
       length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
       as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
       returned.
       
      repeated string place_ids = 2;
      Parameters:
      value - The placeIds to add.
      Returns:
      This builder for chaining.
    • addAllPlaceIds

      public FulfillmentInfo.Builder addAllPlaceIds(Iterable<String> values)
       The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type],
       such as the store IDs for
       [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type]
       or the region IDs for
       [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
      
       A maximum of 3000 values are allowed. Each value must be a string with a
       length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
       as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
       returned.
       
      repeated string place_ids = 2;
      Parameters:
      values - The placeIds to add.
      Returns:
      This builder for chaining.
    • clearPlaceIds

      public FulfillmentInfo.Builder clearPlaceIds()
       The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type],
       such as the store IDs for
       [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type]
       or the region IDs for
       [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
      
       A maximum of 3000 values are allowed. Each value must be a string with a
       length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
       as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
       returned.
       
      repeated string place_ids = 2;
      Returns:
      This builder for chaining.
    • addPlaceIdsBytes

      public FulfillmentInfo.Builder addPlaceIdsBytes(com.google.protobuf.ByteString value)
       The IDs for this [type][google.cloud.retail.v2alpha.FulfillmentInfo.type],
       such as the store IDs for
       [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2alpha.FulfillmentInfo.type]
       or the region IDs for
       [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
      
       A maximum of 3000 values are allowed. Each value must be a string with a
       length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
       as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
       returned.
       
      repeated string place_ids = 2;
      Parameters:
      value - The bytes of the placeIds to add.
      Returns:
      This builder for chaining.