Package com.google.cloud.recommender.v1
Interface InsightOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Insight,Insight.Builder
public interface InsightOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Insight.RecommendationReferencegetAssociatedRecommendations(int index)Recommendations derived from this insight.intgetAssociatedRecommendationsCount()Recommendations derived from this insight.List<Insight.RecommendationReference>getAssociatedRecommendationsList()Recommendations derived from this insight.Insight.RecommendationReferenceOrBuildergetAssociatedRecommendationsOrBuilder(int index)Recommendations derived from this insight.List<? extends Insight.RecommendationReferenceOrBuilder>getAssociatedRecommendationsOrBuilderList()Recommendations derived from this insight.Insight.CategorygetCategory()Category being targeted by the insight.intgetCategoryValue()Category being targeted by the insight.com.google.protobuf.StructgetContent()A struct of custom fields to explain the insight.com.google.protobuf.StructOrBuildergetContentOrBuilder()A struct of custom fields to explain the insight.StringgetDescription()Free-form human readable summary in English.com.google.protobuf.ByteStringgetDescriptionBytes()Free-form human readable summary in English.StringgetEtag()Fingerprint of the Insight.com.google.protobuf.ByteStringgetEtagBytes()Fingerprint of the Insight.StringgetInsightSubtype()Insight subtype.com.google.protobuf.ByteStringgetInsightSubtypeBytes()Insight subtype.com.google.protobuf.TimestampgetLastRefreshTime()Timestamp of the latest data used to generate the insight.com.google.protobuf.TimestampOrBuildergetLastRefreshTimeOrBuilder()Timestamp of the latest data used to generate the insight.StringgetName()Name of the insight.com.google.protobuf.ByteStringgetNameBytes()Name of the insight.com.google.protobuf.DurationgetObservationPeriod()Observation period that led to the insight.com.google.protobuf.DurationOrBuildergetObservationPeriodOrBuilder()Observation period that led to the insight.Insight.SeveritygetSeverity()Insight's severity.intgetSeverityValue()Insight's severity.InsightStateInfogetStateInfo()Information state and metadata.InsightStateInfoOrBuildergetStateInfoOrBuilder()Information state and metadata.StringgetTargetResources(int index)Fully qualified resource names that this insight is targeting.com.google.protobuf.ByteStringgetTargetResourcesBytes(int index)Fully qualified resource names that this insight is targeting.intgetTargetResourcesCount()Fully qualified resource names that this insight is targeting.List<String>getTargetResourcesList()Fully qualified resource names that this insight is targeting.booleanhasContent()A struct of custom fields to explain the insight.booleanhasLastRefreshTime()Timestamp of the latest data used to generate the insight.booleanhasObservationPeriod()Observation period that led to the insight.booleanhasStateInfo()Information state and metadata.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
Name of the insight.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Name of the insight.
string name = 1;- Returns:
- The bytes for name.
-
getDescription
String getDescription()
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;- Returns:
- The bytes for description.
-
getTargetResourcesList
List<String> getTargetResourcesList()
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;- Returns:
- A list containing the targetResources.
-
getTargetResourcesCount
int getTargetResourcesCount()
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;- Returns:
- The count of targetResources.
-
getTargetResources
String getTargetResources(int index)
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;- Parameters:
index- The index of the element to return.- Returns:
- The targetResources at the given index.
-
getTargetResourcesBytes
com.google.protobuf.ByteString getTargetResourcesBytes(int index)
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the targetResources at the given index.
-
getInsightSubtype
String getInsightSubtype()
Insight subtype. Insight content schema will be stable for a given subtype.
string insight_subtype = 10;- Returns:
- The insightSubtype.
-
getInsightSubtypeBytes
com.google.protobuf.ByteString getInsightSubtypeBytes()
Insight subtype. Insight content schema will be stable for a given subtype.
string insight_subtype = 10;- Returns:
- The bytes for insightSubtype.
-
hasContent
boolean hasContent()
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;- Returns:
- Whether the content field is set.
-
getContent
com.google.protobuf.Struct getContent()
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;- Returns:
- The content.
-
getContentOrBuilder
com.google.protobuf.StructOrBuilder getContentOrBuilder()
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;
-
hasLastRefreshTime
boolean hasLastRefreshTime()
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;- Returns:
- Whether the lastRefreshTime field is set.
-
getLastRefreshTime
com.google.protobuf.Timestamp getLastRefreshTime()
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;- Returns:
- The lastRefreshTime.
-
getLastRefreshTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getLastRefreshTimeOrBuilder()
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;
-
hasObservationPeriod
boolean hasObservationPeriod()
Observation period that led to the insight. The source data used to generate the insight ends at last_refresh_time and begins at (last_refresh_time - observation_period).
.google.protobuf.Duration observation_period = 5;- Returns:
- Whether the observationPeriod field is set.
-
getObservationPeriod
com.google.protobuf.Duration getObservationPeriod()
Observation period that led to the insight. The source data used to generate the insight ends at last_refresh_time and begins at (last_refresh_time - observation_period).
.google.protobuf.Duration observation_period = 5;- Returns:
- The observationPeriod.
-
getObservationPeriodOrBuilder
com.google.protobuf.DurationOrBuilder getObservationPeriodOrBuilder()
Observation period that led to the insight. The source data used to generate the insight ends at last_refresh_time and begins at (last_refresh_time - observation_period).
.google.protobuf.Duration observation_period = 5;
-
hasStateInfo
boolean hasStateInfo()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;- Returns:
- Whether the stateInfo field is set.
-
getStateInfo
InsightStateInfo getStateInfo()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;- Returns:
- The stateInfo.
-
getStateInfoOrBuilder
InsightStateInfoOrBuilder getStateInfoOrBuilder()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
-
getCategoryValue
int getCategoryValue()
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;- Returns:
- The enum numeric value on the wire for category.
-
getCategory
Insight.Category getCategory()
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;- Returns:
- The category.
-
getSeverityValue
int getSeverityValue()
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;- Returns:
- The enum numeric value on the wire for severity.
-
getSeverity
Insight.Severity getSeverity()
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;- Returns:
- The severity.
-
getEtag
String getEtag()
Fingerprint of the Insight. Provides optimistic locking when updating states.
string etag = 11;- Returns:
- The etag.
-
getEtagBytes
com.google.protobuf.ByteString getEtagBytes()
Fingerprint of the Insight. Provides optimistic locking when updating states.
string etag = 11;- Returns:
- The bytes for etag.
-
getAssociatedRecommendationsList
List<Insight.RecommendationReference> getAssociatedRecommendationsList()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
getAssociatedRecommendations
Insight.RecommendationReference getAssociatedRecommendations(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
getAssociatedRecommendationsCount
int getAssociatedRecommendationsCount()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
getAssociatedRecommendationsOrBuilderList
List<? extends Insight.RecommendationReferenceOrBuilder> getAssociatedRecommendationsOrBuilderList()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
getAssociatedRecommendationsOrBuilder
Insight.RecommendationReferenceOrBuilder getAssociatedRecommendationsOrBuilder(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
-