Class ListCatalogsResponse.Builder

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

public static final class ListCatalogsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListCatalogsResponse.Builder> implements ListCatalogsResponseOrBuilder
 Response for
 [CatalogService.ListCatalogs][google.cloud.retail.v2alpha.CatalogService.ListCatalogs]
 method.
 
Protobuf type google.cloud.retail.v2alpha.ListCatalogsResponse
  • 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<ListCatalogsResponse.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<ListCatalogsResponse.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<ListCatalogsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListCatalogsResponse.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<ListCatalogsResponse.Builder>
      Throws:
      IOException
    • getCatalogsList

      public List<Catalog> getCatalogsList()
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
      Specified by:
      getCatalogsList in interface ListCatalogsResponseOrBuilder
    • getCatalogsCount

      public int getCatalogsCount()
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
      Specified by:
      getCatalogsCount in interface ListCatalogsResponseOrBuilder
    • getCatalogs

      public Catalog getCatalogs(int index)
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
      Specified by:
      getCatalogs in interface ListCatalogsResponseOrBuilder
    • setCatalogs

      public ListCatalogsResponse.Builder setCatalogs(int index, Catalog value)
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
    • setCatalogs

      public ListCatalogsResponse.Builder setCatalogs(int index, Catalog.Builder builderForValue)
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
    • addCatalogs

      public ListCatalogsResponse.Builder addCatalogs(Catalog value)
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
    • addCatalogs

      public ListCatalogsResponse.Builder addCatalogs(int index, Catalog value)
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
    • addCatalogs

      public ListCatalogsResponse.Builder addCatalogs(Catalog.Builder builderForValue)
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
    • addCatalogs

      public ListCatalogsResponse.Builder addCatalogs(int index, Catalog.Builder builderForValue)
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
    • addAllCatalogs

      public ListCatalogsResponse.Builder addAllCatalogs(Iterable<? extends Catalog> values)
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
    • clearCatalogs

      public ListCatalogsResponse.Builder clearCatalogs()
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
    • removeCatalogs

      public ListCatalogsResponse.Builder removeCatalogs(int index)
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
    • getCatalogsBuilder

      public Catalog.Builder getCatalogsBuilder(int index)
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
    • getCatalogsOrBuilder

      public CatalogOrBuilder getCatalogsOrBuilder(int index)
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
      Specified by:
      getCatalogsOrBuilder in interface ListCatalogsResponseOrBuilder
    • getCatalogsOrBuilderList

      public List<? extends CatalogOrBuilder> getCatalogsOrBuilderList()
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
      Specified by:
      getCatalogsOrBuilderList in interface ListCatalogsResponseOrBuilder
    • addCatalogsBuilder

      public Catalog.Builder addCatalogsBuilder()
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
    • addCatalogsBuilder

      public Catalog.Builder addCatalogsBuilder(int index)
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
    • getCatalogsBuilderList

      public List<Catalog.Builder> getCatalogsBuilderList()
       All the customer's [Catalog][google.cloud.retail.v2alpha.Catalog]s.
       
      repeated .google.cloud.retail.v2alpha.Catalog catalogs = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token that can be sent as
       [ListCatalogsRequest.page_token][google.cloud.retail.v2alpha.ListCatalogsRequest.page_token]
       to retrieve the next page. If this field is omitted, there are no
       subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListCatalogsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token that can be sent as
       [ListCatalogsRequest.page_token][google.cloud.retail.v2alpha.ListCatalogsRequest.page_token]
       to retrieve the next page. If this field is omitted, there are no
       subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListCatalogsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListCatalogsResponse.Builder setNextPageToken(String value)
       A token that can be sent as
       [ListCatalogsRequest.page_token][google.cloud.retail.v2alpha.ListCatalogsRequest.page_token]
       to retrieve the next page. If this field is omitted, there are no
       subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListCatalogsResponse.Builder clearNextPageToken()
       A token that can be sent as
       [ListCatalogsRequest.page_token][google.cloud.retail.v2alpha.ListCatalogsRequest.page_token]
       to retrieve the next page. If this field is omitted, there are no
       subsequent pages.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListCatalogsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token that can be sent as
       [ListCatalogsRequest.page_token][google.cloud.retail.v2alpha.ListCatalogsRequest.page_token]
       to retrieve the next page. If this field is omitted, there are no
       subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.