Class Recommendation.Builder

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

public static final class Recommendation.Builder extends com.google.protobuf.GeneratedMessage.Builder<Recommendation.Builder> implements RecommendationOrBuilder
 A recommendation along with a suggested action. E.g., a rightsizing
 recommendation for an underutilized VM, IAM role recommendations, etc
 
Protobuf type google.cloud.recommender.v1beta1.Recommendation
  • 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<Recommendation.Builder>
    • clear

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

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

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

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

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

      public Recommendation.Builder mergeFrom(Recommendation other)
    • isInitialized

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

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

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

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

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

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

      public Recommendation.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of recommendation.
       
      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 RecommendationOrBuilder
      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 RecommendationOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Recommendation.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 Recommendation.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 Recommendation.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.
    • getRecommenderSubtype

      public String getRecommenderSubtype()
       Contains an identifier for a subtype of recommendations produced for the
       same recommender. Subtype is a function of content and impact, meaning a
       new subtype might be added when significant changes to `content` or
       `primary_impact.category` are introduced. See the Recommenders section
       to see a list of subtypes for a given Recommender.
      
       Examples:
       For recommender = "google.iam.policy.Recommender",
       recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE"
       
      string recommender_subtype = 12;
      Specified by:
      getRecommenderSubtype in interface RecommendationOrBuilder
      Returns:
      The recommenderSubtype.
    • getRecommenderSubtypeBytes

      public com.google.protobuf.ByteString getRecommenderSubtypeBytes()
       Contains an identifier for a subtype of recommendations produced for the
       same recommender. Subtype is a function of content and impact, meaning a
       new subtype might be added when significant changes to `content` or
       `primary_impact.category` are introduced. See the Recommenders section
       to see a list of subtypes for a given Recommender.
      
       Examples:
       For recommender = "google.iam.policy.Recommender",
       recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE"
       
      string recommender_subtype = 12;
      Specified by:
      getRecommenderSubtypeBytes in interface RecommendationOrBuilder
      Returns:
      The bytes for recommenderSubtype.
    • setRecommenderSubtype

      public Recommendation.Builder setRecommenderSubtype(String value)
       Contains an identifier for a subtype of recommendations produced for the
       same recommender. Subtype is a function of content and impact, meaning a
       new subtype might be added when significant changes to `content` or
       `primary_impact.category` are introduced. See the Recommenders section
       to see a list of subtypes for a given Recommender.
      
       Examples:
       For recommender = "google.iam.policy.Recommender",
       recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE"
       
      string recommender_subtype = 12;
      Parameters:
      value - The recommenderSubtype to set.
      Returns:
      This builder for chaining.
    • clearRecommenderSubtype

      public Recommendation.Builder clearRecommenderSubtype()
       Contains an identifier for a subtype of recommendations produced for the
       same recommender. Subtype is a function of content and impact, meaning a
       new subtype might be added when significant changes to `content` or
       `primary_impact.category` are introduced. See the Recommenders section
       to see a list of subtypes for a given Recommender.
      
       Examples:
       For recommender = "google.iam.policy.Recommender",
       recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE"
       
      string recommender_subtype = 12;
      Returns:
      This builder for chaining.
    • setRecommenderSubtypeBytes

      public Recommendation.Builder setRecommenderSubtypeBytes(com.google.protobuf.ByteString value)
       Contains an identifier for a subtype of recommendations produced for the
       same recommender. Subtype is a function of content and impact, meaning a
       new subtype might be added when significant changes to `content` or
       `primary_impact.category` are introduced. See the Recommenders section
       to see a list of subtypes for a given Recommender.
      
       Examples:
       For recommender = "google.iam.policy.Recommender",
       recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE"
       
      string recommender_subtype = 12;
      Parameters:
      value - The bytes for recommenderSubtype to set.
      Returns:
      This builder for chaining.
    • hasLastRefreshTime

      public boolean hasLastRefreshTime()
       Last time this recommendation was refreshed by the system that created it
       in the first place.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
      Specified by:
      hasLastRefreshTime in interface RecommendationOrBuilder
      Returns:
      Whether the lastRefreshTime field is set.
    • getLastRefreshTime

      public com.google.protobuf.Timestamp getLastRefreshTime()
       Last time this recommendation was refreshed by the system that created it
       in the first place.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
      Specified by:
      getLastRefreshTime in interface RecommendationOrBuilder
      Returns:
      The lastRefreshTime.
    • setLastRefreshTime

      public Recommendation.Builder setLastRefreshTime(com.google.protobuf.Timestamp value)
       Last time this recommendation was refreshed by the system that created it
       in the first place.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
    • setLastRefreshTime

      public Recommendation.Builder setLastRefreshTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Last time this recommendation was refreshed by the system that created it
       in the first place.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
    • mergeLastRefreshTime

      public Recommendation.Builder mergeLastRefreshTime(com.google.protobuf.Timestamp value)
       Last time this recommendation was refreshed by the system that created it
       in the first place.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
    • clearLastRefreshTime

      public Recommendation.Builder clearLastRefreshTime()
       Last time this recommendation was refreshed by the system that created it
       in the first place.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
    • getLastRefreshTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastRefreshTimeBuilder()
       Last time this recommendation was refreshed by the system that created it
       in the first place.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
    • getLastRefreshTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastRefreshTimeOrBuilder()
       Last time this recommendation was refreshed by the system that created it
       in the first place.
       
      .google.protobuf.Timestamp last_refresh_time = 4;
      Specified by:
      getLastRefreshTimeOrBuilder in interface RecommendationOrBuilder
    • hasPrimaryImpact

      public boolean hasPrimaryImpact()
       The primary impact that this recommendation can have while trying to
       optimize for one category.
       
      .google.cloud.recommender.v1beta1.Impact primary_impact = 5;
      Specified by:
      hasPrimaryImpact in interface RecommendationOrBuilder
      Returns:
      Whether the primaryImpact field is set.
    • getPrimaryImpact

      public Impact getPrimaryImpact()
       The primary impact that this recommendation can have while trying to
       optimize for one category.
       
      .google.cloud.recommender.v1beta1.Impact primary_impact = 5;
      Specified by:
      getPrimaryImpact in interface RecommendationOrBuilder
      Returns:
      The primaryImpact.
    • setPrimaryImpact

      public Recommendation.Builder setPrimaryImpact(Impact value)
       The primary impact that this recommendation can have while trying to
       optimize for one category.
       
      .google.cloud.recommender.v1beta1.Impact primary_impact = 5;
    • setPrimaryImpact

      public Recommendation.Builder setPrimaryImpact(Impact.Builder builderForValue)
       The primary impact that this recommendation can have while trying to
       optimize for one category.
       
      .google.cloud.recommender.v1beta1.Impact primary_impact = 5;
    • mergePrimaryImpact

      public Recommendation.Builder mergePrimaryImpact(Impact value)
       The primary impact that this recommendation can have while trying to
       optimize for one category.
       
      .google.cloud.recommender.v1beta1.Impact primary_impact = 5;
    • clearPrimaryImpact

      public Recommendation.Builder clearPrimaryImpact()
       The primary impact that this recommendation can have while trying to
       optimize for one category.
       
      .google.cloud.recommender.v1beta1.Impact primary_impact = 5;
    • getPrimaryImpactBuilder

      public Impact.Builder getPrimaryImpactBuilder()
       The primary impact that this recommendation can have while trying to
       optimize for one category.
       
      .google.cloud.recommender.v1beta1.Impact primary_impact = 5;
    • getPrimaryImpactOrBuilder

      public ImpactOrBuilder getPrimaryImpactOrBuilder()
       The primary impact that this recommendation can have while trying to
       optimize for one category.
       
      .google.cloud.recommender.v1beta1.Impact primary_impact = 5;
      Specified by:
      getPrimaryImpactOrBuilder in interface RecommendationOrBuilder
    • getAdditionalImpactList

      public List<Impact> getAdditionalImpactList()
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
      Specified by:
      getAdditionalImpactList in interface RecommendationOrBuilder
    • getAdditionalImpactCount

      public int getAdditionalImpactCount()
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
      Specified by:
      getAdditionalImpactCount in interface RecommendationOrBuilder
    • getAdditionalImpact

      public Impact getAdditionalImpact(int index)
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
      Specified by:
      getAdditionalImpact in interface RecommendationOrBuilder
    • setAdditionalImpact

      public Recommendation.Builder setAdditionalImpact(int index, Impact value)
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
    • setAdditionalImpact

      public Recommendation.Builder setAdditionalImpact(int index, Impact.Builder builderForValue)
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
    • addAdditionalImpact

      public Recommendation.Builder addAdditionalImpact(Impact value)
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
    • addAdditionalImpact

      public Recommendation.Builder addAdditionalImpact(int index, Impact value)
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
    • addAdditionalImpact

      public Recommendation.Builder addAdditionalImpact(Impact.Builder builderForValue)
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
    • addAdditionalImpact

      public Recommendation.Builder addAdditionalImpact(int index, Impact.Builder builderForValue)
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
    • addAllAdditionalImpact

      public Recommendation.Builder addAllAdditionalImpact(Iterable<? extends Impact> values)
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
    • clearAdditionalImpact

      public Recommendation.Builder clearAdditionalImpact()
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
    • removeAdditionalImpact

      public Recommendation.Builder removeAdditionalImpact(int index)
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
    • getAdditionalImpactBuilder

      public Impact.Builder getAdditionalImpactBuilder(int index)
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
    • getAdditionalImpactOrBuilder

      public ImpactOrBuilder getAdditionalImpactOrBuilder(int index)
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
      Specified by:
      getAdditionalImpactOrBuilder in interface RecommendationOrBuilder
    • getAdditionalImpactOrBuilderList

      public List<? extends ImpactOrBuilder> getAdditionalImpactOrBuilderList()
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
      Specified by:
      getAdditionalImpactOrBuilderList in interface RecommendationOrBuilder
    • addAdditionalImpactBuilder

      public Impact.Builder addAdditionalImpactBuilder()
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
    • addAdditionalImpactBuilder

      public Impact.Builder addAdditionalImpactBuilder(int index)
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
    • getAdditionalImpactBuilderList

      public List<Impact.Builder> getAdditionalImpactBuilderList()
       Optional set of additional impact that this recommendation may have when
       trying to optimize for the primary category. These may be positive
       or negative.
       
      repeated .google.cloud.recommender.v1beta1.Impact additional_impact = 6;
    • getPriorityValue

      public int getPriorityValue()
       Recommendation's priority.
       
      .google.cloud.recommender.v1beta1.Recommendation.Priority priority = 17;
      Specified by:
      getPriorityValue in interface RecommendationOrBuilder
      Returns:
      The enum numeric value on the wire for priority.
    • setPriorityValue

      public Recommendation.Builder setPriorityValue(int value)
       Recommendation's priority.
       
      .google.cloud.recommender.v1beta1.Recommendation.Priority priority = 17;
      Parameters:
      value - The enum numeric value on the wire for priority to set.
      Returns:
      This builder for chaining.
    • getPriority

      public Recommendation.Priority getPriority()
       Recommendation's priority.
       
      .google.cloud.recommender.v1beta1.Recommendation.Priority priority = 17;
      Specified by:
      getPriority in interface RecommendationOrBuilder
      Returns:
      The priority.
    • setPriority

      public Recommendation.Builder setPriority(Recommendation.Priority value)
       Recommendation's priority.
       
      .google.cloud.recommender.v1beta1.Recommendation.Priority priority = 17;
      Parameters:
      value - The priority to set.
      Returns:
      This builder for chaining.
    • clearPriority

      public Recommendation.Builder clearPriority()
       Recommendation's priority.
       
      .google.cloud.recommender.v1beta1.Recommendation.Priority priority = 17;
      Returns:
      This builder for chaining.
    • hasContent

      public boolean hasContent()
       Content of the recommendation describing recommended changes to resources.
       
      .google.cloud.recommender.v1beta1.RecommendationContent content = 7;
      Specified by:
      hasContent in interface RecommendationOrBuilder
      Returns:
      Whether the content field is set.
    • getContent

      public RecommendationContent getContent()
       Content of the recommendation describing recommended changes to resources.
       
      .google.cloud.recommender.v1beta1.RecommendationContent content = 7;
      Specified by:
      getContent in interface RecommendationOrBuilder
      Returns:
      The content.
    • setContent

      public Recommendation.Builder setContent(RecommendationContent value)
       Content of the recommendation describing recommended changes to resources.
       
      .google.cloud.recommender.v1beta1.RecommendationContent content = 7;
    • setContent

      public Recommendation.Builder setContent(RecommendationContent.Builder builderForValue)
       Content of the recommendation describing recommended changes to resources.
       
      .google.cloud.recommender.v1beta1.RecommendationContent content = 7;
    • mergeContent

      public Recommendation.Builder mergeContent(RecommendationContent value)
       Content of the recommendation describing recommended changes to resources.
       
      .google.cloud.recommender.v1beta1.RecommendationContent content = 7;
    • clearContent

      public Recommendation.Builder clearContent()
       Content of the recommendation describing recommended changes to resources.
       
      .google.cloud.recommender.v1beta1.RecommendationContent content = 7;
    • getContentBuilder

      public RecommendationContent.Builder getContentBuilder()
       Content of the recommendation describing recommended changes to resources.
       
      .google.cloud.recommender.v1beta1.RecommendationContent content = 7;
    • getContentOrBuilder

      public RecommendationContentOrBuilder getContentOrBuilder()
       Content of the recommendation describing recommended changes to resources.
       
      .google.cloud.recommender.v1beta1.RecommendationContent content = 7;
      Specified by:
      getContentOrBuilder in interface RecommendationOrBuilder
    • hasStateInfo

      public boolean hasStateInfo()
       Information for state. Contains state and metadata.
       
      .google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;
      Specified by:
      hasStateInfo in interface RecommendationOrBuilder
      Returns:
      Whether the stateInfo field is set.
    • getStateInfo

      public RecommendationStateInfo getStateInfo()
       Information for state. Contains state and metadata.
       
      .google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;
      Specified by:
      getStateInfo in interface RecommendationOrBuilder
      Returns:
      The stateInfo.
    • setStateInfo

      public Recommendation.Builder setStateInfo(RecommendationStateInfo value)
       Information for state. Contains state and metadata.
       
      .google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;
    • setStateInfo

      public Recommendation.Builder setStateInfo(RecommendationStateInfo.Builder builderForValue)
       Information for state. Contains state and metadata.
       
      .google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;
    • mergeStateInfo

      public Recommendation.Builder mergeStateInfo(RecommendationStateInfo value)
       Information for state. Contains state and metadata.
       
      .google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;
    • clearStateInfo

      public Recommendation.Builder clearStateInfo()
       Information for state. Contains state and metadata.
       
      .google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;
    • getStateInfoBuilder

      public RecommendationStateInfo.Builder getStateInfoBuilder()
       Information for state. Contains state and metadata.
       
      .google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;
    • getStateInfoOrBuilder

      public RecommendationStateInfoOrBuilder getStateInfoOrBuilder()
       Information for state. Contains state and metadata.
       
      .google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;
      Specified by:
      getStateInfoOrBuilder in interface RecommendationOrBuilder
    • getEtag

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

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

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

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

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

      public List<Recommendation.InsightReference> getAssociatedInsightsList()
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
      Specified by:
      getAssociatedInsightsList in interface RecommendationOrBuilder
    • getAssociatedInsightsCount

      public int getAssociatedInsightsCount()
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
      Specified by:
      getAssociatedInsightsCount in interface RecommendationOrBuilder
    • getAssociatedInsights

      public Recommendation.InsightReference getAssociatedInsights(int index)
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
      Specified by:
      getAssociatedInsights in interface RecommendationOrBuilder
    • setAssociatedInsights

      public Recommendation.Builder setAssociatedInsights(int index, Recommendation.InsightReference value)
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
    • setAssociatedInsights

      public Recommendation.Builder setAssociatedInsights(int index, Recommendation.InsightReference.Builder builderForValue)
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
    • addAssociatedInsights

      public Recommendation.Builder addAssociatedInsights(Recommendation.InsightReference value)
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
    • addAssociatedInsights

      public Recommendation.Builder addAssociatedInsights(int index, Recommendation.InsightReference value)
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
    • addAssociatedInsights

      public Recommendation.Builder addAssociatedInsights(Recommendation.InsightReference.Builder builderForValue)
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
    • addAssociatedInsights

      public Recommendation.Builder addAssociatedInsights(int index, Recommendation.InsightReference.Builder builderForValue)
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
    • addAllAssociatedInsights

      public Recommendation.Builder addAllAssociatedInsights(Iterable<? extends Recommendation.InsightReference> values)
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
    • clearAssociatedInsights

      public Recommendation.Builder clearAssociatedInsights()
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
    • removeAssociatedInsights

      public Recommendation.Builder removeAssociatedInsights(int index)
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
    • getAssociatedInsightsBuilder

      public Recommendation.InsightReference.Builder getAssociatedInsightsBuilder(int index)
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
    • getAssociatedInsightsOrBuilder

      public Recommendation.InsightReferenceOrBuilder getAssociatedInsightsOrBuilder(int index)
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
      Specified by:
      getAssociatedInsightsOrBuilder in interface RecommendationOrBuilder
    • getAssociatedInsightsOrBuilderList

      public List<? extends Recommendation.InsightReferenceOrBuilder> getAssociatedInsightsOrBuilderList()
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
      Specified by:
      getAssociatedInsightsOrBuilderList in interface RecommendationOrBuilder
    • addAssociatedInsightsBuilder

      public Recommendation.InsightReference.Builder addAssociatedInsightsBuilder()
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
    • addAssociatedInsightsBuilder

      public Recommendation.InsightReference.Builder addAssociatedInsightsBuilder(int index)
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
    • getAssociatedInsightsBuilderList

      public List<Recommendation.InsightReference.Builder> getAssociatedInsightsBuilderList()
       Insights that led to this recommendation.
       
      repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;
    • getXorGroupId

      public String getXorGroupId()
       Corresponds to a mutually exclusive group ID within a recommender.
       A non-empty ID indicates that the recommendation belongs to a mutually
       exclusive group. This means that only one recommendation within the group
       is suggested to be applied.
       
      string xor_group_id = 18;
      Specified by:
      getXorGroupId in interface RecommendationOrBuilder
      Returns:
      The xorGroupId.
    • getXorGroupIdBytes

      public com.google.protobuf.ByteString getXorGroupIdBytes()
       Corresponds to a mutually exclusive group ID within a recommender.
       A non-empty ID indicates that the recommendation belongs to a mutually
       exclusive group. This means that only one recommendation within the group
       is suggested to be applied.
       
      string xor_group_id = 18;
      Specified by:
      getXorGroupIdBytes in interface RecommendationOrBuilder
      Returns:
      The bytes for xorGroupId.
    • setXorGroupId

      public Recommendation.Builder setXorGroupId(String value)
       Corresponds to a mutually exclusive group ID within a recommender.
       A non-empty ID indicates that the recommendation belongs to a mutually
       exclusive group. This means that only one recommendation within the group
       is suggested to be applied.
       
      string xor_group_id = 18;
      Parameters:
      value - The xorGroupId to set.
      Returns:
      This builder for chaining.
    • clearXorGroupId

      public Recommendation.Builder clearXorGroupId()
       Corresponds to a mutually exclusive group ID within a recommender.
       A non-empty ID indicates that the recommendation belongs to a mutually
       exclusive group. This means that only one recommendation within the group
       is suggested to be applied.
       
      string xor_group_id = 18;
      Returns:
      This builder for chaining.
    • setXorGroupIdBytes

      public Recommendation.Builder setXorGroupIdBytes(com.google.protobuf.ByteString value)
       Corresponds to a mutually exclusive group ID within a recommender.
       A non-empty ID indicates that the recommendation belongs to a mutually
       exclusive group. This means that only one recommendation within the group
       is suggested to be applied.
       
      string xor_group_id = 18;
      Parameters:
      value - The bytes for xorGroupId to set.
      Returns:
      This builder for chaining.