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, etcProtobuf type
google.cloud.recommender.v1beta1.Recommendation-
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalImpact(int index, Impact value) Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.addAdditionalImpact(int index, Impact.Builder builderForValue) Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.addAdditionalImpact(Impact value) Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.addAdditionalImpact(Impact.Builder builderForValue) Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.addAdditionalImpactBuilder(int index) Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.addAllAdditionalImpact(Iterable<? extends Impact> values) Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.addAllAssociatedInsights(Iterable<? extends Recommendation.InsightReference> values) Insights that led to this recommendation.addAssociatedInsights(int index, Recommendation.InsightReference value) Insights that led to this recommendation.addAssociatedInsights(int index, Recommendation.InsightReference.Builder builderForValue) Insights that led to this recommendation.Insights that led to this recommendation.addAssociatedInsights(Recommendation.InsightReference.Builder builderForValue) Insights that led to this recommendation.Insights that led to this recommendation.addAssociatedInsightsBuilder(int index) Insights that led to this recommendation.build()clear()Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.Insights that led to this recommendation.Content of the recommendation describing recommended changes to resources.Free-form human readable summary in English.Fingerprint of the Recommendation.Last time this recommendation was refreshed by the system that created it in the first place.Name of recommendation.The primary impact that this recommendation can have while trying to optimize for one category.Recommendation's priority.Contains an identifier for a subtype of recommendations produced for the same recommender.Information for state.Corresponds to a mutually exclusive group ID within a recommender.getAdditionalImpact(int index) Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.getAdditionalImpactBuilder(int index) Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.intOptional set of additional impact that this recommendation may have when trying to optimize for the primary category.Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.getAdditionalImpactOrBuilder(int index) Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.List<? extends ImpactOrBuilder>Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.getAssociatedInsights(int index) Insights that led to this recommendation.getAssociatedInsightsBuilder(int index) Insights that led to this recommendation.Insights that led to this recommendation.intInsights that led to this recommendation.Insights that led to this recommendation.getAssociatedInsightsOrBuilder(int index) Insights that led to this recommendation.List<? extends Recommendation.InsightReferenceOrBuilder>Insights that led to this recommendation.Content of the recommendation describing recommended changes to resources.Content of the recommendation describing recommended changes to resources.Content of the recommendation describing recommended changes to resources.Free-form human readable summary in English.com.google.protobuf.ByteStringFree-form human readable summary in English.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEtag()Fingerprint of the Recommendation.com.google.protobuf.ByteStringFingerprint of the Recommendation.com.google.protobuf.TimestampLast time this recommendation was refreshed by the system that created it in the first place.com.google.protobuf.Timestamp.BuilderLast time this recommendation was refreshed by the system that created it in the first place.com.google.protobuf.TimestampOrBuilderLast time this recommendation was refreshed by the system that created it in the first place.getName()Name of recommendation.com.google.protobuf.ByteStringName of recommendation.The primary impact that this recommendation can have while trying to optimize for one category.The primary impact that this recommendation can have while trying to optimize for one category.The primary impact that this recommendation can have while trying to optimize for one category.Recommendation's priority.intRecommendation's priority.Contains an identifier for a subtype of recommendations produced for the same recommender.com.google.protobuf.ByteStringContains an identifier for a subtype of recommendations produced for the same recommender.Information for state.Information for state.Information for state.Corresponds to a mutually exclusive group ID within a recommender.com.google.protobuf.ByteStringCorresponds to a mutually exclusive group ID within a recommender.booleanContent of the recommendation describing recommended changes to resources.booleanLast time this recommendation was refreshed by the system that created it in the first place.booleanThe primary impact that this recommendation can have while trying to optimize for one category.booleanInformation for state.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanContent of the recommendation describing recommended changes to resources.mergeFrom(Recommendation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastRefreshTime(com.google.protobuf.Timestamp value) Last time this recommendation was refreshed by the system that created it in the first place.mergePrimaryImpact(Impact value) The primary impact that this recommendation can have while trying to optimize for one category.Information for state.removeAdditionalImpact(int index) Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.removeAssociatedInsights(int index) Insights that led to this recommendation.setAdditionalImpact(int index, Impact value) Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.setAdditionalImpact(int index, Impact.Builder builderForValue) Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.setAssociatedInsights(int index, Recommendation.InsightReference value) Insights that led to this recommendation.setAssociatedInsights(int index, Recommendation.InsightReference.Builder builderForValue) Insights that led to this recommendation.setContent(RecommendationContent value) Content of the recommendation describing recommended changes to resources.setContent(RecommendationContent.Builder builderForValue) Content of the recommendation describing recommended changes to resources.setDescription(String value) Free-form human readable summary in English.setDescriptionBytes(com.google.protobuf.ByteString value) Free-form human readable summary in English.Fingerprint of the Recommendation.setEtagBytes(com.google.protobuf.ByteString value) Fingerprint of the Recommendation.setLastRefreshTime(com.google.protobuf.Timestamp value) Last time this recommendation was refreshed by the system that created it in the first place.setLastRefreshTime(com.google.protobuf.Timestamp.Builder builderForValue) Last time this recommendation was refreshed by the system that created it in the first place.Name of recommendation.setNameBytes(com.google.protobuf.ByteString value) Name of recommendation.setPrimaryImpact(Impact value) The primary impact that this recommendation can have while trying to optimize for one category.setPrimaryImpact(Impact.Builder builderForValue) The primary impact that this recommendation can have while trying to optimize for one category.Recommendation's priority.setPriorityValue(int value) Recommendation's priority.setRecommenderSubtype(String value) Contains an identifier for a subtype of recommendations produced for the same recommender.setRecommenderSubtypeBytes(com.google.protobuf.ByteString value) Contains an identifier for a subtype of recommendations produced for the same recommender.Information for state.setStateInfo(RecommendationStateInfo.Builder builderForValue) Information for state.setXorGroupId(String value) Corresponds to a mutually exclusive group ID within a recommender.setXorGroupIdBytes(com.google.protobuf.ByteString value) Corresponds to a mutually exclusive group ID within a recommender.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Recommendation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Recommendation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Recommendation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Recommendation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Recommendation.Builder>- Throws:
IOException
-
getName
Name of recommendation.
string name = 1;- Specified by:
getNamein interfaceRecommendationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of recommendation.
string name = 1;- Specified by:
getNameBytesin interfaceRecommendationOrBuilder- Returns:
- The bytes for name.
-
setName
Name of recommendation.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of recommendation.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Name of recommendation.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;- Specified by:
getDescriptionin interfaceRecommendationOrBuilder- 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:
getDescriptionBytesin interfaceRecommendationOrBuilder- Returns:
- The bytes for description.
-
setDescription
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
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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
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:
getRecommenderSubtypein interfaceRecommendationOrBuilder- 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:
getRecommenderSubtypeBytesin interfaceRecommendationOrBuilder- Returns:
- The bytes for recommenderSubtype.
-
setRecommenderSubtype
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
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
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:
hasLastRefreshTimein interfaceRecommendationOrBuilder- 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:
getLastRefreshTimein interfaceRecommendationOrBuilder- Returns:
- The lastRefreshTime.
-
setLastRefreshTime
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
Last time this recommendation was refreshed by the system that created it in the first place.
.google.protobuf.Timestamp last_refresh_time = 4; -
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:
getLastRefreshTimeOrBuilderin interfaceRecommendationOrBuilder
-
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:
hasPrimaryImpactin interfaceRecommendationOrBuilder- Returns:
- Whether the primaryImpact field is set.
-
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:
getPrimaryImpactin interfaceRecommendationOrBuilder- Returns:
- The primaryImpact.
-
setPrimaryImpact
The primary impact that this recommendation can have while trying to optimize for one category.
.google.cloud.recommender.v1beta1.Impact primary_impact = 5; -
setPrimaryImpact
The primary impact that this recommendation can have while trying to optimize for one category.
.google.cloud.recommender.v1beta1.Impact primary_impact = 5; -
mergePrimaryImpact
The primary impact that this recommendation can have while trying to optimize for one category.
.google.cloud.recommender.v1beta1.Impact primary_impact = 5; -
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
The primary impact that this recommendation can have while trying to optimize for one category.
.google.cloud.recommender.v1beta1.Impact primary_impact = 5; -
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:
getPrimaryImpactOrBuilderin interfaceRecommendationOrBuilder
-
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:
getAdditionalImpactListin interfaceRecommendationOrBuilder
-
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:
getAdditionalImpactCountin interfaceRecommendationOrBuilder
-
getAdditionalImpact
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:
getAdditionalImpactin interfaceRecommendationOrBuilder
-
setAdditionalImpact
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
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
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
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
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
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
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
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
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
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
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:
getAdditionalImpactOrBuilderin interfaceRecommendationOrBuilder
-
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:
getAdditionalImpactOrBuilderListin interfaceRecommendationOrBuilder
-
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
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
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:
getPriorityValuein interfaceRecommendationOrBuilder- Returns:
- The enum numeric value on the wire for priority.
-
setPriorityValue
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
Recommendation's priority.
.google.cloud.recommender.v1beta1.Recommendation.Priority priority = 17;- Specified by:
getPriorityin interfaceRecommendationOrBuilder- Returns:
- The priority.
-
setPriority
Recommendation's priority.
.google.cloud.recommender.v1beta1.Recommendation.Priority priority = 17;- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
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:
hasContentin interfaceRecommendationOrBuilder- Returns:
- Whether the content field is set.
-
getContent
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1beta1.RecommendationContent content = 7;- Specified by:
getContentin interfaceRecommendationOrBuilder- Returns:
- The content.
-
setContent
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1beta1.RecommendationContent content = 7; -
setContent
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1beta1.RecommendationContent content = 7; -
mergeContent
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1beta1.RecommendationContent content = 7; -
clearContent
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1beta1.RecommendationContent content = 7; -
getContentBuilder
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1beta1.RecommendationContent content = 7; -
getContentOrBuilder
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1beta1.RecommendationContent content = 7;- Specified by:
getContentOrBuilderin interfaceRecommendationOrBuilder
-
hasStateInfo
public boolean hasStateInfo()Information for state. Contains state and metadata.
.google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;- Specified by:
hasStateInfoin interfaceRecommendationOrBuilder- Returns:
- Whether the stateInfo field is set.
-
getStateInfo
Information for state. Contains state and metadata.
.google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;- Specified by:
getStateInfoin interfaceRecommendationOrBuilder- Returns:
- The stateInfo.
-
setStateInfo
Information for state. Contains state and metadata.
.google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10; -
setStateInfo
Information for state. Contains state and metadata.
.google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10; -
mergeStateInfo
Information for state. Contains state and metadata.
.google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10; -
clearStateInfo
Information for state. Contains state and metadata.
.google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10; -
getStateInfoBuilder
Information for state. Contains state and metadata.
.google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10; -
getStateInfoOrBuilder
Information for state. Contains state and metadata.
.google.cloud.recommender.v1beta1.RecommendationStateInfo state_info = 10;- Specified by:
getStateInfoOrBuilderin interfaceRecommendationOrBuilder
-
getEtag
Fingerprint of the Recommendation. Provides optimistic locking when updating states.
string etag = 11;- Specified by:
getEtagin interfaceRecommendationOrBuilder- 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:
getEtagBytesin interfaceRecommendationOrBuilder- Returns:
- The bytes for etag.
-
setEtag
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
Fingerprint of the Recommendation. Provides optimistic locking when updating states.
string etag = 11;- Returns:
- This builder for chaining.
-
setEtagBytes
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
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;- Specified by:
getAssociatedInsightsListin interfaceRecommendationOrBuilder
-
getAssociatedInsightsCount
public int getAssociatedInsightsCount()Insights that led to this recommendation.
repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;- Specified by:
getAssociatedInsightsCountin interfaceRecommendationOrBuilder
-
getAssociatedInsights
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;- Specified by:
getAssociatedInsightsin interfaceRecommendationOrBuilder
-
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
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
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14; -
removeAssociatedInsights
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14; -
getAssociatedInsightsBuilder
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14; -
getAssociatedInsightsOrBuilder
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;- Specified by:
getAssociatedInsightsOrBuilderin interfaceRecommendationOrBuilder
-
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:
getAssociatedInsightsOrBuilderListin interfaceRecommendationOrBuilder
-
addAssociatedInsightsBuilder
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14; -
addAssociatedInsightsBuilder
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14; -
getAssociatedInsightsBuilderList
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14; -
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:
getXorGroupIdin interfaceRecommendationOrBuilder- 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:
getXorGroupIdBytesin interfaceRecommendationOrBuilder- Returns:
- The bytes for xorGroupId.
-
setXorGroupId
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
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
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.
-