Class Project.Builder

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

public static final class Project.Builder extends com.google.protobuf.GeneratedMessage.Builder<Project.Builder> implements ProjectOrBuilder
 Metadata that describes a Cloud Retail Project.
 
Protobuf type google.cloud.retail.v2alpha.Project
  • 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<Project.Builder>
    • clear

      public Project.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<Project.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<Project.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Project.Builder mergeFrom(Project other)
    • isInitialized

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

      public Project.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<Project.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Full resource name of the retail project, such as
       `projects/{project_id_or_number}/retailProject`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface ProjectOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Full resource name of the retail project, such as
       `projects/{project_id_or_number}/retailProject`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface ProjectOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Project.Builder setName(String value)
       Output only. Full resource name of the retail project, such as
       `projects/{project_id_or_number}/retailProject`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Project.Builder clearName()
       Output only. Full resource name of the retail project, such as
       `projects/{project_id_or_number}/retailProject`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Project.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Full resource name of the retail project, such as
       `projects/{project_id_or_number}/retailProject`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getEnrolledSolutionsList

      public List<SolutionType> getEnrolledSolutionsList()
       Output only. Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEnrolledSolutionsList in interface ProjectOrBuilder
      Returns:
      A list containing the enrolledSolutions.
    • getEnrolledSolutionsCount

      public int getEnrolledSolutionsCount()
       Output only. Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEnrolledSolutionsCount in interface ProjectOrBuilder
      Returns:
      The count of enrolledSolutions.
    • getEnrolledSolutions

      public SolutionType getEnrolledSolutions(int index)
       Output only. Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEnrolledSolutions in interface ProjectOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The enrolledSolutions at the given index.
    • setEnrolledSolutions

      public Project.Builder setEnrolledSolutions(int index, SolutionType value)
       Output only. Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The enrolledSolutions to set.
      Returns:
      This builder for chaining.
    • addEnrolledSolutions

      public Project.Builder addEnrolledSolutions(SolutionType value)
       Output only. Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enrolledSolutions to add.
      Returns:
      This builder for chaining.
    • addAllEnrolledSolutions

      public Project.Builder addAllEnrolledSolutions(Iterable<? extends SolutionType> values)
       Output only. Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The enrolledSolutions to add.
      Returns:
      This builder for chaining.
    • clearEnrolledSolutions

      public Project.Builder clearEnrolledSolutions()
       Output only. Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getEnrolledSolutionsValueList

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

      public int getEnrolledSolutionsValue(int index)
       Output only. Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEnrolledSolutionsValue in interface ProjectOrBuilder
      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 Project.Builder setEnrolledSolutionsValue(int index, int value)
       Output only. Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      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 Project.Builder addEnrolledSolutionsValue(int value)
       Output only. Retail API solutions that the project has enrolled.
       
      repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for enrolledSolutions to add.
      Returns:
      This builder for chaining.
    • addAllEnrolledSolutionsValue

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