public final class Insight extends GeneratedMessageV3 implements InsightOrBuilder
An insight along with the information used to derive the insight. The insight
may have associated recomendations as well.
Protobuf type google.cloud.recommender.v1beta1.Insight
Fields
ASSOCIATED_RECOMMENDATIONS_FIELD_NUMBER
public static final int ASSOCIATED_RECOMMENDATIONS_FIELD_NUMBER
Field Value
CATEGORY_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER
Field Value
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
Field Value
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
Field Value
INSIGHT_SUBTYPE_FIELD_NUMBER
public static final int INSIGHT_SUBTYPE_FIELD_NUMBER
Field Value
LAST_REFRESH_TIME_FIELD_NUMBER
public static final int LAST_REFRESH_TIME_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
OBSERVATION_PERIOD_FIELD_NUMBER
public static final int OBSERVATION_PERIOD_FIELD_NUMBER
Field Value
STATE_INFO_FIELD_NUMBER
public static final int STATE_INFO_FIELD_NUMBER
Field Value
TARGET_RESOURCES_FIELD_NUMBER
public static final int TARGET_RESOURCES_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAssociatedRecommendations(int index)
public Insight.RecommendationReference getAssociatedRecommendations(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
Parameter
Returns
getAssociatedRecommendationsCount()
public int getAssociatedRecommendationsCount()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
Returns
getAssociatedRecommendationsList()
public List<Insight.RecommendationReference> getAssociatedRecommendationsList()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
Returns
getAssociatedRecommendationsOrBuilder(int index)
public Insight.RecommendationReferenceOrBuilder getAssociatedRecommendationsOrBuilder(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
Parameter
Returns
getAssociatedRecommendationsOrBuilderList()
public List<? extends Insight.RecommendationReferenceOrBuilder> getAssociatedRecommendationsOrBuilderList()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
Returns
Type | Description |
List<? extends com.google.cloud.recommender.v1beta1.Insight.RecommendationReferenceOrBuilder> | |
getCategory()
public Insight.Category getCategory()
Category being targeted by the insight.
.google.cloud.recommender.v1beta1.Insight.Category category = 7;
Returns
getCategoryValue()
public int getCategoryValue()
Category being targeted by the insight.
.google.cloud.recommender.v1beta1.Insight.Category category = 7;
Returns
Type | Description |
int | The enum numeric value on the wire for category.
|
getContent()
public 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 StructOrBuilder getContentOrBuilder()
A struct of custom fields to explain the insight.
Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;
Returns
getDefaultInstance()
public static Insight getDefaultInstance()
Returns
getDefaultInstanceForType()
public Insight getDefaultInstanceForType()
Returns
getDescription()
public 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 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.
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getEtag()
Fingerprint of the Insight. Provides optimistic locking when updating
states.
string etag = 11;
Returns
Type | Description |
String | The etag.
|
getEtagBytes()
public ByteString getEtagBytes()
Fingerprint of the Insight. Provides optimistic locking when updating
states.
string etag = 11;
Returns
getInsightSubtype()
public 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 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 Timestamp getLastRefreshTime()
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;
Returns
getLastRefreshTimeOrBuilder()
public TimestampOrBuilder getLastRefreshTimeOrBuilder()
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;
Returns
getName()
Name of the insight.
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Name of the insight.
string name = 1;
Returns
getObservationPeriod()
public 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 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
getParserForType()
public Parser<Insight> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getStateInfo()
public InsightStateInfo getStateInfo()
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
Returns
getStateInfoOrBuilder()
public InsightStateInfoOrBuilder getStateInfoOrBuilder()
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
Returns
getTargetResources(int index)
public 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 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 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 ProtocolStringList getTargetResourcesList()
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasContent()
public 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 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 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 boolean hasStateInfo()
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
Returns
Type | Description |
boolean | Whether the stateInfo field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Insight.Builder newBuilder()
Returns
newBuilder(Insight prototype)
public static Insight.Builder newBuilder(Insight prototype)
Parameter
Returns
newBuilderForType()
public Insight.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Insight.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Insight parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Insight parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Insight parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Insight parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Insight parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Insight parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Insight parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Insight parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Insight parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Insight parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Insight parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Insight parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Insight> parser()
Returns
toBuilder()
public Insight.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions