Package com.google.cloud.recommender.v1
Class Recommendation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
-
- com.google.cloud.recommender.v1.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 typegoogle.cloud.recommender.v1.Recommendation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.Recommendation.Builder
addAdditionalImpact(Impact value)
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.Recommendation.Builder
addAdditionalImpact(Impact.Builder builderForValue)
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.Impact.Builder
addAdditionalImpactBuilder()
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.Impact.Builder
addAdditionalImpactBuilder(int index)
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.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.Recommendation.Builder
addAllAssociatedInsights(Iterable<? extends Recommendation.InsightReference> values)
Insights that led to this recommendation.Recommendation.Builder
addAssociatedInsights(int index, Recommendation.InsightReference value)
Insights that led to this recommendation.Recommendation.Builder
addAssociatedInsights(int index, Recommendation.InsightReference.Builder builderForValue)
Insights that led to this recommendation.Recommendation.Builder
addAssociatedInsights(Recommendation.InsightReference value)
Insights that led to this recommendation.Recommendation.Builder
addAssociatedInsights(Recommendation.InsightReference.Builder builderForValue)
Insights that led to this recommendation.Recommendation.InsightReference.Builder
addAssociatedInsightsBuilder()
Insights that led to this recommendation.Recommendation.InsightReference.Builder
addAssociatedInsightsBuilder(int index)
Insights that led to this recommendation.Recommendation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Recommendation
build()
Recommendation
buildPartial()
Recommendation.Builder
clear()
Recommendation.Builder
clearAdditionalImpact()
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.Recommendation.Builder
clearAssociatedInsights()
Insights that led to this recommendation.Recommendation.Builder
clearContent()
Content of the recommendation describing recommended changes to resources.Recommendation.Builder
clearDescription()
Free-form human readable summary in English.Recommendation.Builder
clearEtag()
Fingerprint of the Recommendation.Recommendation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Recommendation.Builder
clearLastRefreshTime()
Last time this recommendation was refreshed by the system that created it in the first place.Recommendation.Builder
clearName()
Name of recommendation.Recommendation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Recommendation.Builder
clearPrimaryImpact()
The primary impact that this recommendation can have while trying to optimize for one category.Recommendation.Builder
clearPriority()
Recommendation's priority.Recommendation.Builder
clearRecommenderSubtype()
Contains an identifier for a subtype of recommendations produced for the same recommender.Recommendation.Builder
clearStateInfo()
Information for state.Recommendation.Builder
clearXorGroupId()
Corresponds to a mutually exclusive group ID within a recommender.Recommendation.Builder
clone()
Impact
getAdditionalImpact(int index)
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.Impact.Builder
getAdditionalImpactBuilder(int index)
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.List<Impact.Builder>
getAdditionalImpactBuilderList()
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.int
getAdditionalImpactCount()
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.List<Impact>
getAdditionalImpactList()
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.ImpactOrBuilder
getAdditionalImpactOrBuilder(int index)
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.List<? extends ImpactOrBuilder>
getAdditionalImpactOrBuilderList()
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.Recommendation.InsightReference
getAssociatedInsights(int index)
Insights that led to this recommendation.Recommendation.InsightReference.Builder
getAssociatedInsightsBuilder(int index)
Insights that led to this recommendation.List<Recommendation.InsightReference.Builder>
getAssociatedInsightsBuilderList()
Insights that led to this recommendation.int
getAssociatedInsightsCount()
Insights that led to this recommendation.List<Recommendation.InsightReference>
getAssociatedInsightsList()
Insights that led to this recommendation.Recommendation.InsightReferenceOrBuilder
getAssociatedInsightsOrBuilder(int index)
Insights that led to this recommendation.List<? extends Recommendation.InsightReferenceOrBuilder>
getAssociatedInsightsOrBuilderList()
Insights that led to this recommendation.RecommendationContent
getContent()
Content of the recommendation describing recommended changes to resources.RecommendationContent.Builder
getContentBuilder()
Content of the recommendation describing recommended changes to resources.RecommendationContentOrBuilder
getContentOrBuilder()
Content of the recommendation describing recommended changes to resources.Recommendation
getDefaultInstanceForType()
String
getDescription()
Free-form human readable summary in English.com.google.protobuf.ByteString
getDescriptionBytes()
Free-form human readable summary in English.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getEtag()
Fingerprint of the Recommendation.com.google.protobuf.ByteString
getEtagBytes()
Fingerprint of the Recommendation.com.google.protobuf.Timestamp
getLastRefreshTime()
Last time this recommendation was refreshed by the system that created it in the first place.com.google.protobuf.Timestamp.Builder
getLastRefreshTimeBuilder()
Last time this recommendation was refreshed by the system that created it in the first place.com.google.protobuf.TimestampOrBuilder
getLastRefreshTimeOrBuilder()
Last time this recommendation was refreshed by the system that created it in the first place.String
getName()
Name of recommendation.com.google.protobuf.ByteString
getNameBytes()
Name of recommendation.Impact
getPrimaryImpact()
The primary impact that this recommendation can have while trying to optimize for one category.Impact.Builder
getPrimaryImpactBuilder()
The primary impact that this recommendation can have while trying to optimize for one category.ImpactOrBuilder
getPrimaryImpactOrBuilder()
The primary impact that this recommendation can have while trying to optimize for one category.Recommendation.Priority
getPriority()
Recommendation's priority.int
getPriorityValue()
Recommendation's priority.String
getRecommenderSubtype()
Contains an identifier for a subtype of recommendations produced for the same recommender.com.google.protobuf.ByteString
getRecommenderSubtypeBytes()
Contains an identifier for a subtype of recommendations produced for the same recommender.RecommendationStateInfo
getStateInfo()
Information for state.RecommendationStateInfo.Builder
getStateInfoBuilder()
Information for state.RecommendationStateInfoOrBuilder
getStateInfoOrBuilder()
Information for state.String
getXorGroupId()
Corresponds to a mutually exclusive group ID within a recommender.com.google.protobuf.ByteString
getXorGroupIdBytes()
Corresponds to a mutually exclusive group ID within a recommender.boolean
hasContent()
Content of the recommendation describing recommended changes to resources.boolean
hasLastRefreshTime()
Last time this recommendation was refreshed by the system that created it in the first place.boolean
hasPrimaryImpact()
The primary impact that this recommendation can have while trying to optimize for one category.boolean
hasStateInfo()
Information for state.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Recommendation.Builder
mergeContent(RecommendationContent value)
Content of the recommendation describing recommended changes to resources.Recommendation.Builder
mergeFrom(Recommendation other)
Recommendation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Recommendation.Builder
mergeFrom(com.google.protobuf.Message other)
Recommendation.Builder
mergeLastRefreshTime(com.google.protobuf.Timestamp value)
Last time this recommendation was refreshed by the system that created it in the first place.Recommendation.Builder
mergePrimaryImpact(Impact value)
The primary impact that this recommendation can have while trying to optimize for one category.Recommendation.Builder
mergeStateInfo(RecommendationStateInfo value)
Information for state.Recommendation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Recommendation.Builder
removeAdditionalImpact(int index)
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category.Recommendation.Builder
removeAssociatedInsights(int index)
Insights that led to this recommendation.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.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.Recommendation.Builder
setAssociatedInsights(int index, Recommendation.InsightReference value)
Insights that led to this recommendation.Recommendation.Builder
setAssociatedInsights(int index, Recommendation.InsightReference.Builder builderForValue)
Insights that led to this recommendation.Recommendation.Builder
setContent(RecommendationContent value)
Content of the recommendation describing recommended changes to resources.Recommendation.Builder
setContent(RecommendationContent.Builder builderForValue)
Content of the recommendation describing recommended changes to resources.Recommendation.Builder
setDescription(String value)
Free-form human readable summary in English.Recommendation.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Free-form human readable summary in English.Recommendation.Builder
setEtag(String value)
Fingerprint of the Recommendation.Recommendation.Builder
setEtagBytes(com.google.protobuf.ByteString value)
Fingerprint of the Recommendation.Recommendation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Recommendation.Builder
setLastRefreshTime(com.google.protobuf.Timestamp value)
Last time this recommendation was refreshed by the system that created it in the first place.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.Recommendation.Builder
setName(String value)
Name of recommendation.Recommendation.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of recommendation.Recommendation.Builder
setPrimaryImpact(Impact value)
The primary impact that this recommendation can have while trying to optimize for one category.Recommendation.Builder
setPrimaryImpact(Impact.Builder builderForValue)
The primary impact that this recommendation can have while trying to optimize for one category.Recommendation.Builder
setPriority(Recommendation.Priority value)
Recommendation's priority.Recommendation.Builder
setPriorityValue(int value)
Recommendation's priority.Recommendation.Builder
setRecommenderSubtype(String value)
Contains an identifier for a subtype of recommendations produced for the same recommender.Recommendation.Builder
setRecommenderSubtypeBytes(com.google.protobuf.ByteString value)
Contains an identifier for a subtype of recommendations produced for the same recommender.Recommendation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Recommendation.Builder
setStateInfo(RecommendationStateInfo value)
Information for state.Recommendation.Builder
setStateInfo(RecommendationStateInfo.Builder builderForValue)
Information for state.Recommendation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Recommendation.Builder
setXorGroupId(String value)
Corresponds to a mutually exclusive group ID within a recommender.Recommendation.Builder
setXorGroupIdBytes(com.google.protobuf.ByteString value)
Corresponds to a mutually exclusive group ID within a recommender.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
-
clear
public Recommendation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
-
getDefaultInstanceForType
public Recommendation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Recommendation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Recommendation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Recommendation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
-
setField
public Recommendation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
-
clearField
public Recommendation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
-
clearOneof
public Recommendation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
-
addRepeatedField
public Recommendation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
-
mergeFrom
public Recommendation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Recommendation.Builder>
-
mergeFrom
public Recommendation.Builder mergeFrom(Recommendation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Recommendation.Builder>
- Throws:
IOException
-
getName
public String getName()
Name of recommendation.
string name = 1;
- Specified by:
getName
in interfaceRecommendationOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of recommendation.
string name = 1;
- Specified by:
getNameBytes
in interfaceRecommendationOrBuilder
- 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 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:
getDescriptionBytes
in interfaceRecommendationOrBuilder
- 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 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:
getRecommenderSubtypeBytes
in interfaceRecommendationOrBuilder
- 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 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:
getLastRefreshTime
in interfaceRecommendationOrBuilder
- 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 interfaceRecommendationOrBuilder
-
hasPrimaryImpact
public boolean hasPrimaryImpact()
The primary impact that this recommendation can have while trying to optimize for one category.
.google.cloud.recommender.v1.Impact primary_impact = 5;
- Specified by:
hasPrimaryImpact
in interfaceRecommendationOrBuilder
- 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.v1.Impact primary_impact = 5;
- Specified by:
getPrimaryImpact
in interfaceRecommendationOrBuilder
- 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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.Impact primary_impact = 5;
- Specified by:
getPrimaryImpactOrBuilder
in interfaceRecommendationOrBuilder
-
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.v1.Impact additional_impact = 6;
- Specified by:
getAdditionalImpactList
in 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.v1.Impact additional_impact = 6;
- Specified by:
getAdditionalImpactCount
in interfaceRecommendationOrBuilder
-
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.v1.Impact additional_impact = 6;
- Specified by:
getAdditionalImpact
in interfaceRecommendationOrBuilder
-
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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.Impact additional_impact = 6;
- Specified by:
getAdditionalImpactOrBuilder
in interfaceRecommendationOrBuilder
-
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.v1.Impact additional_impact = 6;
- Specified by:
getAdditionalImpactOrBuilderList
in interfaceRecommendationOrBuilder
-
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.v1.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.v1.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.v1.Impact additional_impact = 6;
-
getPriorityValue
public int getPriorityValue()
Recommendation's priority.
.google.cloud.recommender.v1.Recommendation.Priority priority = 17;
- Specified by:
getPriorityValue
in interfaceRecommendationOrBuilder
- Returns:
- The enum numeric value on the wire for priority.
-
setPriorityValue
public Recommendation.Builder setPriorityValue(int value)
Recommendation's priority.
.google.cloud.recommender.v1.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.v1.Recommendation.Priority priority = 17;
- Specified by:
getPriority
in interfaceRecommendationOrBuilder
- Returns:
- The priority.
-
setPriority
public Recommendation.Builder setPriority(Recommendation.Priority value)
Recommendation's priority.
.google.cloud.recommender.v1.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.v1.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.v1.RecommendationContent content = 7;
- Specified by:
hasContent
in interfaceRecommendationOrBuilder
- Returns:
- Whether the content field is set.
-
getContent
public RecommendationContent getContent()
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1.RecommendationContent content = 7;
- Specified by:
getContent
in interfaceRecommendationOrBuilder
- Returns:
- The content.
-
setContent
public Recommendation.Builder setContent(RecommendationContent value)
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1.RecommendationContent content = 7;
-
setContent
public Recommendation.Builder setContent(RecommendationContent.Builder builderForValue)
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1.RecommendationContent content = 7;
-
mergeContent
public Recommendation.Builder mergeContent(RecommendationContent value)
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1.RecommendationContent content = 7;
-
clearContent
public Recommendation.Builder clearContent()
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1.RecommendationContent content = 7;
-
getContentBuilder
public RecommendationContent.Builder getContentBuilder()
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1.RecommendationContent content = 7;
-
getContentOrBuilder
public RecommendationContentOrBuilder getContentOrBuilder()
Content of the recommendation describing recommended changes to resources.
.google.cloud.recommender.v1.RecommendationContent content = 7;
- Specified by:
getContentOrBuilder
in interfaceRecommendationOrBuilder
-
hasStateInfo
public boolean hasStateInfo()
Information for state. Contains state and metadata.
.google.cloud.recommender.v1.RecommendationStateInfo state_info = 10;
- Specified by:
hasStateInfo
in interfaceRecommendationOrBuilder
- Returns:
- Whether the stateInfo field is set.
-
getStateInfo
public RecommendationStateInfo getStateInfo()
Information for state. Contains state and metadata.
.google.cloud.recommender.v1.RecommendationStateInfo state_info = 10;
- Specified by:
getStateInfo
in interfaceRecommendationOrBuilder
- Returns:
- The stateInfo.
-
setStateInfo
public Recommendation.Builder setStateInfo(RecommendationStateInfo value)
Information for state. Contains state and metadata.
.google.cloud.recommender.v1.RecommendationStateInfo state_info = 10;
-
setStateInfo
public Recommendation.Builder setStateInfo(RecommendationStateInfo.Builder builderForValue)
Information for state. Contains state and metadata.
.google.cloud.recommender.v1.RecommendationStateInfo state_info = 10;
-
mergeStateInfo
public Recommendation.Builder mergeStateInfo(RecommendationStateInfo value)
Information for state. Contains state and metadata.
.google.cloud.recommender.v1.RecommendationStateInfo state_info = 10;
-
clearStateInfo
public Recommendation.Builder clearStateInfo()
Information for state. Contains state and metadata.
.google.cloud.recommender.v1.RecommendationStateInfo state_info = 10;
-
getStateInfoBuilder
public RecommendationStateInfo.Builder getStateInfoBuilder()
Information for state. Contains state and metadata.
.google.cloud.recommender.v1.RecommendationStateInfo state_info = 10;
-
getStateInfoOrBuilder
public RecommendationStateInfoOrBuilder getStateInfoOrBuilder()
Information for state. Contains state and metadata.
.google.cloud.recommender.v1.RecommendationStateInfo state_info = 10;
- Specified by:
getStateInfoOrBuilder
in interfaceRecommendationOrBuilder
-
getEtag
public String getEtag()
Fingerprint of the Recommendation. Provides optimistic locking when updating states.
string etag = 11;
- Specified by:
getEtag
in 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:
getEtagBytes
in interfaceRecommendationOrBuilder
- 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.v1.Recommendation.InsightReference associated_insights = 14;
- Specified by:
getAssociatedInsightsList
in interfaceRecommendationOrBuilder
-
getAssociatedInsightsCount
public int getAssociatedInsightsCount()
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1.Recommendation.InsightReference associated_insights = 14;
- Specified by:
getAssociatedInsightsCount
in interfaceRecommendationOrBuilder
-
getAssociatedInsights
public Recommendation.InsightReference getAssociatedInsights(int index)
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1.Recommendation.InsightReference associated_insights = 14;
- Specified by:
getAssociatedInsights
in interfaceRecommendationOrBuilder
-
setAssociatedInsights
public Recommendation.Builder setAssociatedInsights(int index, Recommendation.InsightReference value)
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1.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.v1.Recommendation.InsightReference associated_insights = 14;
-
addAssociatedInsights
public Recommendation.Builder addAssociatedInsights(Recommendation.InsightReference value)
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1.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.v1.Recommendation.InsightReference associated_insights = 14;
-
addAssociatedInsights
public Recommendation.Builder addAssociatedInsights(Recommendation.InsightReference.Builder builderForValue)
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1.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.v1.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.v1.Recommendation.InsightReference associated_insights = 14;
-
clearAssociatedInsights
public Recommendation.Builder clearAssociatedInsights()
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1.Recommendation.InsightReference associated_insights = 14;
-
removeAssociatedInsights
public Recommendation.Builder removeAssociatedInsights(int index)
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1.Recommendation.InsightReference associated_insights = 14;
-
getAssociatedInsightsBuilder
public Recommendation.InsightReference.Builder getAssociatedInsightsBuilder(int index)
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1.Recommendation.InsightReference associated_insights = 14;
-
getAssociatedInsightsOrBuilder
public Recommendation.InsightReferenceOrBuilder getAssociatedInsightsOrBuilder(int index)
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1.Recommendation.InsightReference associated_insights = 14;
- Specified by:
getAssociatedInsightsOrBuilder
in interfaceRecommendationOrBuilder
-
getAssociatedInsightsOrBuilderList
public List<? extends Recommendation.InsightReferenceOrBuilder> getAssociatedInsightsOrBuilderList()
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1.Recommendation.InsightReference associated_insights = 14;
- Specified by:
getAssociatedInsightsOrBuilderList
in interfaceRecommendationOrBuilder
-
addAssociatedInsightsBuilder
public Recommendation.InsightReference.Builder addAssociatedInsightsBuilder()
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1.Recommendation.InsightReference associated_insights = 14;
-
addAssociatedInsightsBuilder
public Recommendation.InsightReference.Builder addAssociatedInsightsBuilder(int index)
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1.Recommendation.InsightReference associated_insights = 14;
-
getAssociatedInsightsBuilderList
public List<Recommendation.InsightReference.Builder> getAssociatedInsightsBuilderList()
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1.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 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:
getXorGroupIdBytes
in interfaceRecommendationOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
-
mergeUnknownFields
public final Recommendation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Recommendation.Builder>
-
-