Class RecommenderGenerationConfig (2.4.1)

public final class RecommenderGenerationConfig extends GeneratedMessageV3 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 Fields

PARAMS_FIELD_NUMBER

public static final int PARAMS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RecommenderGenerationConfig getDefaultInstance()
Returns
TypeDescription
RecommenderGenerationConfig

getDescriptor()

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

newBuilder()

public static RecommenderGenerationConfig.Builder newBuilder()
Returns
TypeDescription
RecommenderGenerationConfig.Builder

newBuilder(RecommenderGenerationConfig prototype)

public static RecommenderGenerationConfig.Builder newBuilder(RecommenderGenerationConfig prototype)
Parameter
NameDescription
prototypeRecommenderGenerationConfig
Returns
TypeDescription
RecommenderGenerationConfig.Builder

parseDelimitedFrom(InputStream input)

public static RecommenderGenerationConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RecommenderGenerationConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RecommenderGenerationConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecommenderGenerationConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RecommenderGenerationConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RecommenderGenerationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RecommenderGenerationConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecommenderGenerationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RecommenderGenerationConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RecommenderGenerationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RecommenderGenerationConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecommenderGenerationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RecommenderGenerationConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RecommenderGenerationConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RecommenderGenerationConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecommenderGenerationConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RecommenderGenerationConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RecommenderGenerationConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RecommenderGenerationConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecommenderGenerationConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RecommenderGenerationConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RecommenderGenerationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RecommenderGenerationConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecommenderGenerationConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RecommenderGenerationConfig> parser()
Returns
TypeDescription
Parser<RecommenderGenerationConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RecommenderGenerationConfig getDefaultInstanceForType()
Returns
TypeDescription
RecommenderGenerationConfig

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.

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

getParserForType()

public Parser<RecommenderGenerationConfig> getParserForType()
Returns
TypeDescription
Parser<RecommenderGenerationConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RecommenderGenerationConfig.Builder newBuilderForType()
Returns
TypeDescription
RecommenderGenerationConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RecommenderGenerationConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RecommenderGenerationConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RecommenderGenerationConfig.Builder toBuilder()
Returns
TypeDescription
RecommenderGenerationConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException