Represents an InferenceParameter.
Package
@google-cloud/dialogflowConstructors
(constructor)(properties)
constructor(properties?: google.cloud.dialogflow.v2beta1.IInferenceParameter);
Constructs a new InferenceParameter.
Parameter | |
---|---|
Name | Description |
properties |
IInferenceParameter
Properties to set |
Properties
_maxOutputTokens
public _maxOutputTokens?: "maxOutputTokens";
InferenceParameter _maxOutputTokens.
_temperature
public _temperature?: "temperature";
InferenceParameter _temperature.
_topK
public _topK?: "topK";
InferenceParameter _topK.
_topP
public _topP?: "topP";
InferenceParameter _topP.
maxOutputTokens
public maxOutputTokens?: (number|null);
InferenceParameter maxOutputTokens.
temperature
public temperature?: (number|null);
InferenceParameter temperature.
topK
public topK?: (number|null);
InferenceParameter topK.
topP
public topP?: (number|null);
InferenceParameter topP.
Methods
create(properties)
public static create(properties?: google.cloud.dialogflow.v2beta1.IInferenceParameter): google.cloud.dialogflow.v2beta1.InferenceParameter;
Creates a new InferenceParameter instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IInferenceParameter
Properties to set |
Returns | |
---|---|
Type | Description |
InferenceParameter |
InferenceParameter instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.v2beta1.InferenceParameter;
Decodes an InferenceParameter message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
InferenceParameter |
InferenceParameter |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.v2beta1.InferenceParameter;
Decodes an InferenceParameter message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
InferenceParameter |
InferenceParameter |
encode(message, writer)
public static encode(message: google.cloud.dialogflow.v2beta1.IInferenceParameter, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified InferenceParameter message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IInferenceParameter
InferenceParameter message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.dialogflow.v2beta1.IInferenceParameter, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified InferenceParameter message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IInferenceParameter
InferenceParameter message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.v2beta1.InferenceParameter;
Creates an InferenceParameter message from a plain object. Also converts values to their respective internal types.
Parameter | |
---|---|
Name | Description |
object |
{ [k: string]: any }
Plain object |
Returns | |
---|---|
Type | Description |
InferenceParameter |
InferenceParameter |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for InferenceParameter
Parameter | |
---|---|
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns | |
---|---|
Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this InferenceParameter to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.dialogflow.v2beta1.InferenceParameter, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from an InferenceParameter message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
InferenceParameter
InferenceParameter |
options |
$protobuf.IConversionOptions
Conversion options |
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies an InferenceParameter message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|