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.v1beta1.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.v1beta1.Insight
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Insight.BuilderaddAllAssociatedRecommendations(Iterable<? extends Insight.RecommendationReference> values)Recommendations derived from this insight.Insight.BuilderaddAllTargetResources(Iterable<String> values)Fully qualified resource names that this insight is targeting.Insight.BuilderaddAssociatedRecommendations(int index, Insight.RecommendationReference value)Recommendations derived from this insight.Insight.BuilderaddAssociatedRecommendations(int index, Insight.RecommendationReference.Builder builderForValue)Recommendations derived from this insight.Insight.BuilderaddAssociatedRecommendations(Insight.RecommendationReference value)Recommendations derived from this insight.Insight.BuilderaddAssociatedRecommendations(Insight.RecommendationReference.Builder builderForValue)Recommendations derived from this insight.Insight.RecommendationReference.BuilderaddAssociatedRecommendationsBuilder()Recommendations derived from this insight.Insight.RecommendationReference.BuilderaddAssociatedRecommendationsBuilder(int index)Recommendations derived from this insight.Insight.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Insight.BuilderaddTargetResources(String value)Fully qualified resource names that this insight is targeting.Insight.BuilderaddTargetResourcesBytes(com.google.protobuf.ByteString value)Fully qualified resource names that this insight is targeting.Insightbuild()InsightbuildPartial()Insight.Builderclear()Insight.BuilderclearAssociatedRecommendations()Recommendations derived from this insight.Insight.BuilderclearCategory()Category being targeted by the insight.Insight.BuilderclearContent()A struct of custom fields to explain the insight.Insight.BuilderclearDescription()Free-form human readable summary in English.Insight.BuilderclearEtag()Fingerprint of the Insight.Insight.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Insight.BuilderclearInsightSubtype()Insight subtype.Insight.BuilderclearLastRefreshTime()Timestamp of the latest data used to generate the insight.Insight.BuilderclearName()Name of the insight.Insight.BuilderclearObservationPeriod()Observation period that led to the insight.Insight.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Insight.BuilderclearSeverity()Insight's severity.Insight.BuilderclearStateInfo()Information state and metadata.Insight.BuilderclearTargetResources()Fully qualified resource names that this insight is targeting.Insight.Builderclone()Insight.RecommendationReferencegetAssociatedRecommendations(int index)Recommendations derived from this insight.Insight.RecommendationReference.BuildergetAssociatedRecommendationsBuilder(int index)Recommendations derived from this insight.List<Insight.RecommendationReference.Builder>getAssociatedRecommendationsBuilderList()Recommendations derived from this insight.intgetAssociatedRecommendationsCount()Recommendations derived from this insight.List<Insight.RecommendationReference>getAssociatedRecommendationsList()Recommendations derived from this insight.Insight.RecommendationReferenceOrBuildergetAssociatedRecommendationsOrBuilder(int index)Recommendations derived from this insight.List<? extends Insight.RecommendationReferenceOrBuilder>getAssociatedRecommendationsOrBuilderList()Recommendations derived from this insight.Insight.CategorygetCategory()Category being targeted by the insight.intgetCategoryValue()Category being targeted by the insight.com.google.protobuf.StructgetContent()A struct of custom fields to explain the insight.com.google.protobuf.Struct.BuildergetContentBuilder()A struct of custom fields to explain the insight.com.google.protobuf.StructOrBuildergetContentOrBuilder()A struct of custom fields to explain the insight.InsightgetDefaultInstanceForType()StringgetDescription()Free-form human readable summary in English.com.google.protobuf.ByteStringgetDescriptionBytes()Free-form human readable summary in English.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEtag()Fingerprint of the Insight.com.google.protobuf.ByteStringgetEtagBytes()Fingerprint of the Insight.StringgetInsightSubtype()Insight subtype.com.google.protobuf.ByteStringgetInsightSubtypeBytes()Insight subtype.com.google.protobuf.TimestampgetLastRefreshTime()Timestamp of the latest data used to generate the insight.com.google.protobuf.Timestamp.BuildergetLastRefreshTimeBuilder()Timestamp of the latest data used to generate the insight.com.google.protobuf.TimestampOrBuildergetLastRefreshTimeOrBuilder()Timestamp of the latest data used to generate the insight.StringgetName()Name of the insight.com.google.protobuf.ByteStringgetNameBytes()Name of the insight.com.google.protobuf.DurationgetObservationPeriod()Observation period that led to the insight.com.google.protobuf.Duration.BuildergetObservationPeriodBuilder()Observation period that led to the insight.com.google.protobuf.DurationOrBuildergetObservationPeriodOrBuilder()Observation period that led to the insight.Insight.SeveritygetSeverity()Insight's severity.intgetSeverityValue()Insight's severity.InsightStateInfogetStateInfo()Information state and metadata.InsightStateInfo.BuildergetStateInfoBuilder()Information state and metadata.InsightStateInfoOrBuildergetStateInfoOrBuilder()Information state and metadata.StringgetTargetResources(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.intgetTargetResourcesCount()Fully qualified resource names that this insight is targeting.com.google.protobuf.ProtocolStringListgetTargetResourcesList()Fully qualified resource names that this insight is targeting.booleanhasContent()A struct of custom fields to explain the insight.booleanhasLastRefreshTime()Timestamp of the latest data used to generate the insight.booleanhasObservationPeriod()Observation period that led to the insight.booleanhasStateInfo()Information state and metadata.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Insight.BuildermergeContent(com.google.protobuf.Struct value)A struct of custom fields to explain the insight.Insight.BuildermergeFrom(Insight other)Insight.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Insight.BuildermergeFrom(com.google.protobuf.Message other)Insight.BuildermergeLastRefreshTime(com.google.protobuf.Timestamp value)Timestamp of the latest data used to generate the insight.Insight.BuildermergeObservationPeriod(com.google.protobuf.Duration value)Observation period that led to the insight.Insight.BuildermergeStateInfo(InsightStateInfo value)Information state and metadata.Insight.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Insight.BuilderremoveAssociatedRecommendations(int index)Recommendations derived from this insight.Insight.BuildersetAssociatedRecommendations(int index, Insight.RecommendationReference value)Recommendations derived from this insight.Insight.BuildersetAssociatedRecommendations(int index, Insight.RecommendationReference.Builder builderForValue)Recommendations derived from this insight.Insight.BuildersetCategory(Insight.Category value)Category being targeted by the insight.Insight.BuildersetCategoryValue(int value)Category being targeted by the insight.Insight.BuildersetContent(com.google.protobuf.Struct value)A struct of custom fields to explain the insight.Insight.BuildersetContent(com.google.protobuf.Struct.Builder builderForValue)A struct of custom fields to explain the insight.Insight.BuildersetDescription(String value)Free-form human readable summary in English.Insight.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Free-form human readable summary in English.Insight.BuildersetEtag(String value)Fingerprint of the Insight.Insight.BuildersetEtagBytes(com.google.protobuf.ByteString value)Fingerprint of the Insight.Insight.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Insight.BuildersetInsightSubtype(String value)Insight subtype.Insight.BuildersetInsightSubtypeBytes(com.google.protobuf.ByteString value)Insight subtype.Insight.BuildersetLastRefreshTime(com.google.protobuf.Timestamp value)Timestamp of the latest data used to generate the insight.Insight.BuildersetLastRefreshTime(com.google.protobuf.Timestamp.Builder builderForValue)Timestamp of the latest data used to generate the insight.Insight.BuildersetName(String value)Name of the insight.Insight.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of the insight.Insight.BuildersetObservationPeriod(com.google.protobuf.Duration value)Observation period that led to the insight.Insight.BuildersetObservationPeriod(com.google.protobuf.Duration.Builder builderForValue)Observation period that led to the insight.Insight.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Insight.BuildersetSeverity(Insight.Severity value)Insight's severity.Insight.BuildersetSeverityValue(int value)Insight's severity.Insight.BuildersetStateInfo(InsightStateInfo value)Information state and metadata.Insight.BuildersetStateInfo(InsightStateInfo.Builder builderForValue)Information state and metadata.Insight.BuildersetTargetResources(int index, String value)Fully qualified resource names that this insight is targeting.Insight.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
clear
public Insight.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
getDefaultInstanceForType
public Insight getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Insight build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Insight buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Insight.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
setField
public Insight.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
clearField
public Insight.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
clearOneof
public Insight.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
setRepeatedField
public Insight.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
addRepeatedField
public Insight.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
mergeFrom
public Insight.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Insight.Builder>
-
mergeFrom
public Insight.Builder mergeFrom(Insight other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Insight.Builder>- Throws:
IOException
-
getName
public String 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.
-
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:
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.
-
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:
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
public String getTargetResources(int index)
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.
-
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:
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.
-
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:
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.
-
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:
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.
-
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:
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.
-
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:
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
public InsightStateInfo getStateInfo()
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;- Specified by:
getStateInfoin interfaceInsightOrBuilder- Returns:
- The stateInfo.
-
setStateInfo
public Insight.Builder setStateInfo(InsightStateInfo value)
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
-
setStateInfo
public Insight.Builder setStateInfo(InsightStateInfo.Builder builderForValue)
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
-
mergeStateInfo
public Insight.Builder mergeStateInfo(InsightStateInfo value)
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
-
clearStateInfo
public Insight.Builder clearStateInfo()
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
-
getStateInfoBuilder
public InsightStateInfo.Builder getStateInfoBuilder()
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;
-
getStateInfoOrBuilder
public InsightStateInfoOrBuilder 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.
-
setCategoryValue
public Insight.Builder setCategoryValue(int value)
Category being targeted by the insight.
.google.cloud.recommender.v1beta1.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.v1beta1.Insight.Category category = 7;- Specified by:
getCategoryin interfaceInsightOrBuilder- Returns:
- The category.
-
setCategory
public Insight.Builder setCategory(Insight.Category value)
Category being targeted by the insight.
.google.cloud.recommender.v1beta1.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.v1beta1.Insight.Category category = 7;- Returns:
- This builder for chaining.
-
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.
-
setSeverityValue
public Insight.Builder setSeverityValue(int value)
Insight's severity.
.google.cloud.recommender.v1beta1.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.v1beta1.Insight.Severity severity = 15;- Specified by:
getSeverityin interfaceInsightOrBuilder- Returns:
- The severity.
-
setSeverity
public Insight.Builder setSeverity(Insight.Severity value)
Insight's severity.
.google.cloud.recommender.v1beta1.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.v1beta1.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:
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.
-
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.v1beta1.Insight.RecommendationReference associated_recommendations = 8;- Specified by:
getAssociatedRecommendationsListin 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
public Insight.RecommendationReference getAssociatedRecommendations(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;- Specified by:
getAssociatedRecommendationsin interfaceInsightOrBuilder
-
setAssociatedRecommendations
public Insight.Builder setAssociatedRecommendations(int index, Insight.RecommendationReference value)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.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.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
-
addAssociatedRecommendations
public Insight.Builder addAssociatedRecommendations(Insight.RecommendationReference value)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
-
addAssociatedRecommendations
public Insight.Builder addAssociatedRecommendations(int index, Insight.RecommendationReference value)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
-
addAssociatedRecommendations
public Insight.Builder addAssociatedRecommendations(Insight.RecommendationReference.Builder builderForValue)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.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.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
-
addAllAssociatedRecommendations
public Insight.Builder addAllAssociatedRecommendations(Iterable<? extends Insight.RecommendationReference> values)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
-
clearAssociatedRecommendations
public Insight.Builder clearAssociatedRecommendations()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
-
removeAssociatedRecommendations
public Insight.Builder removeAssociatedRecommendations(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
-
getAssociatedRecommendationsBuilder
public Insight.RecommendationReference.Builder getAssociatedRecommendationsBuilder(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
-
getAssociatedRecommendationsOrBuilder
public Insight.RecommendationReferenceOrBuilder getAssociatedRecommendationsOrBuilder(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;- Specified by:
getAssociatedRecommendationsOrBuilderin 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
-
addAssociatedRecommendationsBuilder
public Insight.RecommendationReference.Builder addAssociatedRecommendationsBuilder()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
-
addAssociatedRecommendationsBuilder
public Insight.RecommendationReference.Builder addAssociatedRecommendationsBuilder(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
-
getAssociatedRecommendationsBuilderList
public List<Insight.RecommendationReference.Builder> getAssociatedRecommendationsBuilderList()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
-
setUnknownFields
public final Insight.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
mergeUnknownFields
public final Insight.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Insight.Builder>
-
-