Class Insight.Builder (2.29.0)

public static final class Insight.Builder extends 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 type google.cloud.recommender.v1beta1.Insight

Implements

InsightOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllAssociatedRecommendations(Iterable<? extends Insight.RecommendationReference> values)

public Insight.Builder addAllAssociatedRecommendations(Iterable<? extends Insight.RecommendationReference> values)

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.recommender.v1beta1.Insight.RecommendationReference>
Returns
TypeDescription
Insight.Builder

addAllTargetResources(Iterable<String> values)

public Insight.Builder addAllTargetResources(Iterable<String> values)

Fully qualified resource names that this insight is targeting.

repeated string target_resources = 9;

Parameter
NameDescription
valuesIterable<String>

The targetResources to add.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

addAssociatedRecommendations(Insight.RecommendationReference value)

public Insight.Builder addAssociatedRecommendations(Insight.RecommendationReference value)

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Parameter
NameDescription
valueInsight.RecommendationReference
Returns
TypeDescription
Insight.Builder

addAssociatedRecommendations(Insight.RecommendationReference.Builder builderForValue)

public Insight.Builder addAssociatedRecommendations(Insight.RecommendationReference.Builder builderForValue)

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Parameter
NameDescription
builderForValueInsight.RecommendationReference.Builder
Returns
TypeDescription
Insight.Builder

addAssociatedRecommendations(int index, Insight.RecommendationReference value)

public Insight.Builder addAssociatedRecommendations(int index, Insight.RecommendationReference value)

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Parameters
NameDescription
indexint
valueInsight.RecommendationReference
Returns
TypeDescription
Insight.Builder

