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.RecommendationReference
getAssociatedRecommendations(int index)
Recommendations derived from this insight.int
getAssociatedRecommendationsCount()
Recommendations derived from this insight.List<Insight.RecommendationReference>
getAssociatedRecommendationsList()
Recommendations derived from this insight.Insight.RecommendationReferenceOrBuilder
getAssociatedRecommendationsOrBuilder(int index)
Recommendations derived from this insight.List<? extends Insight.RecommendationReferenceOrBuilder>
getAssociatedRecommendationsOrBuilderList()
Recommendations derived from this insight.Insight.Category
getCategory()
Category being targeted by the insight.int
getCategoryValue()
Category being targeted by the insight.com.google.protobuf.Struct
getContent()
A struct of custom fields to explain the insight.com.google.protobuf.StructOrBuilder
getContentOrBuilder()
A struct of custom fields to explain the insight.String
getDescription()
Free-form human readable summary in English.com.google.protobuf.ByteString
getDescriptionBytes()
Free-form human readable summary in English.String
getEtag()
Fingerprint of the Insight.com.google.protobuf.ByteString
getEtagBytes()
Fingerprint of the Insight.String
getInsightSubtype()
Insight subtype.com.google.protobuf.ByteString
getInsightSubtypeBytes()
Insight subtype.com.google.protobuf.Timestamp
getLastRefreshTime()
Timestamp of the latest data used to generate the insight.com.google.protobuf.TimestampOrBuilder
getLastRefreshTimeOrBuilder()
Timestamp of the latest data used to generate the insight.String
getName()
Name of the insight.com.google.protobuf.ByteString
getNameBytes()
Name of the insight.com.google.protobuf.Duration
getObservationPeriod()
Observation period that led to the insight.com.google.protobuf.DurationOrBuilder
getObservationPeriodOrBuilder()
Observation period that led to the insight.Insight.Severity
getSeverity()
Insight's severity.int
getSeverityValue()
Insight's severity.InsightStateInfo
getStateInfo()
Information state and metadata.InsightStateInfoOrBuilder
getStateInfoOrBuilder()
Information state and metadata.String
getTargetResources(int index)
Fully qualified resource names that this insight is targeting.com.google.protobuf.ByteString
getTargetResourcesBytes(int index)
Fully qualified resource names that this insight is targeting.int
getTargetResourcesCount()
Fully qualified resource names that this insight is targeting.List<String>
getTargetResourcesList()
Fully qualified resource names that this insight is targeting.boolean
hasContent()
A struct of custom fields to explain the insight.boolean
hasLastRefreshTime()
Timestamp of the latest data used to generate the insight.boolean
hasObservationPeriod()
Observation period that led to the insight.boolean
hasStateInfo()
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;
-
-