Class RecommenderGenerationConfig.Builder (2.44.0)

public static final class RecommenderGenerationConfig.Builder extends GeneratedMessageV3.Builder<RecommenderGenerationConfig.Builder> implements RecommenderGenerationConfigOrBuilder

A Configuration to customize the generation of recommendations. Eg, customizing the lookback period considered when generating a recommendation.

Protobuf type google.cloud.recommender.v1beta1.RecommenderGenerationConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RecommenderGenerationConfig build()
Returns
Type Description
RecommenderGenerationConfig

buildPartial()

public RecommenderGenerationConfig buildPartial()
Returns
Type Description
RecommenderGenerationConfig

clear()

public RecommenderGenerationConfig.Builder clear()
Returns
Type Description
RecommenderGenerationConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RecommenderGenerationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RecommenderGenerationConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParams()

public RecommenderGenerationConfig.Builder clearParams()

Parameters for this RecommenderGenerationConfig. These configs can be used by or are applied to all subtypes.

.google.protobuf.Struct params = 1;

Returns
Type Description
RecommenderGenerationConfig.Builder

clone()

public RecommenderGenerationConfig.Builder clone()
Returns
Type Description
RecommenderGenerationConfig.Builder
Overrides

getDefaultInstanceForType()

public RecommenderGenerationConfig getDefaultInstanceForType()
Returns
Type Description
RecommenderGenerationConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParams()

public Struct getParams()

Parameters for this RecommenderGenerationConfig. These configs can be used by or are applied to all subtypes.

.google.protobuf.Struct params = 1;

Returns
Type Description
Struct

The params.

getParamsBuilder()

public Struct.Builder getParamsBuilder()

Parameters for this RecommenderGenerationConfig. These configs can be used by or are applied to all subtypes.

.google.protobuf.Struct params = 1;

Returns
Type Description
Builder

getParamsOrBuilder()

public StructOrBuilder getParamsOrBuilder()

Parameters for this RecommenderGenerationConfig. These configs can be used by or are applied to all subtypes.

.google.protobuf.Struct params = 1;

Returns
Type Description
StructOrBuilder

hasParams()

public boolean hasParams()

Parameters for this RecommenderGenerationConfig. These configs can be used by or are applied to all subtypes.

.google.protobuf.Struct params = 1;

Returns
Type Description
boolean

Whether the params field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RecommenderGenerationConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeParams(Struct value)

public RecommenderGenerationConfig.Builder mergeParams(Struct value)

Parameters for this RecommenderGenerationConfig. These configs can be used by or are applied to all subtypes.

.google.protobuf.Struct params = 1;

Parameter
Name Description
value Struct
Returns
Type Description
RecommenderGenerationConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public RecommenderGenerationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RecommenderGenerationConfig.Builder
Overrides

setParams(Struct value)

public RecommenderGenerationConfig.Builder setParams(Struct value)

Parameters for this RecommenderGenerationConfig. These configs can be used by or are applied to all subtypes.

.google.protobuf.Struct params = 1;

Parameter
Name Description
value Struct
Returns
Type Description
RecommenderGenerationConfig.Builder

setParams(Struct.Builder builderForValue)

public RecommenderGenerationConfig.Builder setParams(Struct.Builder builderForValue)

Parameters for this RecommenderGenerationConfig. These configs can be used by or are applied to all subtypes.

.google.protobuf.Struct params = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RecommenderGenerationConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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