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.v1.Recommendation.InsightReference
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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