Class ListInsightTypesResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListInsightTypesResponse.Builder>
com.google.cloud.recommender.v1beta1.ListInsightTypesResponse.Builder
All Implemented Interfaces:
ListInsightTypesResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListInsightTypesResponse

public static final class ListInsightTypesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListInsightTypesResponse.Builder> implements ListInsightTypesResponseOrBuilder
 Response for the `ListInsightTypes` method.
 
Protobuf type google.cloud.recommender.v1beta1.ListInsightTypesResponse
  • 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<ListInsightTypesResponse.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<ListInsightTypesResponse.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<ListInsightTypesResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListInsightTypesResponse.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<ListInsightTypesResponse.Builder>
      Throws:
      IOException
    • getInsightTypesList

      public List<InsightType> getInsightTypesList()
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
      Specified by:
      getInsightTypesList in interface ListInsightTypesResponseOrBuilder
    • getInsightTypesCount

      public int getInsightTypesCount()
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
      Specified by:
      getInsightTypesCount in interface ListInsightTypesResponseOrBuilder
    • getInsightTypes

      public InsightType getInsightTypes(int index)
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
      Specified by:
      getInsightTypes in interface ListInsightTypesResponseOrBuilder
    • setInsightTypes

      public ListInsightTypesResponse.Builder setInsightTypes(int index, InsightType value)
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
    • setInsightTypes

      public ListInsightTypesResponse.Builder setInsightTypes(int index, InsightType.Builder builderForValue)
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
    • addInsightTypes

      public ListInsightTypesResponse.Builder addInsightTypes(InsightType value)
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
    • addInsightTypes

      public ListInsightTypesResponse.Builder addInsightTypes(int index, InsightType value)
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
    • addInsightTypes

      public ListInsightTypesResponse.Builder addInsightTypes(InsightType.Builder builderForValue)
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
    • addInsightTypes

      public ListInsightTypesResponse.Builder addInsightTypes(int index, InsightType.Builder builderForValue)
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
    • addAllInsightTypes

      public ListInsightTypesResponse.Builder addAllInsightTypes(Iterable<? extends InsightType> values)
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
    • clearInsightTypes

      public ListInsightTypesResponse.Builder clearInsightTypes()
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
    • removeInsightTypes

      public ListInsightTypesResponse.Builder removeInsightTypes(int index)
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
    • getInsightTypesBuilder

      public InsightType.Builder getInsightTypesBuilder(int index)
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
    • getInsightTypesOrBuilder

      public InsightTypeOrBuilder getInsightTypesOrBuilder(int index)
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
      Specified by:
      getInsightTypesOrBuilder in interface ListInsightTypesResponseOrBuilder
    • getInsightTypesOrBuilderList

      public List<? extends InsightTypeOrBuilder> getInsightTypesOrBuilderList()
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
      Specified by:
      getInsightTypesOrBuilderList in interface ListInsightTypesResponseOrBuilder
    • addInsightTypesBuilder

      public InsightType.Builder addInsightTypesBuilder()
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
    • addInsightTypesBuilder

      public InsightType.Builder addInsightTypesBuilder(int index)
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
    • getInsightTypesBuilderList

      public List<InsightType.Builder> getInsightTypesBuilderList()
       The set of recommenders available
       
      repeated .google.cloud.recommender.v1beta1.InsightType insight_types = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token, which can be sent as `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 ListInsightTypesResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token, which can be sent as `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 ListInsightTypesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListInsightTypesResponse.Builder setNextPageToken(String value)
       A token, which can be sent as `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 ListInsightTypesResponse.Builder clearNextPageToken()
       A token, which can be sent as `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 ListInsightTypesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token, which can be sent as `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.