Class Insight.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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 type
google.cloud.recommender.v1beta1.Insight-
Method Summary
Modifier and TypeMethodDescriptionaddAllAssociatedRecommendations(Iterable<? extends Insight.RecommendationReference> values) Recommendations derived from this insight.addAllTargetResources(Iterable<String> values) Fully qualified resource names that this insight is targeting.addAssociatedRecommendations(int index, Insight.RecommendationReference value) Recommendations derived from this insight.addAssociatedRecommendations(int index, Insight.RecommendationReference.Builder builderForValue) Recommendations derived from this insight.Recommendations derived from this insight.addAssociatedRecommendations(Insight.RecommendationReference.Builder builderForValue) Recommendations derived from this insight.Recommendations derived from this insight.addAssociatedRecommendationsBuilder(int index) Recommendations derived from this insight.addTargetResources(String value) Fully qualified resource names that this insight is targeting.addTargetResourcesBytes(com.google.protobuf.ByteString value) Fully qualified resource names that this insight is targeting.build()clear()Recommendations derived from this insight.Category being targeted by the insight.A struct of custom fields to explain the insight.Free-form human readable summary in English.Fingerprint of the Insight.Insight subtype.Timestamp of the latest data used to generate the insight.Name of the insight.Observation period that led to the insight.Insight's severity.Information state and metadata.Fully qualified resource names that this insight is targeting.getAssociatedRecommendations(int index) Recommendations derived from this insight.getAssociatedRecommendationsBuilder(int index) Recommendations derived from this insight.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.Struct.BuilderA struct of custom fields to explain the insight.com.google.protobuf.StructOrBuilderA struct of custom fields to explain the insight.Free-form human readable summary in English.com.google.protobuf.ByteStringFree-form human readable summary in English.static final com.google.protobuf.Descriptors.Descriptorcom.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.Timestamp.BuilderTimestamp 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.Duration.BuilderObservation period that led to the insight.com.google.protobuf.DurationOrBuilderObservation period that led to the insight.Insight's severity.intInsight's severity.Information state and metadata.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.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 booleanmergeContent(com.google.protobuf.Struct value) A struct of custom fields to explain the insight.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastRefreshTime(com.google.protobuf.Timestamp value) Timestamp of the latest data used to generate the insight.mergeObservationPeriod(com.google.protobuf.Duration value) Observation period that led to the insight.mergeStateInfo(InsightStateInfo value) Information state and metadata.removeAssociatedRecommendations(int index) Recommendations derived from this insight.setAssociatedRecommendations(int index, Insight.RecommendationReference value) Recommendations derived from this insight.setAssociatedRecommendations(int index, Insight.RecommendationReference.Builder builderForValue) Recommendations derived from this insight.setCategory(Insight.Category value) Category being targeted by the insight.setCategoryValue(int value) Category being targeted by the insight.setContent(com.google.protobuf.Struct value) A struct of custom fields to explain the insight.setContent(com.google.protobuf.Struct.Builder builderForValue) A struct of custom fields to explain the insight.setDescription(String value) Free-form human readable summary in English.setDescriptionBytes(com.google.protobuf.ByteString value) Free-form human readable summary in English.Fingerprint of the Insight.setEtagBytes(com.google.protobuf.ByteString value) Fingerprint of the Insight.setInsightSubtype(String value) Insight subtype.setInsightSubtypeBytes(com.google.protobuf.ByteString value) Insight subtype.setLastRefreshTime(com.google.protobuf.Timestamp value) Timestamp of the latest data used to generate the insight.setLastRefreshTime(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp of the latest data used to generate the insight.Name of the insight.setNameBytes(com.google.protobuf.ByteString value) Name of the insight.setObservationPeriod(com.google.protobuf.Duration value) Observation period that led to the insight.setObservationPeriod(com.google.protobuf.Duration.Builder builderForValue) Observation period that led to the insight.setSeverity(Insight.Severity value) Insight's severity.setSeverityValue(int value) Insight's severity.setStateInfo(InsightStateInfo value) Information state and metadata.setStateInfo(InsightStateInfo.Builder builderForValue) Information state and metadata.setTargetResources(int index, String value) Fully qualified resource names that this insight is targeting.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Insight.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Insight.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Insight.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
Name of the insight.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the insight.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the insight.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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
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
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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
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
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
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
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
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;- Returns:
- This builder for chaining.
-
addTargetResourcesBytes
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
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
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
Insight subtype. Insight content schema will be stable for a given subtype.
string insight_subtype = 10;- Returns:
- This builder for chaining.
-
setInsightSubtypeBytes
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
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3; -
setContent
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3; -
mergeContent
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3; -
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
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4; -
setLastRefreshTime
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4; -
mergeLastRefreshTime
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4; -
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
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
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
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
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
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;- Specified by:
getStateInfoin interfaceInsightOrBuilder- Returns:
- The stateInfo.
-
setStateInfo
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6; -
setStateInfo
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6; -
mergeStateInfo
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6; -
clearStateInfo
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6; -
getStateInfoBuilder
Information state and metadata.
.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6; -
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
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
Category being targeted by the insight.
.google.cloud.recommender.v1beta1.Insight.Category category = 7;- Specified by:
getCategoryin interfaceInsightOrBuilder- Returns:
- The category.
-
setCategory
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
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
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
Insight's severity.
.google.cloud.recommender.v1beta1.Insight.Severity severity = 15;- Specified by:
getSeverityin interfaceInsightOrBuilder- Returns:
- The severity.
-
setSeverity
Insight's severity.
.google.cloud.recommender.v1beta1.Insight.Severity severity = 15;- Parameters:
value- The severity to set.- Returns:
- This builder for chaining.
-
clearSeverity
Insight's severity.
.google.cloud.recommender.v1beta1.Insight.Severity severity = 15;- Returns:
- This builder for chaining.
-
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
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
Fingerprint of the Insight. Provides optimistic locking when updating states.
string etag = 11;- Returns:
- This builder for chaining.
-
setEtagBytes
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
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
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
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
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8; -
removeAssociatedRecommendations
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8; -
getAssociatedRecommendationsBuilder
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8; -
getAssociatedRecommendationsOrBuilder
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
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8; -
addAssociatedRecommendationsBuilder
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8; -
getAssociatedRecommendationsBuilderList
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;
-