Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Recommendation.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
      • setField

        public Recommendation.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
      • clearField

        public Recommendation.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
      • clearOneof

        public Recommendation.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
      • setRepeatedField

        public Recommendation.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
      • addRepeatedField

        public Recommendation.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Recommendation.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.
      • 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;
      • 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;
      • 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.
      • 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;
      • 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.
      • 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
      • 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;
      • 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;
      • 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;
      • 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.
      • setUnknownFields

        public final Recommendation.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
      • mergeUnknownFields

        public final Recommendation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>