Class Recommendation
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.recommender.v1beta1.Recommendation
- All Implemented Interfaces:
RecommendationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Recommendation
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA recommendation along with a suggested action.static final classReference to an associated insight.static interfacestatic enumRecommendation priority levels.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAdditionalImpact(int index) 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.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.static RecommendationFree-form human readable summary in English.com.google.protobuf.ByteStringFree-form human readable summary in English.static final com.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.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.com.google.protobuf.Parser<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.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.intInformation 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.inthashCode()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 booleanstatic Recommendation.Builderstatic Recommendation.BuildernewBuilder(Recommendation prototype) protected Recommendation.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RecommendationparseDelimitedFrom(InputStream input) static RecommendationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RecommendationparseFrom(byte[] data) static RecommendationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RecommendationparseFrom(com.google.protobuf.ByteString data) static RecommendationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RecommendationparseFrom(com.google.protobuf.CodedInputStream input) static RecommendationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RecommendationparseFrom(InputStream input) static RecommendationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RecommendationparseFrom(ByteBuffer data) static RecommendationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Recommendation>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
RECOMMENDER_SUBTYPE_FIELD_NUMBER
public static final int RECOMMENDER_SUBTYPE_FIELD_NUMBER- See Also:
-
LAST_REFRESH_TIME_FIELD_NUMBER
public static final int LAST_REFRESH_TIME_FIELD_NUMBER- See Also:
-
PRIMARY_IMPACT_FIELD_NUMBER
public static final int PRIMARY_IMPACT_FIELD_NUMBER- See Also:
-
ADDITIONAL_IMPACT_FIELD_NUMBER
public static final int ADDITIONAL_IMPACT_FIELD_NUMBER- See Also:
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER- See Also:
-
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER- See Also:
-
STATE_INFO_FIELD_NUMBER
public static final int STATE_INFO_FIELD_NUMBER- See Also:
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER- See Also:
-
ASSOCIATED_INSIGHTS_FIELD_NUMBER
public static final int ASSOCIATED_INSIGHTS_FIELD_NUMBER- See Also:
-
XOR_GROUP_ID_FIELD_NUMBER
public static final int XOR_GROUP_ID_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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.
-
getPriority
Recommendation's priority.
.google.cloud.recommender.v1beta1.Recommendation.Priority priority = 17;- Specified by:
getPriorityin interfaceRecommendationOrBuilder- Returns:
- The priority.
-
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.
-
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.
-
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.
-
getAssociatedInsightsList
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;- Specified by:
getAssociatedInsightsListin 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
-
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
-
getAssociatedInsightsOrBuilder
Insights that led to this recommendation.
repeated .google.cloud.recommender.v1beta1.Recommendation.InsightReference associated_insights = 14;- Specified by:
getAssociatedInsightsOrBuilderin interfaceRecommendationOrBuilder
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Recommendation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Recommendation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Recommendation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Recommendation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Recommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Recommendation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Recommendation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Recommendation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Recommendation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Recommendation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Recommendation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-