Class ListInsightsResponse.Builder

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

public static final class ListInsightsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListInsightsResponse.Builder> implements ListInsightsResponseOrBuilder
 Response to the `ListInsights` method.
 
Protobuf type google.cloud.recommender.v1beta1.ListInsightsResponse
  • 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<ListInsightsResponse.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<ListInsightsResponse.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<ListInsightsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListInsightsResponse.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<ListInsightsResponse.Builder>
      Throws:
      IOException
    • getInsightsList

      public List<Insight> getInsightsList()
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
      Specified by:
      getInsightsList in interface ListInsightsResponseOrBuilder
    • getInsightsCount

      public int getInsightsCount()
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
      Specified by:
      getInsightsCount in interface ListInsightsResponseOrBuilder
    • getInsights

      public Insight getInsights(int index)
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
      Specified by:
      getInsights in interface ListInsightsResponseOrBuilder
    • setInsights

      public ListInsightsResponse.Builder setInsights(int index, Insight value)
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
    • setInsights

      public ListInsightsResponse.Builder setInsights(int index, Insight.Builder builderForValue)
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
    • addInsights

      public ListInsightsResponse.Builder addInsights(Insight value)
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
    • addInsights

      public ListInsightsResponse.Builder addInsights(int index, Insight value)
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
    • addInsights

      public ListInsightsResponse.Builder addInsights(Insight.Builder builderForValue)
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
    • addInsights

      public ListInsightsResponse.Builder addInsights(int index, Insight.Builder builderForValue)
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
    • addAllInsights

      public ListInsightsResponse.Builder addAllInsights(Iterable<? extends Insight> values)
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
    • clearInsights

      public ListInsightsResponse.Builder clearInsights()
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
    • removeInsights

      public ListInsightsResponse.Builder removeInsights(int index)
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
    • getInsightsBuilder

      public Insight.Builder getInsightsBuilder(int index)
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
    • getInsightsOrBuilder

      public InsightOrBuilder getInsightsOrBuilder(int index)
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
      Specified by:
      getInsightsOrBuilder in interface ListInsightsResponseOrBuilder
    • getInsightsOrBuilderList

      public List<? extends InsightOrBuilder> getInsightsOrBuilderList()
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
      Specified by:
      getInsightsOrBuilderList in interface ListInsightsResponseOrBuilder
    • addInsightsBuilder

      public Insight.Builder addInsightsBuilder()
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
    • addInsightsBuilder

      public Insight.Builder addInsightsBuilder(int index)
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
    • getInsightsBuilderList

      public List<Insight.Builder> getInsightsBuilderList()
       The set of insights for the `parent` resource.
       
      repeated .google.cloud.recommender.v1beta1.Insight insights = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token that can be used to request the next page of results. This field is
       empty if there are no additional results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListInsightsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token that can be used to request the next page of results. This field is
       empty if there are no additional results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListInsightsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListInsightsResponse.Builder setNextPageToken(String value)
       A token that can be used to request the next page of results. This field is
       empty if there are no additional results.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListInsightsResponse.Builder clearNextPageToken()
       A token that can be used to request the next page of results. This field is
       empty if there are no additional results.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListInsightsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token that can be used to request the next page of results. This field is
       empty if there are no additional results.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.