Class Insight.Builder

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

public static final class Insight.Builder extends com.google.protobuf.GeneratedMessage.Builder<Insight.Builder> implements InsightOrBuilder
 An insight along with the information used to derive the insight. The insight
 may have associated recommendations as well.
 
Protobuf type google.cloud.recommender.v1beta1.Insight
  • 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<Insight.Builder>
    • clear

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

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

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

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

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

      public Insight.Builder mergeFrom(Insight other)
    • isInitialized

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

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

      public String getName()
       Name of the insight.
       
      string name = 1;
      Specified by:
      getName in interface InsightOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the insight.
       
      string name = 1;
      Specified by:
      getNameBytes in interface InsightOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Insight.Builder setName(String value)
       Name of the insight.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Insight.Builder clearName()
       Name of the insight.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Insight.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the insight.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Free-form human readable summary in English. The maximum length is 500
       characters.
       
      string description = 2;
      Specified by:
      getDescription in interface InsightOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Free-form human readable summary in English. The maximum length is 500
       characters.
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface InsightOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Insight.Builder setDescription(String value)
       Free-form human readable summary in English. The maximum length is 500
       characters.
       
      string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Insight.Builder clearDescription()
       Free-form human readable summary in English. The maximum length is 500
       characters.
       
      string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Insight.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Free-form human readable summary in English. The maximum length is 500
       characters.
       
      string description = 2;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getTargetResourcesList

      public com.google.protobuf.ProtocolStringList getTargetResourcesList()
       Fully qualified resource names that this insight is targeting.
       
      repeated string target_resources = 9;
      Specified by:
      getTargetResourcesList in interface InsightOrBuilder
      Returns:
      A list containing the targetResources.
    • getTargetResourcesCount

      public int getTargetResourcesCount()
       Fully qualified resource names that this insight is targeting.
       
      repeated string target_resources = 9;
      Specified by:
      getTargetResourcesCount in interface InsightOrBuilder
      Returns:
      The count of targetResources.
    • getTargetResources

      public String getTargetResources(int index)
       Fully qualified resource names that this insight is targeting.
       
      repeated string target_resources = 9;
      Specified by:
      getTargetResources in interface InsightOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The targetResources at the given index.
    • getTargetResourcesBytes

      public com.google.protobuf.ByteString getTargetResourcesBytes(int index)
       Fully qualified resource names that this insight is targeting.
       
      repeated string target_resources = 9;
      Specified by:
      getTargetResourcesBytes in interface InsightOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the targetResources at the given index.
    • setTargetResources

      public Insight.Builder setTargetResources(int index, String value)
       Fully qualified resource names that this insight is targeting.
       
      repeated string target_resources = 9;
      Parameters:
      index - The index to set the value at.
      value - The targetResources to set.
      Returns:
      This builder for chaining.
    • addTargetResources

      public Insight.Builder addTargetResources(String value)
       Fully qualified resource names that this insight is targeting.
       
      repeated string target_resources = 9;
      Parameters:
      value - The targetResources to add.
      Returns:
      This builder for chaining.
    • addAllTargetResources

      public Insight.Builder addAllTargetResources(Iterable<String> values)
       Fully qualified resource names that this insight is targeting.
       
      repeated string target_resources = 9;
      Parameters:
      values - The targetResources to add.
      Returns:
      This builder for chaining.
    • clearTargetResources

      public Insight.Builder clearTargetResources()
       Fully qualified resource names that this insight is targeting.
       
      repeated string target_resources = 9;
      Returns:
      This builder for chaining.
    • addTargetResourcesBytes

      public Insight.Builder addTargetResourcesBytes(com.google.protobuf.ByteString value)
       Fully qualified resource names that this insight is targeting.
       
      repeated string target_resources = 9;
      Parameters:
      value - The bytes of the targetResources to add.
      Returns:
      This builder for chaining.
    • getInsightSubtype

      public String getInsightSubtype()
       Insight subtype. Insight content schema will be stable for a given subtype.
       
      string insight_subtype = 10;
      Specified by:
      getInsightSubtype in interface InsightOrBuilder
      Returns:
      The insightSubtype.
    • getInsightSubtypeBytes

      public com.google.protobuf.ByteString getInsightSubtypeBytes()
       Insight subtype. Insight content schema will be stable for a given subtype.
       
      string insight_subtype = 10;
      Specified by:
      getInsightSubtypeBytes in interface InsightOrBuilder
      Returns:
      The bytes for insightSubtype.
    • setInsightSubtype

      public Insight.Builder setInsightSubtype(String value)
       Insight subtype. Insight content schema will be stable for a given subtype.
       
      string insight_subtype = 10;
      Parameters:
      value - The insightSubtype to set.
      Returns:
      This builder for chaining.
    • clearInsightSubtype

      public Insight.Builder clearInsightSubtype()
       Insight subtype. Insight content schema will be stable for a given subtype.
       
      string insight_subtype = 10;
      Returns:
      This builder for chaining.
    • setInsightSubtypeBytes

      public Insight.Builder setInsightSubtypeBytes(com.google.protobuf.ByteString value)
       Insight subtype. Insight content schema will be stable for a given subtype.
       
      string insight_subtype = 10;
      Parameters:
      value - The bytes for insightSubtype to set.
      Returns:
      This builder for chaining.
    • hasContent

      public boolean hasContent()
       A struct of custom fields to explain the insight.
       Example: "grantedPermissionsCount": "1000"
       
      .google.protobuf.Struct content = 3;
      Specified by:
      hasContent in interface InsightOrBuilder
      Returns:
      Whether the content field is set.
    • getContent

      public com.google.protobuf.Struct getContent()
       A struct of custom fields to explain the insight.
       Example: "grantedPermissionsCount": "1000"
       
      .google.protobuf.Struct content = 3;
      Specified by:
      getContent in interface InsightOrBuilder
      Returns:
      The content.
    • setContent

      public Insight.Builder setContent(com.google.protobuf.Struct value)
       A struct of custom fields to explain the insight.
       Example: "grantedPermissionsCount": "1000"
       
      .google.protobuf.Struct content = 3;
    • setContent

      public Insight.Builder setContent(com.google.protobuf.Struct.Builder builderForValue)
       A struct of custom fields to explain the insight.
       Example: "grantedPermissionsCount": "1000"
       
      .google.protobuf.Struct content = 3;
    • mergeContent

      public Insight.Builder mergeContent(com.google.protobuf.Struct value)
       A struct of custom fields to explain the insight.
       Example: "grantedPermissionsCount": "1000"
       
      .google.protobuf.Struct content = 3;
    • clearContent

      public Insight.Builder clearContent()
       A struct of custom fields to explain the insight.
       Example: "grantedPermissionsCount": "1000"
       
      .google.protobuf.Struct content = 3;
    • getContentBuilder

      public com.google.protobuf.Struct.Builder getContentBuilder()
       A struct of custom fields to explain the insight.
       Example: "grantedPermissionsCount": "1000"
       
      .google.protobuf.Struct content = 3;
    • getContentOrBuilder

      public com.google.protobuf.StructOrBuilder getContentOrBuilder()
       A struct of custom fields to explain the insight.
       Example: "grantedPermissionsCount": "1000"
       
      .google.protobuf.Struct content = 3;
      Specified by:
      getContentOrBuilder in interface InsightOrBuilder
    • hasLastRefreshTime

      public boolean hasLastRefreshTime()
       Timestamp of the latest data used to generate the insight.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
      Specified by:
      hasLastRefreshTime in interface InsightOrBuilder
      Returns:
      Whether the lastRefreshTime field is set.
    • getLastRefreshTime

      public com.google.protobuf.Timestamp getLastRefreshTime()
       Timestamp of the latest data used to generate the insight.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
      Specified by:
      getLastRefreshTime in interface InsightOrBuilder
      Returns:
      The lastRefreshTime.
    • setLastRefreshTime

      public Insight.Builder setLastRefreshTime(com.google.protobuf.Timestamp value)
       Timestamp of the latest data used to generate the insight.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
    • setLastRefreshTime

      public Insight.Builder setLastRefreshTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp of the latest data used to generate the insight.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
    • mergeLastRefreshTime

      public Insight.Builder mergeLastRefreshTime(com.google.protobuf.Timestamp value)
       Timestamp of the latest data used to generate the insight.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
    • clearLastRefreshTime

      public Insight.Builder clearLastRefreshTime()
       Timestamp of the latest data used to generate the insight.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
    • getLastRefreshTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastRefreshTimeBuilder()
       Timestamp of the latest data used to generate the insight.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
    • getLastRefreshTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastRefreshTimeOrBuilder()
       Timestamp of the latest data used to generate the insight.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
      Specified by:
      getLastRefreshTimeOrBuilder in interface InsightOrBuilder
    • hasObservationPeriod

      public boolean hasObservationPeriod()
       Observation period that led to the insight. The source data used to
       generate the insight ends at last_refresh_time and begins at
       (last_refresh_time - observation_period).
       
      .google.protobuf.Duration observation_period = 5;
      Specified by:
      hasObservationPeriod in interface InsightOrBuilder
      Returns:
      Whether the observationPeriod field is set.
    • getObservationPeriod

      public com.google.protobuf.Duration getObservationPeriod()
       Observation period that led to the insight. The source data used to
       generate the insight ends at last_refresh_time and begins at
       (last_refresh_time - observation_period).
       
      .google.protobuf.Duration observation_period = 5;
      Specified by:
      getObservationPeriod in interface InsightOrBuilder
      Returns:
      The observationPeriod.
    • setObservationPeriod

      public Insight.Builder setObservationPeriod(com.google.protobuf.Duration value)
       Observation period that led to the insight. The source data used to
       generate the insight ends at last_refresh_time and begins at
       (last_refresh_time - observation_period).
       
      .google.protobuf.Duration observation_period = 5;
    • setObservationPeriod

      public Insight.Builder setObservationPeriod(com.google.protobuf.Duration.Builder builderForValue)
       Observation period that led to the insight. The source data used to
       generate the insight ends at last_refresh_time and begins at
       (last_refresh_time - observation_period).
       
      .google.protobuf.Duration observation_period = 5;
    • mergeObservationPeriod

      public Insight.Builder mergeObservationPeriod(com.google.protobuf.Duration value)
       Observation period that led to the insight. The source data used to
       generate the insight ends at last_refresh_time and begins at
       (last_refresh_time - observation_period).
       
      .google.protobuf.Duration observation_period = 5;
    • clearObservationPeriod

      public Insight.Builder clearObservationPeriod()
       Observation period that led to the insight. The source data used to
       generate the insight ends at last_refresh_time and begins at
       (last_refresh_time - observation_period).
       
      .google.protobuf.Duration observation_period = 5;
    • getObservationPeriodBuilder

      public com.google.protobuf.Duration.Builder getObservationPeriodBuilder()
       Observation period that led to the insight. The source data used to
       generate the insight ends at last_refresh_time and begins at
       (last_refresh_time - observation_period).
       
      .google.protobuf.Duration observation_period = 5;
    • getObservationPeriodOrBuilder

      public com.google.protobuf.DurationOrBuilder getObservationPeriodOrBuilder()
       Observation period that led to the insight. The source data used to
       generate the insight ends at last_refresh_time and begins at
       (last_refresh_time - observation_period).
       
      .google.protobuf.Duration observation_period = 5;
      Specified by:
      getObservationPeriodOrBuilder in interface InsightOrBuilder
    • hasStateInfo

      public boolean hasStateInfo()
       Information state and metadata.
       
      .google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
      Specified by:
      hasStateInfo in interface InsightOrBuilder
      Returns:
      Whether the stateInfo field is set.
    • getStateInfo

      public InsightStateInfo getStateInfo()
       Information state and metadata.
       
      .google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
      Specified by:
      getStateInfo in interface InsightOrBuilder
      Returns:
      The stateInfo.
    • setStateInfo

      public Insight.Builder setStateInfo(InsightStateInfo value)
       Information state and metadata.
       
      .google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
    • setStateInfo

      public Insight.Builder setStateInfo(InsightStateInfo.Builder builderForValue)
       Information state and metadata.
       
      .google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
    • mergeStateInfo

      public Insight.Builder mergeStateInfo(InsightStateInfo value)
       Information state and metadata.
       
      .google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
    • clearStateInfo

      public Insight.Builder clearStateInfo()
       Information state and metadata.
       
      .google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
    • getStateInfoBuilder

      public InsightStateInfo.Builder getStateInfoBuilder()
       Information state and metadata.
       
      .google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
    • getStateInfoOrBuilder

      public InsightStateInfoOrBuilder getStateInfoOrBuilder()
       Information state and metadata.
       
      .google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
      Specified by:
      getStateInfoOrBuilder in interface InsightOrBuilder
    • getCategoryValue

      public int getCategoryValue()
       Category being targeted by the insight.
       
      .google.cloud.recommender.v1beta1.Insight.Category category = 7;
      Specified by:
      getCategoryValue in interface InsightOrBuilder
      Returns:
      The enum numeric value on the wire for category.
    • setCategoryValue

      public Insight.Builder setCategoryValue(int value)
       Category being targeted by the insight.
       
      .google.cloud.recommender.v1beta1.Insight.Category category = 7;
      Parameters:
      value - The enum numeric value on the wire for category to set.
      Returns:
      This builder for chaining.
    • getCategory

      public Insight.Category getCategory()
       Category being targeted by the insight.
       
      .google.cloud.recommender.v1beta1.Insight.Category category = 7;
      Specified by:
      getCategory in interface InsightOrBuilder
      Returns:
      The category.
    • setCategory

      public Insight.Builder setCategory(Insight.Category value)
       Category being targeted by the insight.
       
      .google.cloud.recommender.v1beta1.Insight.Category category = 7;
      Parameters:
      value - The category to set.
      Returns:
      This builder for chaining.
    • clearCategory

      public Insight.Builder clearCategory()
       Category being targeted by the insight.
       
      .google.cloud.recommender.v1beta1.Insight.Category category = 7;
      Returns:
      This builder for chaining.
    • getSeverityValue

      public int getSeverityValue()
       Insight's severity.
       
      .google.cloud.recommender.v1beta1.Insight.Severity severity = 15;
      Specified by:
      getSeverityValue in interface InsightOrBuilder
      Returns:
      The enum numeric value on the wire for severity.
    • setSeverityValue

      public Insight.Builder setSeverityValue(int value)
       Insight's severity.
       
      .google.cloud.recommender.v1beta1.Insight.Severity severity = 15;
      Parameters:
      value - The enum numeric value on the wire for severity to set.
      Returns:
      This builder for chaining.
    • getSeverity

      public Insight.Severity getSeverity()
       Insight's severity.
       
      .google.cloud.recommender.v1beta1.Insight.Severity severity = 15;
      Specified by:
      getSeverity in interface InsightOrBuilder
      Returns:
      The severity.
    • setSeverity

      public Insight.Builder setSeverity(Insight.Severity value)
       Insight's severity.
       
      .google.cloud.recommender.v1beta1.Insight.Severity severity = 15;
      Parameters:
      value - The severity to set.
      Returns:
      This builder for chaining.
    • clearSeverity

      public Insight.Builder clearSeverity()
       Insight's severity.
       
      .google.cloud.recommender.v1beta1.Insight.Severity severity = 15;
      Returns:
      This builder for chaining.
    • getEtag

      public String getEtag()
       Fingerprint of the Insight. Provides optimistic locking when updating
       states.
       
      string etag = 11;
      Specified by:
      getEtag in interface InsightOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Fingerprint of the Insight. Provides optimistic locking when updating
       states.
       
      string etag = 11;
      Specified by:
      getEtagBytes in interface InsightOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public Insight.Builder setEtag(String value)
       Fingerprint of the Insight. Provides optimistic locking when updating
       states.
       
      string etag = 11;
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public Insight.Builder clearEtag()
       Fingerprint of the Insight. Provides optimistic locking when updating
       states.
       
      string etag = 11;
      Returns:
      This builder for chaining.
    • setEtagBytes

      public Insight.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Fingerprint of the Insight. Provides optimistic locking when updating
       states.
       
      string etag = 11;
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • getAssociatedRecommendationsList

      public List<Insight.RecommendationReference> getAssociatedRecommendationsList()
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
      Specified by:
      getAssociatedRecommendationsList in interface InsightOrBuilder
    • getAssociatedRecommendationsCount

      public int getAssociatedRecommendationsCount()
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
      Specified by:
      getAssociatedRecommendationsCount in interface InsightOrBuilder
    • getAssociatedRecommendations

      public Insight.RecommendationReference getAssociatedRecommendations(int index)
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
      Specified by:
      getAssociatedRecommendations in interface InsightOrBuilder
    • setAssociatedRecommendations

      public Insight.Builder setAssociatedRecommendations(int index, Insight.RecommendationReference value)
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
    • setAssociatedRecommendations

      public Insight.Builder setAssociatedRecommendations(int index, Insight.RecommendationReference.Builder builderForValue)
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
    • addAssociatedRecommendations

      public Insight.Builder addAssociatedRecommendations(Insight.RecommendationReference value)
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
    • addAssociatedRecommendations

      public Insight.Builder addAssociatedRecommendations(int index, Insight.RecommendationReference value)
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
    • addAssociatedRecommendations

      public Insight.Builder addAssociatedRecommendations(Insight.RecommendationReference.Builder builderForValue)
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
    • addAssociatedRecommendations

      public Insight.Builder addAssociatedRecommendations(int index, Insight.RecommendationReference.Builder builderForValue)
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
    • addAllAssociatedRecommendations

      public Insight.Builder addAllAssociatedRecommendations(Iterable<? extends Insight.RecommendationReference> values)
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
    • clearAssociatedRecommendations

      public Insight.Builder clearAssociatedRecommendations()
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
    • removeAssociatedRecommendations

      public Insight.Builder removeAssociatedRecommendations(int index)
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
    • getAssociatedRecommendationsBuilder

      public Insight.RecommendationReference.Builder getAssociatedRecommendationsBuilder(int index)
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
    • getAssociatedRecommendationsOrBuilder

      public Insight.RecommendationReferenceOrBuilder getAssociatedRecommendationsOrBuilder(int index)
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
      Specified by:
      getAssociatedRecommendationsOrBuilder in interface InsightOrBuilder
    • getAssociatedRecommendationsOrBuilderList

      public List<? extends Insight.RecommendationReferenceOrBuilder> getAssociatedRecommendationsOrBuilderList()
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
      Specified by:
      getAssociatedRecommendationsOrBuilderList in interface InsightOrBuilder
    • addAssociatedRecommendationsBuilder

      public Insight.RecommendationReference.Builder addAssociatedRecommendationsBuilder()
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
    • addAssociatedRecommendationsBuilder

      public Insight.RecommendationReference.Builder addAssociatedRecommendationsBuilder(int index)
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
    • getAssociatedRecommendationsBuilderList

      public List<Insight.RecommendationReference.Builder> getAssociatedRecommendationsBuilderList()
       Recommendations derived from this insight.
       
      repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;