Interface InsightOrBuilder (2.23.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.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
Insight.RecommendationReference

getAssociatedRecommendationsCount()

public abstract int getAssociatedRecommendationsCount()

Recommendations derived from this insight.

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

Returns
TypeDescription
int

getAssociatedRecommendationsList()

public abstract List<Insight.RecommendationReference> getAssociatedRecommendationsList()

Recommendations derived from this insight.

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

Returns
TypeDescription
List<RecommendationReference>

getAssociatedRecommendationsOrBuilder(int index)

public abstract Insight.RecommendationReferenceOrBuilder getAssociatedRecommendationsOrBuilder(int index)

Recommendations derived from this insight.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Insight.RecommendationReferenceOrBuilder

getAssociatedRecommendationsOrBuilderList()

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

Recommendations derived from this insight.

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

Returns
TypeDescription
List<? extends com.google.cloud.recommender.v1beta1.Insight.RecommendationReferenceOrBuilder>

getCategory()

public abstract Insight.Category getCategory()

Category being targeted by the insight.

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

Returns
TypeDescription
Insight.Category

The category.

getCategoryValue()

public abstract int getCategoryValue()

Category being targeted by the insight.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
StructOrBuilder

getDescription()

public abstract String getDescription()

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

string description = 2;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getEtag()

public abstract String getEtag()

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

string etag = 11;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public abstract ByteString getEtagBytes()

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

string etag = 11;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getName()

public abstract String getName()

Name of the insight.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Name of the insight.

string name = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DurationOrBuilder

getSeverity()

public abstract Insight.Severity getSeverity()

Insight's severity.

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

Returns
TypeDescription
Insight.Severity

The severity.

getSeverityValue()

public abstract int getSeverityValue()

Insight's severity.

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

Returns
TypeDescription
int

The enum numeric value on the wire for severity.

getStateInfo()

public abstract InsightStateInfo getStateInfo()

Information state and metadata.

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

Returns
TypeDescription
InsightStateInfo

The stateInfo.

getStateInfoOrBuilder()

public abstract InsightStateInfoOrBuilder getStateInfoOrBuilder()

Information state and metadata.

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

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the observationPeriod field is set.

hasStateInfo()

public abstract boolean hasStateInfo()

Information state and metadata.

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

Returns
TypeDescription
boolean

Whether the stateInfo field is set.