Class Recommendation.InsightReference.Builder (2.1.5)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Recommendation.InsightReference build()
Returns
TypeDescription
Recommendation.InsightReference

buildPartial()

public Recommendation.InsightReference buildPartial()
Returns
TypeDescription
Recommendation.InsightReference

clear()

public Recommendation.InsightReference.Builder clear()
Returns
TypeDescription
Recommendation.InsightReference.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Recommendation.InsightReference.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Recommendation.InsightReference.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Recommendation.InsightReference.Builder clone()
Returns
TypeDescription
Recommendation.InsightReference.Builder
Overrides

getDefaultInstanceForType()

public Recommendation.InsightReference getDefaultInstanceForType()
Returns
TypeDescription
Recommendation.InsightReference

getDescriptor()

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

getDescriptorForType()

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

The bytes for insight.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Recommendation.InsightReference other)

public Recommendation.InsightReference.Builder mergeFrom(Recommendation.InsightReference other)
Parameter
NameDescription
otherRecommendation.InsightReference
Returns
TypeDescription
Recommendation.InsightReference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Recommendation.InsightReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The insight to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for insight to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Recommendation.InsightReference.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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