Send feedback
Class Recommendation.InsightReference.Builder (2.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.5.0 keyboard_arrow_down
public static final class Recommendation . InsightReference . Builder extends GeneratedMessageV3 . Builder<Recommendation . InsightReference . Builder > implements Recommendation . InsightReferenceOrBuilder
Reference to an associated insight.
Protobuf type google.cloud.recommender.v1beta1.Recommendation.InsightReference
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Recommendation . InsightReference . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public Recommendation . InsightReference build ()
Returns
buildPartial()
public Recommendation . InsightReference buildPartial ()
Returns
clear()
public Recommendation . InsightReference . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Recommendation . InsightReference . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearInsight()
public Recommendation . InsightReference . Builder clearInsight ()
Insight resource name, e.g.
projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
string insight = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Recommendation . InsightReference . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public Recommendation . InsightReference . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public Recommendation . InsightReference getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getInsight()
public String getInsight ()
Insight resource name, e.g.
projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
string insight = 1;
Returns
Type Description String The insight.
getInsightBytes()
public ByteString getInsightBytes ()
Insight resource name, e.g.
projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
string insight = 1;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(Recommendation.InsightReference other)
public Recommendation . InsightReference . Builder mergeFrom ( Recommendation . InsightReference other )
Parameter
Returns
public Recommendation . InsightReference . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Recommendation . InsightReference . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Recommendation . InsightReference . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Recommendation . InsightReference . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setInsight(String value)
public Recommendation . InsightReference . Builder setInsight ( String value )
Insight resource name, e.g.
projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
string insight = 1;
Parameter
Name Description value String
The insight to set.
Returns
setInsightBytes(ByteString value)
public Recommendation . InsightReference . Builder setInsightBytes ( ByteString value )
Insight resource name, e.g.
projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
string insight = 1;
Parameter
Name Description value ByteString
The bytes for insight to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Recommendation . InsightReference . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Recommendation . InsightReference . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]