Class Recommendation.InsightReference.Builder (2.56.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Recommendation.InsightReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Recommendation.InsightReference.Builder
Overrides

build()

public Recommendation.InsightReference build()
Returns
Type Description
Recommendation.InsightReference

buildPartial()

public Recommendation.InsightReference buildPartial()
Returns
Type Description
Recommendation.InsightReference

clear()

public Recommendation.InsightReference.Builder clear()
Returns
Type Description
Recommendation.InsightReference.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Recommendation.InsightReference.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Recommendation.InsightReference.Builder
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
Type Description
Recommendation.InsightReference.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Recommendation.InsightReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Recommendation.InsightReference.Builder
Overrides

clone()

public Recommendation.InsightReference.Builder clone()
Returns
Type Description
Recommendation.InsightReference.Builder
Overrides

getDefaultInstanceForType()

public Recommendation.InsightReference getDefaultInstanceForType()
Returns
Type Description
Recommendation.InsightReference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
ByteString

The bytes for insight.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Recommendation.InsightReference other)

public Recommendation.InsightReference.Builder mergeFrom(Recommendation.InsightReference other)
Parameter
Name Description
other Recommendation.InsightReference
Returns
Type Description
Recommendation.InsightReference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Recommendation.InsightReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Recommendation.InsightReference.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Recommendation.InsightReference.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Recommendation.InsightReference.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Recommendation.InsightReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Recommendation.InsightReference.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Recommendation.InsightReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Recommendation.InsightReference.Builder
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
Type Description
Recommendation.InsightReference.Builder

This builder for chaining.

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
Type Description
Recommendation.InsightReference.Builder

This builder for chaining.

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

public Recommendation.InsightReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Recommendation.InsightReference.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Recommendation.InsightReference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Recommendation.InsightReference.Builder
Overrides