Class RecommenderGenerationConfig.Builder (2.23.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RecommenderGenerationConfig build()
Returns
TypeDescription
RecommenderGenerationConfig

buildPartial()

public RecommenderGenerationConfig buildPartial()
Returns
TypeDescription
RecommenderGenerationConfig

clear()

public RecommenderGenerationConfig.Builder clear()
Returns
TypeDescription
RecommenderGenerationConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RecommenderGenerationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RecommenderGenerationConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RecommenderGenerationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
RecommenderGenerationConfig.Builder

clone()

public RecommenderGenerationConfig.Builder clone()
Returns
TypeDescription
RecommenderGenerationConfig.Builder
Overrides

getDefaultInstanceForType()

public RecommenderGenerationConfig getDefaultInstanceForType()
Returns
TypeDescription
RecommenderGenerationConfig

getDescriptorForType()

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

Whether the params field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RecommenderGenerationConfig other)

public RecommenderGenerationConfig.Builder mergeFrom(RecommenderGenerationConfig other)
Parameter
NameDescription
otherRecommenderGenerationConfig
Returns
TypeDescription
RecommenderGenerationConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RecommenderGenerationConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
RecommenderGenerationConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public RecommenderGenerationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RecommenderGenerationConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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