addAssociatedRecommendations(int index, Insight.RecommendationReference.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueInsight.RecommendationReference.Builder
Returns
TypeDescription
Insight.Builder

addAssociatedRecommendationsBuilder()

public Insight.RecommendationReference.Builder addAssociatedRecommendationsBuilder()

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Returns
TypeDescription
Insight.RecommendationReference.Builder

addAssociatedRecommendationsBuilder(int index)

public Insight.RecommendationReference.Builder addAssociatedRecommendationsBuilder(int index)

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
Insight.RecommendationReference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Insight.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Insight.Builder
Overrides

addTargetResources(String value)

public Insight.Builder addTargetResources(String value)

Fully qualified resource names that this insight is targeting.

repeated string target_resources = 9;

Parameter
NameDescription
valueString

The targetResources to add.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

addTargetResourcesBytes(ByteString value)

public Insight.Builder addTargetResourcesBytes(ByteString value)

Fully qualified resource names that this insight is targeting.

repeated string target_resources = 9;

Parameter
NameDescription
valueByteString

The bytes of the targetResources to add.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

build()

public Insight build()
Returns
TypeDescription
Insight

buildPartial()

public Insight buildPartial()
Returns
TypeDescription
Insight

clear()

public Insight.Builder clear()
Returns
TypeDescription
Insight.Builder
Overrides

clearAssociatedRecommendations()

public Insight.Builder clearAssociatedRecommendations()

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Returns
TypeDescription
Insight.Builder

clearCategory()

public Insight.Builder clearCategory()

Category being targeted by the insight.

.google.cloud.recommender.v1beta1.Insight.Category category = 7;

Returns
TypeDescription
Insight.Builder

This builder for chaining.

clearContent()

public Insight.Builder clearContent()

A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"

.google.protobuf.Struct content = 3;

Returns
TypeDescription
Insight.Builder

clearDescription()

public Insight.Builder clearDescription()

Free-form human readable summary in English. The maximum length is 500 characters.

string description = 2;

Returns
TypeDescription
Insight.Builder

This builder for chaining.

clearEtag()

public Insight.Builder clearEtag()

Fingerprint of the Insight. Provides optimistic locking when updating states.

string etag = 11;

Returns
TypeDescription
Insight.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Insight.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Insight.Builder
Overrides

clearInsightSubtype()

public Insight.Builder clearInsightSubtype()

Insight subtype. Insight content schema will be stable for a given subtype.

string insight_subtype = 10;

Returns
TypeDescription
Insight.Builder

This builder for chaining.

clearLastRefreshTime()

public Insight.Builder clearLastRefreshTime()

Timestamp of the latest data used to generate the insight.

.google.protobuf.Timestamp last_refresh_time = 4;

Returns
TypeDescription
Insight.Builder

clearName()

public Insight.Builder clearName()

Name of the insight.

string name = 1;

Returns
TypeDescription
Insight.Builder

This builder for chaining.

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;

Returns
TypeDescription
Insight.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Insight.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Insight.Builder
Overrides

clearSeverity()

public Insight.Builder clearSeverity()

Insight's severity.

.google.cloud.recommender.v1beta1.Insight.Severity severity = 15;

Returns
TypeDescription
Insight.Builder

This builder for chaining.

clearStateInfo()

public Insight.Builder clearStateInfo()

Information state and metadata.

.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;

Returns
TypeDescription
Insight.Builder

clearTargetResources()

public Insight.Builder clearTargetResources()

Fully qualified resource names that this insight is targeting.

repeated string target_resources = 9;

Returns
TypeDescription
Insight.Builder

This builder for chaining.

clone()

public Insight.Builder clone()
Returns
TypeDescription
Insight.Builder
Overrides

getAssociatedRecommendations(int index)

public Insight.RecommendationReference getAssociatedRecommendations(int index)

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
Insight.RecommendationReference

getAssociatedRecommendationsBuilder(int index)

public Insight.RecommendationReference.Builder getAssociatedRecommendationsBuilder(int index)

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
Insight.RecommendationReference.Builder

getAssociatedRecommendationsBuilderList()

public List<Insight.RecommendationReference.Builder> getAssociatedRecommendationsBuilderList()

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Returns
TypeDescription
List<Builder>

getAssociatedRecommendationsCount()

public int getAssociatedRecommendationsCount()

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Returns
TypeDescription
int

getAssociatedRecommendationsList()

public List<Insight.RecommendationReference> getAssociatedRecommendationsList()

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Returns
TypeDescription
List<RecommendationReference>

getAssociatedRecommendationsOrBuilder(int index)

public Insight.RecommendationReferenceOrBuilder getAssociatedRecommendationsOrBuilder(int index)

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
Insight.RecommendationReferenceOrBuilder

getAssociatedRecommendationsOrBuilderList()

public List<? extends Insight.RecommendationReferenceOrBuilder> getAssociatedRecommendationsOrBuilderList()

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Returns
TypeDescription
List<? extends com.google.cloud.recommender.v1beta1.Insight.RecommendationReferenceOrBuilder>

getCategory()

public Insight.Category getCategory()

Category being targeted by the insight.

.google.cloud.recommender.v1beta1.Insight.Category category = 7;

Returns
TypeDescription
Insight.Category

The category.

getCategoryValue()

public int getCategoryValue()

Category being targeted by the insight.

.google.cloud.recommender.v1beta1.Insight.Category category = 7;

Returns
TypeDescription
int

The enum numeric value on the wire for category.

getContent()

public Struct getContent()

A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"

.google.protobuf.Struct content = 3;

Returns
TypeDescription
Struct

The content.

getContentBuilder()

public Struct.Builder getContentBuilder()

A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"

.google.protobuf.Struct content = 3;

Returns
TypeDescription
Builder

getContentOrBuilder()

public StructOrBuilder getContentOrBuilder()

A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"

.google.protobuf.Struct content = 3;

Returns
TypeDescription
StructOrBuilder

getDefaultInstanceForType()

public Insight getDefaultInstanceForType()
Returns
TypeDescription
Insight

getDescription()

public String getDescription()

Free-form human readable summary in English. The maximum length is 500 characters.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Free-form human readable summary in English. The maximum length is 500 characters.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEtag()

public String getEtag()

Fingerprint of the Insight. Provides optimistic locking when updating states.

string etag = 11;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Fingerprint of the Insight. Provides optimistic locking when updating states.

string etag = 11;

Returns
TypeDescription
ByteString

The bytes for etag.

getInsightSubtype()

public String getInsightSubtype()

Insight subtype. Insight content schema will be stable for a given subtype.

string insight_subtype = 10;

Returns
TypeDescription
String

The insightSubtype.

getInsightSubtypeBytes()

public ByteString getInsightSubtypeBytes()

Insight subtype. Insight content schema will be stable for a given subtype.

string insight_subtype = 10;

Returns
TypeDescription
ByteString

The bytes for insightSubtype.

getLastRefreshTime()

public Timestamp getLastRefreshTime()

Timestamp of the latest data used to generate the insight.

.google.protobuf.Timestamp last_refresh_time = 4;

Returns
TypeDescription
Timestamp

The lastRefreshTime.

getLastRefreshTimeBuilder()

public Timestamp.Builder getLastRefreshTimeBuilder()

Timestamp of the latest data used to generate the insight.

.google.protobuf.Timestamp last_refresh_time = 4;

Returns
TypeDescription
Builder

getLastRefreshTimeOrBuilder()

public TimestampOrBuilder getLastRefreshTimeOrBuilder()

Timestamp of the latest data used to generate the insight.

.google.protobuf.Timestamp last_refresh_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

Name of the insight.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the insight.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getObservationPeriod()

public 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;

Returns
TypeDescription
Duration

The observationPeriod.

getObservationPeriodBuilder()

public 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;

Returns
TypeDescription
Builder

getObservationPeriodOrBuilder()

public 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;

Returns
TypeDescription
DurationOrBuilder

getSeverity()

public Insight.Severity getSeverity()

Insight's severity.

.google.cloud.recommender.v1beta1.Insight.Severity severity = 15;

Returns
TypeDescription
Insight.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Insight's severity.

.google.cloud.recommender.v1beta1.Insight.Severity severity = 15;

Returns
TypeDescription
int

The enum numeric value on the wire for severity.

getStateInfo()

public InsightStateInfo getStateInfo()

Information state and metadata.

.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;

Returns
TypeDescription
InsightStateInfo

The stateInfo.

getStateInfoBuilder()

public InsightStateInfo.Builder getStateInfoBuilder()

Information state and metadata.

.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;

Returns
TypeDescription
InsightStateInfo.Builder

getStateInfoOrBuilder()

public InsightStateInfoOrBuilder getStateInfoOrBuilder()

Information state and metadata.

.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;

Returns
TypeDescription
InsightStateInfoOrBuilder

getTargetResources(int index)

public String getTargetResources(int index)

Fully qualified resource names that this insight is targeting.

repeated string target_resources = 9;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The targetResources at the given index.

getTargetResourcesBytes(int index)

public ByteString getTargetResourcesBytes(int index)

Fully qualified resource names that this insight is targeting.

repeated string target_resources = 9;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the targetResources at the given index.

getTargetResourcesCount()

public int getTargetResourcesCount()

Fully qualified resource names that this insight is targeting.

repeated string target_resources = 9;

Returns
TypeDescription
int

The count of targetResources.

getTargetResourcesList()

public ProtocolStringList getTargetResourcesList()

Fully qualified resource names that this insight is targeting.

repeated string target_resources = 9;

Returns
TypeDescription
ProtocolStringList

A list containing the targetResources.

hasContent()

public boolean hasContent()

A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"

.google.protobuf.Struct content = 3;

Returns
TypeDescription
boolean

Whether the content field is set.

hasLastRefreshTime()

public boolean hasLastRefreshTime()

Timestamp of the latest data used to generate the insight.

.google.protobuf.Timestamp last_refresh_time = 4;

Returns
TypeDescription
boolean

Whether the lastRefreshTime field is set.

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;

Returns
TypeDescription
boolean

Whether the observationPeriod field is set.

hasStateInfo()

public boolean hasStateInfo()

Information state and metadata.

.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;

Returns
TypeDescription
boolean

Whether the stateInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeContent(Struct value)

public Insight.Builder mergeContent(Struct value)

A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"

.google.protobuf.Struct content = 3;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
Insight.Builder

mergeFrom(Insight other)

public Insight.Builder mergeFrom(Insight other)
Parameter
NameDescription
otherInsight
Returns
TypeDescription
Insight.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Insight.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Insight.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Insight.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Insight.Builder
Overrides

mergeLastRefreshTime(Timestamp value)

public Insight.Builder mergeLastRefreshTime(Timestamp value)

Timestamp of the latest data used to generate the insight.

.google.protobuf.Timestamp last_refresh_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Insight.Builder

mergeObservationPeriod(Duration value)

public Insight.Builder mergeObservationPeriod(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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Insight.Builder

mergeStateInfo(InsightStateInfo value)

public Insight.Builder mergeStateInfo(InsightStateInfo value)

Information state and metadata.

.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;

Parameter
NameDescription
valueInsightStateInfo
Returns
TypeDescription
Insight.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Insight.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Insight.Builder
Overrides

removeAssociatedRecommendations(int index)

public Insight.Builder removeAssociatedRecommendations(int index)

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
Insight.Builder

setAssociatedRecommendations(int index, Insight.RecommendationReference value)

public Insight.Builder setAssociatedRecommendations(int index, Insight.RecommendationReference value)

Recommendations derived from this insight.

repeated .google.cloud.recommender.v1beta1.Insight.RecommendationReference associated_recommendations = 8;

Parameters
NameDescription
indexint
valueInsight.RecommendationReference
Returns
TypeDescription
Insight.Builder

setAssociatedRecommendations(int index, Insight.RecommendationReference.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueInsight.RecommendationReference.Builder
Returns
TypeDescription
Insight.Builder

setCategory(Insight.Category value)

public Insight.Builder setCategory(Insight.Category value)

Category being targeted by the insight.

.google.cloud.recommender.v1beta1.Insight.Category category = 7;

Parameter
NameDescription
valueInsight.Category

The category to set.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

setCategoryValue(int value)

public Insight.Builder setCategoryValue(int value)

Category being targeted by the insight.

.google.cloud.recommender.v1beta1.Insight.Category category = 7;

Parameter
NameDescription
valueint

The enum numeric value on the wire for category to set.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

setContent(Struct value)

public Insight.Builder setContent(Struct value)

A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"

.google.protobuf.Struct content = 3;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
Insight.Builder

setContent(Struct.Builder builderForValue)

public Insight.Builder setContent(Struct.Builder builderForValue)

A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"

.google.protobuf.Struct content = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Insight.Builder

setDescription(String value)

public Insight.Builder setDescription(String value)

Free-form human readable summary in English. The maximum length is 500 characters.

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Insight.Builder setDescriptionBytes(ByteString value)

Free-form human readable summary in English. The maximum length is 500 characters.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

setEtag(String value)

public Insight.Builder setEtag(String value)

Fingerprint of the Insight. Provides optimistic locking when updating states.

string etag = 11;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Insight.Builder setEtagBytes(ByteString value)

Fingerprint of the Insight. Provides optimistic locking when updating states.

string etag = 11;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Insight.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Insight.Builder
Overrides

setInsightSubtype(String value)

public Insight.Builder setInsightSubtype(String value)

Insight subtype. Insight content schema will be stable for a given subtype.

string insight_subtype = 10;

Parameter
NameDescription
valueString

The insightSubtype to set.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

setInsightSubtypeBytes(ByteString value)

public Insight.Builder setInsightSubtypeBytes(ByteString value)

Insight subtype. Insight content schema will be stable for a given subtype.

string insight_subtype = 10;

Parameter
NameDescription
valueByteString

The bytes for insightSubtype to set.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

setLastRefreshTime(Timestamp value)

public Insight.Builder setLastRefreshTime(Timestamp value)

Timestamp of the latest data used to generate the insight.

.google.protobuf.Timestamp last_refresh_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Insight.Builder

setLastRefreshTime(Timestamp.Builder builderForValue)

public Insight.Builder setLastRefreshTime(Timestamp.Builder builderForValue)

Timestamp of the latest data used to generate the insight.

.google.protobuf.Timestamp last_refresh_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Insight.Builder

setName(String value)

public Insight.Builder setName(String value)

Name of the insight.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Insight.Builder setNameBytes(ByteString value)

Name of the insight.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

setObservationPeriod(Duration value)

public Insight.Builder setObservationPeriod(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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Insight.Builder

setObservationPeriod(Duration.Builder builderForValue)

public Insight.Builder setObservationPeriod(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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Insight.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Insight.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Insight.Builder
Overrides

setSeverity(Insight.Severity value)

public Insight.Builder setSeverity(Insight.Severity value)

Insight's severity.

.google.cloud.recommender.v1beta1.Insight.Severity severity = 15;

Parameter
NameDescription
valueInsight.Severity

The severity to set.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

setSeverityValue(int value)

public Insight.Builder setSeverityValue(int value)

Insight's severity.

.google.cloud.recommender.v1beta1.Insight.Severity severity = 15;

Parameter
NameDescription
valueint

The enum numeric value on the wire for severity to set.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

setStateInfo(InsightStateInfo value)

public Insight.Builder setStateInfo(InsightStateInfo value)

Information state and metadata.

.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;

Parameter
NameDescription
valueInsightStateInfo
Returns
TypeDescription
Insight.Builder

setStateInfo(InsightStateInfo.Builder builderForValue)

public Insight.Builder setStateInfo(InsightStateInfo.Builder builderForValue)

Information state and metadata.

.google.cloud.recommender.v1beta1.InsightStateInfo state_info = 6;

Parameter
NameDescription
builderForValueInsightStateInfo.Builder
Returns
TypeDescription
Insight.Builder

setTargetResources(int index, String value)

public Insight.Builder setTargetResources(int index, String value)

Fully qualified resource names that this insight is targeting.

repeated string target_resources = 9;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The targetResources to set.

Returns
TypeDescription
Insight.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Insight.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Insight.Builder
Overrides