Interface InsightOrBuilder (2.53.0)

public interface InsightOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAssociatedRecommendations(int index)

public abstract Insight.RecommendationReference getAssociatedRecommendations(int index)

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;

Parameter
Name Description
index int
Returns
Type Description
Insight.RecommendationReference

getAssociatedRecommendationsCount()

public abstract int getAssociatedRecommendationsCount()

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;

Returns
Type Description
int

getAssociatedRecommendationsList()

public abstract List<Insight.RecommendationReference> getAssociatedRecommendationsList()

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;

Returns
Type Description
List<RecommendationReference>

getAssociatedRecommendationsOrBuilder(int index)

public abstract Insight.RecommendationReferenceOrBuilder getAssociatedRecommendationsOrBuilder(int index)

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;

Parameter
Name Description
index int
Returns
Type Description
Insight.RecommendationReferenceOrBuilder

getAssociatedRecommendationsOrBuilderList()

public abstract List<? extends Insight.RecommendationReferenceOrBuilder> getAssociatedRecommendationsOrBuilderList()

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;

Returns
Type Description
List<? extends com.google.cloud.recommender.v1.Insight.RecommendationReferenceOrBuilder>

getCategory()

public abstract Insight.Category getCategory()

Category being targeted by the insight.

.google.cloud.recommender.v1.Insight.Category category = 7;

Returns
Type Description
Insight.Category

The category.

getCategoryValue()

public abstract int getCategoryValue()

Category being targeted by the insight.

.google.cloud.recommender.v1.Insight.Category category = 7;

Returns
Type Description
int

The enum numeric value on the wire for category.

getContent()

public abstract Struct getContent()

A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"

.google.protobuf.Struct content = 3;

Returns
Type Description
Struct

The content.

getContentOrBuilder()

public abstract StructOrBuilder getContentOrBuilder()

A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"

.google.protobuf.Struct content = 3;

Returns
Type Description
StructOrBuilder

getDescription()

public abstract String getDescription()

Free-form human readable summary in English. The maximum length is 500 characters.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

Free-form human readable summary in English. The maximum length is 500 characters.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getEtag()

public abstract String getEtag()

Fingerprint of the Insight. Provides optimistic locking when updating states.

string etag = 11;

Returns
Type Description
String

The etag.

getEtagBytes()

public abstract ByteString getEtagBytes()

Fingerprint of the Insight. Provides optimistic locking when updating states.

string etag = 11;

Returns
Type Description
ByteString

The bytes for etag.

getInsightSubtype()

public abstract String getInsightSubtype()

Insight subtype. Insight content schema will be stable for a given subtype.

string insight_subtype = 10;

Returns
Type Description
String

The insightSubtype.

getInsightSubtypeBytes()

public abstract ByteString getInsightSubtypeBytes()

Insight subtype. Insight content schema will be stable for a given subtype.

string insight_subtype = 10;

Returns
Type Description
ByteString

The bytes for insightSubtype.

getLastRefreshTime()

public abstract Timestamp getLastRefreshTime()

Timestamp of the latest data used to generate the insight.

.google.protobuf.Timestamp last_refresh_time = 4;

Returns
Type Description
Timestamp

The lastRefreshTime.

getLastRefreshTimeOrBuilder()

public abstract TimestampOrBuilder getLastRefreshTimeOrBuilder()

Timestamp of the latest data used to generate the insight.

.google.protobuf.Timestamp last_refresh_time = 4;

Returns
Type Description
TimestampOrBuilder

getName()

public abstract String getName()

Name of the insight.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Name of the insight.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getObservationPeriod()

public abstract 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
Type Description
Duration

The observationPeriod.

getObservationPeriodOrBuilder()

public abstract 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;

Returns
Type Description
DurationOrBuilder

getSeverity()

public abstract Insight.Severity getSeverity()

Insight's severity.

.google.cloud.recommender.v1.Insight.Severity severity = 15;

Returns
Type Description
Insight.Severity

The severity.

getSeverityValue()

public abstract int getSeverityValue()

Insight's severity.

.google.cloud.recommender.v1.Insight.Severity severity = 15;

Returns
Type Description
int

The enum numeric value on the wire for severity.

getStateInfo()

public abstract InsightStateInfo getStateInfo()

Information state and metadata.

.google.cloud.recommender.v1.InsightStateInfo state_info = 6;

Returns
Type Description
InsightStateInfo

The stateInfo.

getStateInfoOrBuilder()

public abstract InsightStateInfoOrBuilder getStateInfoOrBuilder()

Information state and metadata.

.google.cloud.recommender.v1.InsightStateInfo state_info = 6;

Returns
Type Description
InsightStateInfoOrBuilder

getTargetResources(int index)

public abstract String getTargetResources(int index)

Fully qualified resource names that this insight is targeting.

repeated string target_resources = 9;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The targetResources at the given index.

getTargetResourcesBytes(int index)

public abstract ByteString getTargetResourcesBytes(int index)

Fully qualified resource names that this insight is targeting.

repeated string target_resources = 9;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the targetResources at the given index.

getTargetResourcesCount()

public abstract int getTargetResourcesCount()

Fully qualified resource names that this insight is targeting.

repeated string target_resources = 9;

Returns
Type Description
int

The count of targetResources.

getTargetResourcesList()

public abstract List<String> getTargetResourcesList()

Fully qualified resource names that this insight is targeting.

repeated string target_resources = 9;

Returns
Type Description
List<String>

A list containing the targetResources.

hasContent()

public abstract boolean hasContent()

A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"

.google.protobuf.Struct content = 3;

Returns
Type Description
boolean

Whether the content field is set.

hasLastRefreshTime()

public abstract boolean hasLastRefreshTime()

Timestamp of the latest data used to generate the insight.

.google.protobuf.Timestamp last_refresh_time = 4;

Returns
Type Description
boolean

Whether the lastRefreshTime field is set.

hasObservationPeriod()

public abstract 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
Type Description
boolean

Whether the observationPeriod field is set.

hasStateInfo()

public abstract boolean hasStateInfo()

Information state and metadata.

.google.cloud.recommender.v1.InsightStateInfo state_info = 6;

Returns
Type Description
boolean

Whether the stateInfo field is set.