- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.7
- 2.4.1
- 2.3.0
- 2.2.0
- 2.1.5
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.v1.Insight
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Insight.BuilderImplements
InsightOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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.v1.Insight.RecommendationReference associated_recommendations = 8;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.recommender.v1.Insight.RecommendationReference> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<String> The targetResources to add. |
Returns | |
---|---|
Type | Description |
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.v1.Insight.RecommendationReference associated_recommendations = 8;
Parameter | |
---|---|
Name | Description |
value | Insight.RecommendationReference |
Returns | |
---|---|
Type | Description |
Insight.Builder |
addAssociatedRecommendations(Insight.RecommendationReference.Builder builderForValue)
public Insight.Builder addAssociatedRecommendations(Insight.RecommendationReference.Builder builderForValue)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
Parameter | |
---|---|
Name | Description |
builderForValue | Insight.RecommendationReference.Builder |
Returns | |
---|---|
Type | Description |
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.v1.Insight.RecommendationReference associated_recommendations = 8;
Parameters | |
---|---|
Name | Description |
index | int |
value | Insight.RecommendationReference |
Returns | |
---|---|
Type | Description |
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.v1.Insight.RecommendationReference associated_recommendations = 8;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Insight.RecommendationReference.Builder |
Returns | |
---|---|
Type | Description |
Insight.Builder |
addAssociatedRecommendationsBuilder()
public Insight.RecommendationReference.Builder addAssociatedRecommendationsBuilder()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
Returns | |
---|---|
Type | Description |
Insight.RecommendationReference.Builder |
addAssociatedRecommendationsBuilder(int index)
public Insight.RecommendationReference.Builder addAssociatedRecommendationsBuilder(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Insight.RecommendationReference.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Insight.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Insight.Builder |
addTargetResources(String value)
public Insight.Builder addTargetResources(String value)
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;
Parameter | |
---|---|
Name | Description |
value | String The targetResources to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes of the targetResources to add. |
Returns | |
---|---|
Type | Description |
Insight.Builder | This builder for chaining. |
build()
public Insight build()
Returns | |
---|---|
Type | Description |
Insight |
buildPartial()
public Insight buildPartial()
Returns | |
---|---|
Type | Description |
Insight |
clear()
public Insight.Builder clear()
Returns | |
---|---|
Type | Description |
Insight.Builder |
clearAssociatedRecommendations()
public Insight.Builder clearAssociatedRecommendations()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
Returns | |
---|---|
Type | Description |
Insight.Builder |
clearCategory()
public Insight.Builder clearCategory()
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Insight.Builder |
clearDescription()
public Insight.Builder clearDescription()
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Insight.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Insight.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Insight.Builder |
clearInsightSubtype()
public Insight.Builder clearInsightSubtype()
Insight subtype. Insight content schema will be stable for a given subtype.
string insight_subtype = 10;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Insight.Builder |
clearName()
public Insight.Builder clearName()
Name of the insight.
string name = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Insight.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Insight.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Insight.Builder |
clearSeverity()
public Insight.Builder clearSeverity()
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;
Returns | |
---|---|
Type | Description |
Insight.Builder | This builder for chaining. |
clearStateInfo()
public Insight.Builder clearStateInfo()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
Returns | |
---|---|
Type | Description |
Insight.Builder |
clearTargetResources()
public Insight.Builder clearTargetResources()
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;
Returns | |
---|---|
Type | Description |
Insight.Builder | This builder for chaining. |
clone()
public Insight.Builder clone()
Returns | |
---|---|
Type | Description |
Insight.Builder |
getAssociatedRecommendations(int index)
public Insight.RecommendationReference getAssociatedRecommendations(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Insight.RecommendationReference |
getAssociatedRecommendationsBuilder(int index)
public Insight.RecommendationReference.Builder getAssociatedRecommendationsBuilder(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Insight.RecommendationReference.Builder |
getAssociatedRecommendationsBuilderList()
public List<Insight.RecommendationReference.Builder> getAssociatedRecommendationsBuilderList()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
Returns | |
---|---|
Type | Description |
List<Builder> |
getAssociatedRecommendationsCount()
public int getAssociatedRecommendationsCount()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
Returns | |
---|---|
Type | Description |
int |
getAssociatedRecommendationsList()
public List<Insight.RecommendationReference> getAssociatedRecommendationsList()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
Returns | |
---|---|
Type | Description |
List<RecommendationReference> |
getAssociatedRecommendationsOrBuilder(int index)
public Insight.RecommendationReferenceOrBuilder getAssociatedRecommendationsOrBuilder(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Insight.RecommendationReferenceOrBuilder |
getAssociatedRecommendationsOrBuilderList()
public List<? extends Insight.RecommendationReferenceOrBuilder> getAssociatedRecommendationsOrBuilderList()
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.recommender.v1.Insight.RecommendationReferenceOrBuilder> |
getCategory()
public Insight.Category getCategory()
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;
Returns | |
---|---|
Type | Description |
Insight.Category | The category. |
getCategoryValue()
public int getCategoryValue()
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Builder |
getContentOrBuilder()
public StructOrBuilder getContentOrBuilder()
A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
.google.protobuf.Struct content = 3;
Returns | |
---|---|
Type | Description |
StructOrBuilder |
getDefaultInstanceForType()
public Insight getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Insight |
getDescription()
public String getDescription()
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;
Returns | |
---|---|
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Free-form human readable summary in English. The maximum length is 500 characters.
string description = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEtag()
public String getEtag()
Fingerprint of the Insight. Provides optimistic locking when updating states.
string etag = 11;
Returns | |
---|---|
Type | Description |
String | The etag. |
getEtagBytes()
public ByteString getEtagBytes()
Fingerprint of the Insight. Provides optimistic locking when updating states.
string etag = 11;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String | The insightSubtype. |
getInsightSubtypeBytes()
public ByteString getInsightSubtypeBytes()
Insight subtype. Insight content schema will be stable for a given subtype.
string insight_subtype = 10;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Builder |
getLastRefreshTimeOrBuilder()
public TimestampOrBuilder getLastRefreshTimeOrBuilder()
Timestamp of the latest data used to generate the insight.
.google.protobuf.Timestamp last_refresh_time = 4;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getName()
public String getName()
Name of the insight.
string name = 1;
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Name of the insight.
string name = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
DurationOrBuilder |
getSeverity()
public Insight.Severity getSeverity()
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;
Returns | |
---|---|
Type | Description |
Insight.Severity | The severity. |
getSeverityValue()
public int getSeverityValue()
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for severity. |
getStateInfo()
public InsightStateInfo getStateInfo()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
Returns | |
---|---|
Type | Description |
InsightStateInfo | The stateInfo. |
getStateInfoBuilder()
public InsightStateInfo.Builder getStateInfoBuilder()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
Returns | |
---|---|
Type | Description |
InsightStateInfo.Builder |
getStateInfoOrBuilder()
public InsightStateInfoOrBuilder getStateInfoOrBuilder()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
Returns | |
---|---|
Type | Description |
InsightStateInfoOrBuilder |
getTargetResources(int index)
public String getTargetResources(int index)
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
int | The count of targetResources. |
getTargetResourcesList()
public ProtocolStringList getTargetResourcesList()
Fully qualified resource names that this insight is targeting.
repeated string target_resources = 9;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the observationPeriod field is set. |
hasStateInfo()
public boolean hasStateInfo()
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
Returns | |
---|---|
Type | Description |
boolean | Whether the stateInfo field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 | |
---|---|
Name | Description |
value | Struct |
Returns | |
---|---|
Type | Description |
Insight.Builder |
mergeFrom(Insight other)
public Insight.Builder mergeFrom(Insight other)
Parameter | |
---|---|
Name | Description |
other | Insight |
Returns | |
---|---|
Type | Description |
Insight.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Insight.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Insight.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Insight.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Insight.Builder |
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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Duration |
Returns | |
---|---|
Type | Description |
Insight.Builder |
mergeStateInfo(InsightStateInfo value)
public Insight.Builder mergeStateInfo(InsightStateInfo value)
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
Parameter | |
---|---|
Name | Description |
value | InsightStateInfo |
Returns | |
---|---|
Type | Description |
Insight.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Insight.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Insight.Builder |
removeAssociatedRecommendations(int index)
public Insight.Builder removeAssociatedRecommendations(int index)
Recommendations derived from this insight.
repeated .google.cloud.recommender.v1.Insight.RecommendationReference associated_recommendations = 8;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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.v1.Insight.RecommendationReference associated_recommendations = 8;
Parameters | |
---|---|
Name | Description |
index | int |
value | Insight.RecommendationReference |
Returns | |
---|---|
Type | Description |
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.v1.Insight.RecommendationReference associated_recommendations = 8;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Insight.RecommendationReference.Builder |
Returns | |
---|---|
Type | Description |
Insight.Builder |
setCategory(Insight.Category value)
public Insight.Builder setCategory(Insight.Category value)
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;
Parameter | |
---|---|
Name | Description |
value | Insight.Category The category to set. |
Returns | |
---|---|
Type | Description |
Insight.Builder | This builder for chaining. |
setCategoryValue(int value)
public Insight.Builder setCategoryValue(int value)
Category being targeted by the insight.
.google.cloud.recommender.v1.Insight.Category category = 7;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for category to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Struct |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The description to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The etag to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for etag to set. |
Returns | |
---|---|
Type | Description |
Insight.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Insight.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Insight.Builder |
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 | |
---|---|
Name | Description |
value | String The insightSubtype to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for insightSubtype to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
Insight.Builder |
setName(String value)
public Insight.Builder setName(String value)
Name of the insight.
string name = 1;
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
Insight.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Insight.Builder setNameBytes(ByteString value)
Name of the insight.
string name = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | Duration |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
Insight.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Insight.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
Insight.Builder |
setSeverity(Insight.Severity value)
public Insight.Builder setSeverity(Insight.Severity value)
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;
Parameter | |
---|---|
Name | Description |
value | Insight.Severity The severity to set. |
Returns | |
---|---|
Type | Description |
Insight.Builder | This builder for chaining. |
setSeverityValue(int value)
public Insight.Builder setSeverityValue(int value)
Insight's severity.
.google.cloud.recommender.v1.Insight.Severity severity = 15;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for severity to set. |
Returns | |
---|---|
Type | Description |
Insight.Builder | This builder for chaining. |
setStateInfo(InsightStateInfo value)
public Insight.Builder setStateInfo(InsightStateInfo value)
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
Parameter | |
---|---|
Name | Description |
value | InsightStateInfo |
Returns | |
---|---|
Type | Description |
Insight.Builder |
setStateInfo(InsightStateInfo.Builder builderForValue)
public Insight.Builder setStateInfo(InsightStateInfo.Builder builderForValue)
Information state and metadata.
.google.cloud.recommender.v1.InsightStateInfo state_info = 6;
Parameter | |
---|---|
Name | Description |
builderForValue | InsightStateInfo.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The targetResources to set. |
Returns | |
---|---|
Type | Description |
Insight.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Insight.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Insight.Builder |