Class PinControlMetadata.ProductPins.Builder

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

public static final class PinControlMetadata.ProductPins.Builder extends com.google.protobuf.GeneratedMessage.Builder<PinControlMetadata.ProductPins.Builder> implements PinControlMetadata.ProductPinsOrBuilder
 List of product ids which have associated pins.
 
Protobuf type google.cloud.retail.v2alpha.PinControlMetadata.ProductPins
  • 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<PinControlMetadata.ProductPins.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<PinControlMetadata.ProductPins.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<PinControlMetadata.ProductPins.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public PinControlMetadata.ProductPins.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<PinControlMetadata.ProductPins.Builder>
    • mergeFrom

    • isInitialized

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

      public PinControlMetadata.ProductPins.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<PinControlMetadata.ProductPins.Builder>
      Throws:
      IOException
    • getProductIdList

      public com.google.protobuf.ProtocolStringList getProductIdList()
       List of product ids which have associated pins.
       
      repeated string product_id = 1;
      Specified by:
      getProductIdList in interface PinControlMetadata.ProductPinsOrBuilder
      Returns:
      A list containing the productId.
    • getProductIdCount

      public int getProductIdCount()
       List of product ids which have associated pins.
       
      repeated string product_id = 1;
      Specified by:
      getProductIdCount in interface PinControlMetadata.ProductPinsOrBuilder
      Returns:
      The count of productId.
    • getProductId

      public String getProductId(int index)
       List of product ids which have associated pins.
       
      repeated string product_id = 1;
      Specified by:
      getProductId in interface PinControlMetadata.ProductPinsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The productId at the given index.
    • getProductIdBytes

      public com.google.protobuf.ByteString getProductIdBytes(int index)
       List of product ids which have associated pins.
       
      repeated string product_id = 1;
      Specified by:
      getProductIdBytes in interface PinControlMetadata.ProductPinsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the productId at the given index.
    • setProductId

      public PinControlMetadata.ProductPins.Builder setProductId(int index, String value)
       List of product ids which have associated pins.
       
      repeated string product_id = 1;
      Parameters:
      index - The index to set the value at.
      value - The productId to set.
      Returns:
      This builder for chaining.
    • addProductId

      public PinControlMetadata.ProductPins.Builder addProductId(String value)
       List of product ids which have associated pins.
       
      repeated string product_id = 1;
      Parameters:
      value - The productId to add.
      Returns:
      This builder for chaining.
    • addAllProductId

      public PinControlMetadata.ProductPins.Builder addAllProductId(Iterable<String> values)
       List of product ids which have associated pins.
       
      repeated string product_id = 1;
      Parameters:
      values - The productId to add.
      Returns:
      This builder for chaining.
    • clearProductId

      public PinControlMetadata.ProductPins.Builder clearProductId()
       List of product ids which have associated pins.
       
      repeated string product_id = 1;
      Returns:
      This builder for chaining.
    • addProductIdBytes

      public PinControlMetadata.ProductPins.Builder addProductIdBytes(com.google.protobuf.ByteString value)
       List of product ids which have associated pins.
       
      repeated string product_id = 1;
      Parameters:
      value - The bytes of the productId to add.
      Returns:
      This builder for chaining.