public final class Insight extends com.google.protobuf.GeneratedMessageV3 implements InsightOrBuilder
An insight along with the information used to derive the insight. The insight may have associated recommendations as well.Protobuf type
google.cloud.recommender.v1.Insight| Modifier and Type | Class and Description |
|---|---|
static class |
Insight.Builder
An insight along with the information used to derive the insight.
|
static class |
Insight.Category
Insight category.
|
static class |
Insight.RecommendationReference
Reference to an associated recommendation.
|
static interface |
Insight.RecommendationReferenceOrBuilder |
static class |
Insight.Severity
Insight severity levels.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ASSOCIATED_RECOMMENDATIONS_FIELD_NUMBER |
static int |
CATEGORY_FIELD_NUMBER |
static int |
CONTENT_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
ETAG_FIELD_NUMBER |
static int |
INSIGHT_SUBTYPE_FIELD_NUMBER |
static int |
LAST_REFRESH_TIME_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
OBSERVATION_PERIOD_FIELD_NUMBER |
static int |
SEVERITY_FIELD_NUMBER |
static int |
STATE_INFO_FIELD_NUMBER |
static int |
TARGET_RESOURCES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
static Insight |
getDefaultInstance() |
Insight |
getDefaultInstanceForType() |
String |
getDescription()
Free-form human readable summary in English.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Free-form human readable summary in English.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<Insight> |
getParserForType() |
int |
getSerializedSize() |
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.
|
com.google.protobuf.ProtocolStringList |
getTargetResourcesList()
Fully qualified resource names that this insight is targeting.
|
boolean |
hasContent()
A struct of custom fields to explain the insight.
|
int |
hashCode() |
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Insight.Builder |
newBuilder() |
static Insight.Builder |
newBuilder(Insight prototype) |
Insight.Builder |
newBuilderForType() |
protected Insight.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Insight |
parseDelimitedFrom(InputStream input) |
static Insight |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Insight |
parseFrom(byte[] data) |
static Insight |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Insight |
parseFrom(ByteBuffer data) |
static Insight |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Insight |
parseFrom(com.google.protobuf.ByteString data) |
static Insight |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Insight |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Insight |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Insight |
parseFrom(InputStream input) |
static Insight |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Insight> |
parser() |
Insight.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int TARGET_RESOURCES_FIELD_NUMBER
public static final int INSIGHT_SUBTYPE_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
public static final int LAST_REFRESH_TIME_FIELD_NUMBER
public static final int OBSERVATION_PERIOD_FIELD_NUMBER
public static final int STATE_INFO_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER
public static final int SEVERITY_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
public static final int ASSOCIATED_RECOMMENDATIONS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Name of the insight.
string name = 1;getName in interface InsightOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the insight.
string name = 1;getNameBytes in interface InsightOrBuilderpublic String getDescription()
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;getDescription in interface InsightOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;getDescriptionBytes in interface InsightOrBuilderpublic com.google.protobuf.ProtocolStringList getTargetResourcesList()
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;getTargetResourcesList in interface InsightOrBuilderpublic int getTargetResourcesCount()
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;getTargetResourcesCount in interface InsightOrBuilderpublic String getTargetResources(int index)
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;getTargetResources in interface InsightOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getTargetResourcesBytes(int index)
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;getTargetResourcesBytes in interface InsightOrBuilderindex - The index of the value to return.public String getInsightSubtype()
Insight subtype. Insight content schema will be stable for a given subtype.
string insight_subtype = 10;getInsightSubtype in interface InsightOrBuilderpublic com.google.protobuf.ByteString getInsightSubtypeBytes()
Insight subtype. Insight content schema will be stable for a given subtype.
string insight_subtype = 10;getInsightSubtypeBytes in interface InsightOrBuilderpublic boolean hasContent()
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;hasContent in interface InsightOrBuilderpublic com.google.protobuf.Struct getContent()
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;getContent in interface InsightOrBuilderpublic com.google.protobuf.StructOrBuilder getContentOrBuilder()
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;getContentOrBuilder in interface InsightOrBuilderpublic boolean hasLastRefreshTime()
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;hasLastRefreshTime in interface InsightOrBuilderpublic com.google.protobuf.Timestamp getLastRefreshTime()
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;getLastRefreshTime in interface InsightOrBuilderpublic com.google.protobuf.TimestampOrBuilder getLastRefreshTimeOrBuilder()
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;getLastRefreshTimeOrBuilder in interface InsightOrBuilderpublic 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;hasObservationPeriod in interface InsightOrBuilderpublic 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;getObservationPeriod in interface InsightOrBuilderpublic 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;getObservationPeriodOrBuilder in interface InsightOrBuilderpublic boolean hasStateInfo()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;hasStateInfo in interface InsightOrBuilderpublic InsightStateInfo getStateInfo()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;getStateInfo in interface InsightOrBuilderpublic InsightStateInfoOrBuilder getStateInfoOrBuilder()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;getStateInfoOrBuilder in interface InsightOrBuilderpublic int getCategoryValue()
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;getCategoryValue in interface InsightOrBuilderpublic Insight.Category getCategory()
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;getCategory in interface InsightOrBuilderpublic int getSeverityValue()
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;getSeverityValue in interface InsightOrBuilderpublic Insight.Severity getSeverity()
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;getSeverity in interface InsightOrBuilderpublic String getEtag()
Fingerprint of the Insight. Provides optimistic locking when updating states.
string etag = 11;getEtag in interface InsightOrBuilderpublic com.google.protobuf.ByteString getEtagBytes()
Fingerprint of the Insight. Provides optimistic locking when updating states.
string etag = 11;getEtagBytes in interface InsightOrBuilderpublic List<Insight.RecommendationReference> getAssociatedRecommendationsList()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
getAssociatedRecommendationsList in interface InsightOrBuilderpublic List<? extends Insight.RecommendationReferenceOrBuilder> getAssociatedRecommendationsOrBuilderList()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
getAssociatedRecommendationsOrBuilderList in interface InsightOrBuilderpublic int getAssociatedRecommendationsCount()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
getAssociatedRecommendationsCount in interface InsightOrBuilderpublic Insight.RecommendationReference getAssociatedRecommendations(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
getAssociatedRecommendations in interface InsightOrBuilderpublic Insight.RecommendationReferenceOrBuilder getAssociatedRecommendationsOrBuilder(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
getAssociatedRecommendationsOrBuilder in interface InsightOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Insight parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Insight parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Insight parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Insight parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Insight parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Insight parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Insight parseFrom(InputStream input) throws IOException
IOExceptionpublic static Insight parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Insight parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Insight parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Insight parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Insight parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Insight.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Insight.Builder newBuilder()
public static Insight.Builder newBuilder(Insight prototype)
public Insight.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Insight.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Insight getDefaultInstance()
public static com.google.protobuf.Parser<Insight> parser()
public com.google.protobuf.Parser<Insight> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Insight getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.