Interface RecommendationOrBuilder (2.5.0)

public interface RecommendationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAdditionalImpact(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Impact

getAdditionalImpactCount()

public abstract 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;

Returns
TypeDescription
int

getAdditionalImpactList()

public abstract 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;

Returns
TypeDescription
List<Impact>

getAdditionalImpactOrBuilder(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
ImpactOrBuilder

getAdditionalImpactOrBuilderList()

public abstract 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;

Returns
TypeDescription
List<? extends com.google.cloud.recommender.v1beta1.ImpactOrBuilder>

getAssociatedInsights(int index)

public abstract Recommendation.InsightReference getAssociatedInsights(int index)

Insights that led to this recommendation.

repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
Recommendation.InsightReference

getAssociatedInsightsCount()

public abstract int getAssociatedInsightsCount()

Insights that led to this recommendation.

repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;

Returns
TypeDescription
int

getAssociatedInsightsList()

public abstract List<Recommendation.InsightReference> getAssociatedInsightsList()

Insights that led to this recommendation.

repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;

Returns
TypeDescription
List<InsightReference>

getAssociatedInsightsOrBuilder(int index)

public abstract Recommendation.InsightReferenceOrBuilder getAssociatedInsightsOrBuilder(int index)

Insights that led to this recommendation.

repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
Recommendation.InsightReferenceOrBuilder

getAssociatedInsightsOrBuilderList()

public abstract List<? extends Recommendation.InsightReferenceOrBuilder> getAssociatedInsightsOrBuilderList()

Insights that led to this recommendation.

repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;

Returns
TypeDescription
List<? extends com.google.cloud.recommender.v1beta1.Recommendation.InsightReferenceOrBuilder>

getContent()

public abstract RecommendationContent getContent()

Content of the recommendation describing recommended changes to resources.

.google.cloud.recommender.v1beta1.RecommendationContent content = 7;

Returns
TypeDescription
RecommendationContent

The content.

getContentOrBuilder()

public abstract RecommendationContentOrBuilder getContentOrBuilder()

Content of the recommendation describing recommended changes to resources.

.google.cloud.recommender.v1beta1.RecommendationContent content = 7;

Returns
TypeDescription
RecommendationContentOrBuilder

getDescription()

public abstract String getDescription()

Free-form human readable summary in English. The maximum length is 500 characters.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

Free-form human readable summary in English. The maximum length is 500 characters.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getEtag()

public abstract String getEtag()

Fingerprint of the Recommendation. Provides optimistic locking when updating states.

string etag = 11;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public abstract ByteString getEtagBytes()

Fingerprint of the Recommendation. Provides optimistic locking when updating states.

string etag = 11;

Returns
TypeDescription
ByteString

The bytes for etag.

getLastRefreshTime()

public abstract 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;

Returns
TypeDescription
Timestamp

The lastRefreshTime.

getLastRefreshTimeOrBuilder()

public abstract 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;

Returns
TypeDescription
TimestampOrBuilder

getName()

public abstract String getName()

Name of recommendation.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Name of recommendation.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPrimaryImpact()

public abstract 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;

Returns
TypeDescription
Impact

The primaryImpact.

getPrimaryImpactOrBuilder()

public abstract 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;

Returns
TypeDescription
ImpactOrBuilder

getPriority()

public abstract Recommendation.Priority getPriority()

Recommendation's priority.

.google.cloud.recommender.v1beta1.Recommendation.Priority priority = 17;

Returns
TypeDescription
Recommendation.Priority

The priority.

getPriorityValue()

public abstract int getPriorityValue()

Recommendation's priority.

.google.cloud.recommender.v1beta1.Recommendation.Priority priority = 17;

Returns
TypeDescription
int

The enum numeric value on the wire for priority.

getRecommenderSubtype()

public abstract 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;

Returns
TypeDescription
String

The recommenderSubtype.

getRecommenderSubtypeBytes()

public abstract 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;

Returns
TypeDescription
ByteString

The bytes for recommenderSubtype.

getStateInfo()

public abstract RecommendationStateInfo getStateInfo()

Information for state. Contains state and metadata.

.google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;

Returns
TypeDescription
RecommendationStateInfo

The stateInfo.

getStateInfoOrBuilder()

public abstract RecommendationStateInfoOrBuilder getStateInfoOrBuilder()

Information for state. Contains state and metadata.

.google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;

Returns
TypeDescription
RecommendationStateInfoOrBuilder

getXorGroupId()

public abstract 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;

Returns
TypeDescription
String

The xorGroupId.

getXorGroupIdBytes()

public abstract 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;

Returns
TypeDescription
ByteString

The bytes for xorGroupId.

hasContent()

public abstract boolean hasContent()

Content of the recommendation describing recommended changes to resources.

.google.cloud.recommender.v1beta1.RecommendationContent content = 7;

Returns
TypeDescription
boolean

Whether the content field is set.

hasLastRefreshTime()

public abstract 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;

Returns
TypeDescription
boolean

Whether the lastRefreshTime field is set.

hasPrimaryImpact()

public abstract 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;

Returns
TypeDescription
boolean

Whether the primaryImpact field is set.

hasStateInfo()

public abstract boolean hasStateInfo()

Information for state. Contains state and metadata.

.google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;

Returns
TypeDescription
boolean

Whether the stateInfo field is set.