Class Insight
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.recommender.v1beta1.Insight
- All Implemented Interfaces:
InsightOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Insight
extends com.google.protobuf.GeneratedMessage
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.v1beta1.Insight- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn insight along with the information used to derive the insight.static enumInsight category.static final classReference to an associated recommendation.static interfacestatic enumInsight severity levels.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAssociatedRecommendations(int index) Recommendations derived from this insight.intRecommendations derived from this insight.Recommendations derived from this insight.getAssociatedRecommendationsOrBuilder(int index) Recommendations derived from this insight.List<? extends Insight.RecommendationReferenceOrBuilder>Recommendations derived from this insight.Category being targeted by the insight.intCategory being targeted by the insight.com.google.protobuf.StructA struct of custom fields to explain the insight.com.google.protobuf.StructOrBuilderA struct of custom fields to explain the insight.static InsightFree-form human readable summary in English.com.google.protobuf.ByteStringFree-form human readable summary in English.static final com.google.protobuf.Descriptors.DescriptorgetEtag()Fingerprint of the Insight.com.google.protobuf.ByteStringFingerprint of the Insight.Insight subtype.com.google.protobuf.ByteStringInsight subtype.com.google.protobuf.TimestampTimestamp of the latest data used to generate the insight.com.google.protobuf.TimestampOrBuilderTimestamp of the latest data used to generate the insight.getName()Name of the insight.com.google.protobuf.ByteStringName of the insight.com.google.protobuf.DurationObservation period that led to the insight.com.google.protobuf.DurationOrBuilderObservation period that led to the insight.com.google.protobuf.Parser<Insight>intInsight's severity.intInsight's severity.Information state and metadata.Information state and metadata.getTargetResources(int index) Fully qualified resource names that this insight is targeting.com.google.protobuf.ByteStringgetTargetResourcesBytes(int index) Fully qualified resource names that this insight is targeting.intFully qualified resource names that this insight is targeting.com.google.protobuf.ProtocolStringListFully qualified resource names that this insight is targeting.booleanA struct of custom fields to explain the insight.inthashCode()booleanTimestamp of the latest data used to generate the insight.booleanObservation period that led to the insight.booleanInformation state and metadata.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Insight.Builderstatic Insight.BuildernewBuilder(Insight prototype) protected Insight.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static InsightparseDelimitedFrom(InputStream input) static InsightparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InsightparseFrom(byte[] data) static InsightparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InsightparseFrom(com.google.protobuf.ByteString data) static InsightparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InsightparseFrom(com.google.protobuf.CodedInputStream input) static InsightparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InsightparseFrom(InputStream input) static InsightparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InsightparseFrom(ByteBuffer data) static InsightparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Insight>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
TARGET_RESOURCES_FIELD_NUMBER
public static final int TARGET_RESOURCES_FIELD_NUMBER- See Also:
-
INSIGHT_SUBTYPE_FIELD_NUMBER
public static final int INSIGHT_SUBTYPE_FIELD_NUMBER- See Also:
-
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER- See Also:
-
LAST_REFRESH_TIME_FIELD_NUMBER
public static final int LAST_REFRESH_TIME_FIELD_NUMBER- See Also:
-
OBSERVATION_PERIOD_FIELD_NUMBER
public static final int OBSERVATION_PERIOD_FIELD_NUMBER- See Also:
-
STATE_INFO_FIELD_NUMBER
public static final int STATE_INFO_FIELD_NUMBER- See Also:
-
CATEGORY_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER- See Also:
-
SEVERITY_FIELD_NUMBER
public static final int SEVERITY_FIELD_NUMBER- See Also:
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER- See Also:
-
ASSOCIATED_RECOMMENDATIONS_FIELD_NUMBER
public static final int ASSOCIATED_RECOMMENDATIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Name of the insight.
string name = 1;- Specified by:
getNamein interfaceInsightOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the insight.
string name = 1;- Specified by:
getNameBytesin interfaceInsightOrBuilder- Returns:
- The bytes for name.
-
getDescription
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;- Specified by:
getDescriptionin interfaceInsightOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;- Specified by:
getDescriptionBytesin interfaceInsightOrBuilder- Returns:
- The bytes for description.
-
getTargetResourcesList
public com.google.protobuf.ProtocolStringList getTargetResourcesList()Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;- Specified by:
getTargetResourcesListin interfaceInsightOrBuilder- Returns:
- A list containing the targetResources.
-
getTargetResourcesCount
public int getTargetResourcesCount()Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;- Specified by:
getTargetResourcesCountin interfaceInsightOrBuilder- Returns:
- The count of targetResources.
-
getTargetResources
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;- Specified by:
getTargetResourcesin interfaceInsightOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The targetResources at the given index.
-
getTargetResourcesBytes
public com.google.protobuf.ByteString getTargetResourcesBytes(int index) Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;- Specified by:
getTargetResourcesBytesin interfaceInsightOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the targetResources at the given index.
-
getInsightSubtype
Insight subtype. Insight content schema will be stable for a given subtype.
string insight_subtype = 10;- Specified by:
getInsightSubtypein interfaceInsightOrBuilder- Returns:
- The insightSubtype.
-
getInsightSubtypeBytes
public com.google.protobuf.ByteString getInsightSubtypeBytes()Insight subtype. Insight content schema will be stable for a given subtype.
string insight_subtype = 10;- Specified by:
getInsightSubtypeBytesin interfaceInsightOrBuilder- Returns:
- The bytes for insightSubtype.
-
hasContent
public boolean hasContent()A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;- Specified by:
hasContentin interfaceInsightOrBuilder- Returns:
- Whether the content field is set.
-
getContent
public com.google.protobuf.Struct getContent()A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;- Specified by:
getContentin interfaceInsightOrBuilder- Returns:
- The content.
-
getContentOrBuilder
public com.google.protobuf.StructOrBuilder getContentOrBuilder()A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;- Specified by:
getContentOrBuilderin interfaceInsightOrBuilder
-
hasLastRefreshTime
public boolean hasLastRefreshTime()Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;- Specified by:
hasLastRefreshTimein interfaceInsightOrBuilder- Returns:
- Whether the lastRefreshTime field is set.
-
getLastRefreshTime
public com.google.protobuf.Timestamp getLastRefreshTime()Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;- Specified by:
getLastRefreshTimein interfaceInsightOrBuilder- Returns:
- The lastRefreshTime.
-
getLastRefreshTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastRefreshTimeOrBuilder()Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;- Specified by:
getLastRefreshTimeOrBuilderin interfaceInsightOrBuilder
-
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;- Specified by:
hasObservationPeriodin interfaceInsightOrBuilder- Returns:
- Whether the observationPeriod field is set.
-
getObservationPeriod
public 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;- Specified by:
getObservationPeriodin interfaceInsightOrBuilder- Returns:
- The observationPeriod.
-
getObservationPeriodOrBuilder
public 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;- Specified by:
getObservationPeriodOrBuilderin interfaceInsightOrBuilder
-
hasStateInfo
public boolean hasStateInfo()Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;- Specified by:
hasStateInfoin interfaceInsightOrBuilder- Returns:
- Whether the stateInfo field is set.
-
getStateInfo
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;- Specified by:
getStateInfoin interfaceInsightOrBuilder- Returns:
- The stateInfo.
-
getStateInfoOrBuilder
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;- Specified by:
getStateInfoOrBuilderin interfaceInsightOrBuilder
-
getCategoryValue
public int getCategoryValue()Category being targeted by the insight.
.google.cloud.recommender.v1beta1.Insight.Category category = 7;- Specified by:
getCategoryValuein interfaceInsightOrBuilder- Returns:
- The enum numeric value on the wire for category.
-
getCategory
Category being targeted by the insight.
.google.cloud.recommender.v1beta1.Insight.Category category = 7;- Specified by:
getCategoryin interfaceInsightOrBuilder- Returns:
- The category.
-
getSeverityValue
public int getSeverityValue()Insight's severity.
.google.cloud.recommender.v1beta1.Insight.Severity severity = 15;- Specified by:
getSeverityValuein interfaceInsightOrBuilder- Returns:
- The enum numeric value on the wire for severity.
-
getSeverity
Insight's severity.
.google.cloud.recommender.v1beta1.Insight.Severity severity = 15;- Specified by:
getSeverityin interfaceInsightOrBuilder- Returns:
- The severity.
-
getEtag
Fingerprint of the Insight. Provides optimistic locking when updating states.
string etag = 11;- Specified by:
getEtagin interfaceInsightOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()Fingerprint of the Insight. Provides optimistic locking when updating states.
string etag = 11;- Specified by:
getEtagBytesin interfaceInsightOrBuilder- Returns:
- The bytes for etag.
-
getAssociatedRecommendationsList
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;- Specified by:
getAssociatedRecommendationsListin interfaceInsightOrBuilder
-
getAssociatedRecommendationsOrBuilderList
public List<? extends Insight.RecommendationReferenceOrBuilder> getAssociatedRecommendationsOrBuilderList()Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;- Specified by:
getAssociatedRecommendationsOrBuilderListin interfaceInsightOrBuilder
-
getAssociatedRecommendationsCount
public int getAssociatedRecommendationsCount()Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;- Specified by:
getAssociatedRecommendationsCountin interfaceInsightOrBuilder
-
getAssociatedRecommendations
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;- Specified by:
getAssociatedRecommendationsin interfaceInsightOrBuilder
-
getAssociatedRecommendationsOrBuilder
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;- Specified by:
getAssociatedRecommendationsOrBuilderin interfaceInsightOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Insight parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Insight parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Insight parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Insight parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Insight parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Insight parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Insight parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Insight parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Insight parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Insight.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-