Class ListEnrolledSolutionsResponse.Builder

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

public static final class ListEnrolledSolutionsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListEnrolledSolutionsResponse.Builder> implements ListEnrolledSolutionsResponseOrBuilder
 Response for ListEnrolledSolutions method.
 
Protobuf type google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse
  • 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<ListEnrolledSolutionsResponse.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<ListEnrolledSolutionsResponse.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<ListEnrolledSolutionsResponse.Builder>
    • getDefaultInstanceForType

      public ListEnrolledSolutionsResponse 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 ListEnrolledSolutionsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ListEnrolledSolutionsResponse.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<ListEnrolledSolutionsResponse.Builder>
      Throws:
      IOException
    • getEnrolledSolutionsList

      public List<SolutionType> getEnrolledSolutionsList()
       Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;
      Specified by:
      getEnrolledSolutionsList in interface ListEnrolledSolutionsResponseOrBuilder
      Returns:
      A list containing the enrolledSolutions.
    • getEnrolledSolutionsCount

      public int getEnrolledSolutionsCount()
       Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;
      Specified by:
      getEnrolledSolutionsCount in interface ListEnrolledSolutionsResponseOrBuilder
      Returns:
      The count of enrolledSolutions.
    • getEnrolledSolutions

      public SolutionType getEnrolledSolutions(int index)
       Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;
      Specified by:
      getEnrolledSolutions in interface ListEnrolledSolutionsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The enrolledSolutions at the given index.
    • setEnrolledSolutions

      public ListEnrolledSolutionsResponse.Builder setEnrolledSolutions(int index, SolutionType value)
       Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;
      Parameters:
      index - The index to set the value at.
      value - The enrolledSolutions to set.
      Returns:
      This builder for chaining.
    • addEnrolledSolutions

      public ListEnrolledSolutionsResponse.Builder addEnrolledSolutions(SolutionType value)
       Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;
      Parameters:
      value - The enrolledSolutions to add.
      Returns:
      This builder for chaining.
    • addAllEnrolledSolutions

      public ListEnrolledSolutionsResponse.Builder addAllEnrolledSolutions(Iterable<? extends SolutionType> values)
       Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;
      Parameters:
      values - The enrolledSolutions to add.
      Returns:
      This builder for chaining.
    • clearEnrolledSolutions

      public ListEnrolledSolutionsResponse.Builder clearEnrolledSolutions()
       Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;
      Returns:
      This builder for chaining.
    • getEnrolledSolutionsValueList

      public List<Integer> getEnrolledSolutionsValueList()
       Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;
      Specified by:
      getEnrolledSolutionsValueList in interface ListEnrolledSolutionsResponseOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for enrolledSolutions.
    • getEnrolledSolutionsValue

      public int getEnrolledSolutionsValue(int index)
       Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;
      Specified by:
      getEnrolledSolutionsValue in interface ListEnrolledSolutionsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of enrolledSolutions at the given index.
    • setEnrolledSolutionsValue

      public ListEnrolledSolutionsResponse.Builder setEnrolledSolutionsValue(int index, int value)
       Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for enrolledSolutions to set.
      Returns:
      This builder for chaining.
    • addEnrolledSolutionsValue

      public ListEnrolledSolutionsResponse.Builder addEnrolledSolutionsValue(int value)
       Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;
      Parameters:
      value - The enum numeric value on the wire for enrolledSolutions to add.
      Returns:
      This builder for chaining.
    • addAllEnrolledSolutionsValue

      public ListEnrolledSolutionsResponse.Builder addAllEnrolledSolutionsValue(Iterable<Integer> values)
       Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;
      Parameters:
      values - The enum numeric values on the wire for enrolledSolutions to add.
      Returns:
      This builder for chaining.