Package com.google.cloud.recommender.v1
Class Insight.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
- com.google.cloud.recommender.v1.Insight.Builder
-
- All Implemented Interfaces:
InsightOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Insight
public static final class Insight.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder> implements InsightOrBuilder
An insight along with the information used to derive the insight. The insight may have associated recommendations as well.
Protobuf typegoogle.cloud.recommender.v1.Insight
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Insight.Builder
addAllAssociatedRecommendations(Iterable<? extends Insight.RecommendationReference> values)
Recommendations derived from this insight.Insight.Builder
addAllTargetResources(Iterable<String> values)
Fully qualified resource names that this insight is targeting.Insight.Builder
addAssociatedRecommendations(int index, Insight.RecommendationReference value)
Recommendations derived from this insight.Insight.Builder
addAssociatedRecommendations(int index, Insight.RecommendationReference.Builder builderForValue)
Recommendations derived from this insight.Insight.Builder
addAssociatedRecommendations(Insight.RecommendationReference value)
Recommendations derived from this insight.Insight.Builder
addAssociatedRecommendations(Insight.RecommendationReference.Builder builderForValue)
Recommendations derived from this insight.Insight.RecommendationReference.Builder
addAssociatedRecommendationsBuilder()
Recommendations derived from this insight.Insight.RecommendationReference.Builder
addAssociatedRecommendationsBuilder(int index)
Recommendations derived from this insight.Insight.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Insight.Builder
addTargetResources(String value)
Fully qualified resource names that this insight is targeting.Insight.Builder
addTargetResourcesBytes(com.google.protobuf.ByteString value)
Fully qualified resource names that this insight is targeting.Insight
build()
Insight
buildPartial()
Insight.Builder
clear()
Insight.Builder
clearAssociatedRecommendations()
Recommendations derived from this insight.Insight.Builder
clearCategory()
Category being targeted by the insight.Insight.Builder
clearContent()
A struct of custom fields to explain the insight.Insight.Builder
clearDescription()
Free-form human readable summary in English.Insight.Builder
clearEtag()
Fingerprint of the Insight.Insight.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Insight.Builder
clearInsightSubtype()
Insight subtype.Insight.Builder
clearLastRefreshTime()
Timestamp of the latest data used to generate the insight.Insight.Builder
clearName()
Name of the insight.Insight.Builder
clearObservationPeriod()
Observation period that led to the insight.Insight.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Insight.Builder
clearSeverity()
Insight's severity.Insight.Builder
clearStateInfo()
Information state and metadata.Insight.Builder
clearTargetResources()
Fully qualified resource names that this insight is targeting.Insight.Builder
clone()
Insight.RecommendationReference
getAssociatedRecommendations(int index)
Recommendations derived from this insight.Insight.RecommendationReference.Builder
getAssociatedRecommendationsBuilder(int index)
Recommendations derived from this insight.List<Insight.RecommendationReference.Builder>
getAssociatedRecommendationsBuilderList()
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.Struct.Builder
getContentBuilder()
A struct of custom fields to explain the insight.com.google.protobuf.StructOrBuilder
getContentOrBuilder()
A struct of custom fields to explain the insight.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()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.Timestamp.Builder
getLastRefreshTimeBuilder()
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.Duration.Builder
getObservationPeriodBuilder()
Observation period that led to the insight.com.google.protobuf.DurationOrBuilder
getObservationPeriodOrBuilder()
Observation period that led to the insight.Insight.Severity
getSeverity()
Insight's severity.int
getSeverityValue()
Insight's severity.InsightStateInfo
getStateInfo()
Information state and metadata.InsightStateInfo.Builder
getStateInfoBuilder()
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.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()
Insight.Builder
mergeContent(com.google.protobuf.Struct value)
A struct of custom fields to explain the insight.Insight.Builder
mergeFrom(Insight other)
Insight.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Insight.Builder
mergeFrom(com.google.protobuf.Message other)
Insight.Builder
mergeLastRefreshTime(com.google.protobuf.Timestamp value)
Timestamp of the latest data used to generate the insight.Insight.Builder
mergeObservationPeriod(com.google.protobuf.Duration value)
Observation period that led to the insight.Insight.Builder
mergeStateInfo(InsightStateInfo value)
Information state and metadata.Insight.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Insight.Builder
removeAssociatedRecommendations(int index)
Recommendations derived from this insight.Insight.Builder
setAssociatedRecommendations(int index, Insight.RecommendationReference value)
Recommendations derived from this insight.Insight.Builder
setAssociatedRecommendations(int index, Insight.RecommendationReference.Builder builderForValue)
Recommendations derived from this insight.Insight.Builder
setCategory(Insight.Category value)
Category being targeted by the insight.Insight.Builder
setCategoryValue(int value)
Category being targeted by the insight.Insight.Builder
setContent(com.google.protobuf.Struct value)
A struct of custom fields to explain the insight.Insight.Builder
setContent(com.google.protobuf.Struct.Builder builderForValue)
A struct of custom fields to explain the insight.Insight.Builder
setDescription(String value)
Free-form human readable summary in English.Insight.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Free-form human readable summary in English.Insight.Builder
setEtag(String value)
Fingerprint of the Insight.Insight.Builder
setEtagBytes(com.google.protobuf.ByteString value)
Fingerprint of the Insight.Insight.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Insight.Builder
setInsightSubtype(String value)
Insight subtype.Insight.Builder
setInsightSubtypeBytes(com.google.protobuf.ByteString value)
Insight subtype.Insight.Builder
setLastRefreshTime(com.google.protobuf.Timestamp value)
Timestamp of the latest data used to generate the insight.Insight.Builder
setLastRefreshTime(com.google.protobuf.Timestamp.Builder builderForValue)
Timestamp of the latest data used to generate the insight.Insight.Builder
setName(String value)
Name of the insight.Insight.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of the insight.Insight.Builder
setObservationPeriod(com.google.protobuf.Duration value)
Observation period that led to the insight.Insight.Builder
setObservationPeriod(com.google.protobuf.Duration.Builder builderForValue)
Observation period that led to the insight.Insight.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Insight.Builder
setSeverity(Insight.Severity value)
Insight's severity.Insight.Builder
setSeverityValue(int value)
Insight's severity.Insight.Builder
setStateInfo(InsightStateInfo value)
Information state and metadata.Insight.Builder
setStateInfo(InsightStateInfo.Builder builderForValue)
Information state and metadata.Insight.Builder
setTargetResources(int index, String value)
Fully qualified resource names that this insight is targeting.Insight.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
clear
public Insight.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
getDefaultInstanceForType
public Insight getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Insight build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Insight buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Insight.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
setField
public Insight.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
clearField
public Insight.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
clearOneof
public Insight.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
setRepeatedField
public Insight.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
addRepeatedField
public Insight.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
mergeFrom
public Insight.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Insight.Builder>
-
mergeFrom
public Insight.Builder mergeFrom(Insight other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
mergeFrom
public Insight.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Insight.Builder>
- Throws:
IOException
-
getName
public String getName()
Name of the insight.
string name = 1;
- Specified by:
getName
in interfaceInsightOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of the insight.
string name = 1;
- Specified by:
getNameBytes
in interfaceInsightOrBuilder
- Returns:
- The bytes for name.
-
setName
public Insight.Builder setName(String value)
Name of the insight.
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Insight.Builder clearName()
Name of the insight.
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public Insight.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the insight.
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;
- Specified by:
getDescription
in 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:
getDescriptionBytes
in interfaceInsightOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public Insight.Builder setDescription(String value)
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Insight.Builder clearDescription()
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Insight.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getTargetResourcesList
public com.google.protobuf.ProtocolStringList getTargetResourcesList()
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;
- Specified by:
getTargetResourcesList
in 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:
getTargetResourcesCount
in interfaceInsightOrBuilder
- Returns:
- The count of targetResources.
-
getTargetResources
public String getTargetResources(int index)
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;
- Specified by:
getTargetResources
in 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:
getTargetResourcesBytes
in interfaceInsightOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the targetResources at the given index.
-
setTargetResources
public Insight.Builder setTargetResources(int index, String value)
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;
- Parameters:
index
- The index to set the value at.value
- The targetResources to set.- Returns:
- This builder for chaining.
-
addTargetResources
public Insight.Builder addTargetResources(String value)
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;
- Parameters:
value
- The targetResources to add.- Returns:
- This builder for chaining.
-
addAllTargetResources
public Insight.Builder addAllTargetResources(Iterable<String> values)
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;
- Parameters:
values
- The targetResources to add.- Returns:
- This builder for chaining.
-
clearTargetResources
public Insight.Builder clearTargetResources()
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;
- Returns:
- This builder for chaining.
-
addTargetResourcesBytes
public Insight.Builder addTargetResourcesBytes(com.google.protobuf.ByteString value)
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;
- Parameters:
value
- The bytes of the targetResources to add.- Returns:
- This builder for chaining.
-
getInsightSubtype
public String getInsightSubtype()
Insight subtype. Insight content schema will be stable for a given subtype.
string insight_subtype = 10;
- Specified by:
getInsightSubtype
in 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:
getInsightSubtypeBytes
in interfaceInsightOrBuilder
- Returns:
- The bytes for insightSubtype.
-
setInsightSubtype
public Insight.Builder setInsightSubtype(String value)
Insight subtype. Insight content schema will be stable for a given subtype.
string insight_subtype = 10;
- Parameters:
value
- The insightSubtype to set.- Returns:
- This builder for chaining.
-
clearInsightSubtype
public Insight.Builder clearInsightSubtype()
Insight subtype. Insight content schema will be stable for a given subtype.
string insight_subtype = 10;
- Returns:
- This builder for chaining.
-
setInsightSubtypeBytes
public Insight.Builder setInsightSubtypeBytes(com.google.protobuf.ByteString value)
Insight subtype. Insight content schema will be stable for a given subtype.
string insight_subtype = 10;
- Parameters:
value
- The bytes for insightSubtype to set.- Returns:
- This builder for chaining.
-
hasContent
public boolean hasContent()
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;
- Specified by:
hasContent
in 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:
getContent
in interfaceInsightOrBuilder
- Returns:
- The content.
-
setContent
public Insight.Builder setContent(com.google.protobuf.Struct value)
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;
-
setContent
public Insight.Builder setContent(com.google.protobuf.Struct.Builder builderForValue)
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;
-
mergeContent
public Insight.Builder mergeContent(com.google.protobuf.Struct value)
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;
-
clearContent
public Insight.Builder clearContent()
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;
-
getContentBuilder
public com.google.protobuf.Struct.Builder getContentBuilder()
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;
-
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:
getContentOrBuilder
in interfaceInsightOrBuilder
-
hasLastRefreshTime
public boolean hasLastRefreshTime()
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;
- Specified by:
hasLastRefreshTime
in 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:
getLastRefreshTime
in interfaceInsightOrBuilder
- Returns:
- The lastRefreshTime.
-
setLastRefreshTime
public Insight.Builder setLastRefreshTime(com.google.protobuf.Timestamp value)
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;
-
setLastRefreshTime
public Insight.Builder setLastRefreshTime(com.google.protobuf.Timestamp.Builder builderForValue)
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;
-
mergeLastRefreshTime
public Insight.Builder mergeLastRefreshTime(com.google.protobuf.Timestamp value)
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;
-
clearLastRefreshTime
public Insight.Builder clearLastRefreshTime()
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;
-
getLastRefreshTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastRefreshTimeBuilder()
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;
-
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:
getLastRefreshTimeOrBuilder
in 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:
hasObservationPeriod
in 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:
getObservationPeriod
in interfaceInsightOrBuilder
- Returns:
- The observationPeriod.
-
setObservationPeriod
public Insight.Builder setObservationPeriod(com.google.protobuf.Duration value)
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;
-
setObservationPeriod
public Insight.Builder setObservationPeriod(com.google.protobuf.Duration.Builder builderForValue)
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;
-
mergeObservationPeriod
public Insight.Builder mergeObservationPeriod(com.google.protobuf.Duration value)
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;
-
clearObservationPeriod
public Insight.Builder clearObservationPeriod()
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;
-
getObservationPeriodBuilder
public com.google.protobuf.Duration.Builder getObservationPeriodBuilder()
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
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:
getObservationPeriodOrBuilder
in interfaceInsightOrBuilder
-
hasStateInfo
public boolean hasStateInfo()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
- Specified by:
hasStateInfo
in interfaceInsightOrBuilder
- Returns:
- Whether the stateInfo field is set.
-
getStateInfo
public InsightStateInfo getStateInfo()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
- Specified by:
getStateInfo
in interfaceInsightOrBuilder
- Returns:
- The stateInfo.
-
setStateInfo
public Insight.Builder setStateInfo(InsightStateInfo value)
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
-
setStateInfo
public Insight.Builder setStateInfo(InsightStateInfo.Builder builderForValue)
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
-
mergeStateInfo
public Insight.Builder mergeStateInfo(InsightStateInfo value)
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
-
clearStateInfo
public Insight.Builder clearStateInfo()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
-
getStateInfoBuilder
public InsightStateInfo.Builder getStateInfoBuilder()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
-
getStateInfoOrBuilder
public InsightStateInfoOrBuilder getStateInfoOrBuilder()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
- Specified by:
getStateInfoOrBuilder
in interfaceInsightOrBuilder
-
getCategoryValue
public int getCategoryValue()
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;
- Specified by:
getCategoryValue
in interfaceInsightOrBuilder
- Returns:
- The enum numeric value on the wire for category.
-
setCategoryValue
public Insight.Builder setCategoryValue(int value)
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;
- Parameters:
value
- The enum numeric value on the wire for category to set.- Returns:
- This builder for chaining.
-
getCategory
public Insight.Category getCategory()
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;
- Specified by:
getCategory
in interfaceInsightOrBuilder
- Returns:
- The category.
-
setCategory
public Insight.Builder setCategory(Insight.Category value)
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;
- Parameters:
value
- The category to set.- Returns:
- This builder for chaining.
-
clearCategory
public Insight.Builder clearCategory()
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;
- Returns:
- This builder for chaining.
-
getSeverityValue
public int getSeverityValue()
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;
- Specified by:
getSeverityValue
in interfaceInsightOrBuilder
- Returns:
- The enum numeric value on the wire for severity.
-
setSeverityValue
public Insight.Builder setSeverityValue(int value)
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;
- Parameters:
value
- The enum numeric value on the wire for severity to set.- Returns:
- This builder for chaining.
-
getSeverity
public Insight.Severity getSeverity()
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;
- Specified by:
getSeverity
in interfaceInsightOrBuilder
- Returns:
- The severity.
-
setSeverity
public Insight.Builder setSeverity(Insight.Severity value)
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;
- Parameters:
value
- The severity to set.- Returns:
- This builder for chaining.
-
clearSeverity
public Insight.Builder clearSeverity()
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;
- Returns:
- This builder for chaining.
-
getEtag
public String getEtag()
Fingerprint of the Insight. Provides optimistic locking when updating states.
string etag = 11;
- Specified by:
getEtag
in 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:
getEtagBytes
in interfaceInsightOrBuilder
- Returns:
- The bytes for etag.
-
setEtag
public Insight.Builder setEtag(String value)
Fingerprint of the Insight. Provides optimistic locking when updating states.
string etag = 11;
- Parameters:
value
- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
public Insight.Builder clearEtag()
Fingerprint of the Insight. Provides optimistic locking when updating states.
string etag = 11;
- Returns:
- This builder for chaining.
-
setEtagBytes
public Insight.Builder setEtagBytes(com.google.protobuf.ByteString value)
Fingerprint of the Insight. Provides optimistic locking when updating states.
string etag = 11;
- Parameters:
value
- The bytes for etag to set.- Returns:
- This builder for chaining.
-
getAssociatedRecommendationsList
public List<Insight.RecommendationReference> getAssociatedRecommendationsList()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
- Specified by:
getAssociatedRecommendationsList
in interfaceInsightOrBuilder
-
getAssociatedRecommendationsCount
public int getAssociatedRecommendationsCount()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
- Specified by:
getAssociatedRecommendationsCount
in interfaceInsightOrBuilder
-
getAssociatedRecommendations
public Insight.RecommendationReference getAssociatedRecommendations(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
- Specified by:
getAssociatedRecommendations
in interfaceInsightOrBuilder
-
setAssociatedRecommendations
public Insight.Builder setAssociatedRecommendations(int index, Insight.RecommendationReference value)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
setAssociatedRecommendations
public Insight.Builder setAssociatedRecommendations(int index, Insight.RecommendationReference.Builder builderForValue)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
addAssociatedRecommendations
public Insight.Builder addAssociatedRecommendations(Insight.RecommendationReference value)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
addAssociatedRecommendations
public Insight.Builder addAssociatedRecommendations(int index, Insight.RecommendationReference value)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
addAssociatedRecommendations
public Insight.Builder addAssociatedRecommendations(Insight.RecommendationReference.Builder builderForValue)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
addAssociatedRecommendations
public Insight.Builder addAssociatedRecommendations(int index, Insight.RecommendationReference.Builder builderForValue)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
addAllAssociatedRecommendations
public Insight.Builder addAllAssociatedRecommendations(Iterable<? extends Insight.RecommendationReference> values)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
clearAssociatedRecommendations
public Insight.Builder clearAssociatedRecommendations()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
removeAssociatedRecommendations
public Insight.Builder removeAssociatedRecommendations(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
getAssociatedRecommendationsBuilder
public Insight.RecommendationReference.Builder getAssociatedRecommendationsBuilder(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
getAssociatedRecommendationsOrBuilder
public Insight.RecommendationReferenceOrBuilder getAssociatedRecommendationsOrBuilder(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
- Specified by:
getAssociatedRecommendationsOrBuilder
in interfaceInsightOrBuilder
-
getAssociatedRecommendationsOrBuilderList
public List<? extends Insight.RecommendationReferenceOrBuilder> getAssociatedRecommendationsOrBuilderList()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
- Specified by:
getAssociatedRecommendationsOrBuilderList
in interfaceInsightOrBuilder
-
addAssociatedRecommendationsBuilder
public Insight.RecommendationReference.Builder addAssociatedRecommendationsBuilder()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
addAssociatedRecommendationsBuilder
public Insight.RecommendationReference.Builder addAssociatedRecommendationsBuilder(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
getAssociatedRecommendationsBuilderList
public List<Insight.RecommendationReference.Builder> getAssociatedRecommendationsBuilderList()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
-
setUnknownFields
public final Insight.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
mergeUnknownFields
public final Insight.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
-