Class AIInference.UnstructuredInference.Builder (1.147.0)

public static final class AIInference.UnstructuredInference.Builder extends GeneratedMessage.Builder<AIInference.UnstructuredInference.Builder> implements AIInference.UnstructuredInferenceOrBuilder

Configuration for making inferences using arbitrary JSON payloads.

Protobuf type google.pubsub.v1.AIInference.UnstructuredInference

Static Methods

getDescriptor()

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

Methods

build()

public AIInference.UnstructuredInference build()
Returns
Type Description
AIInference.UnstructuredInference

buildPartial()

public AIInference.UnstructuredInference buildPartial()
Returns
Type Description
AIInference.UnstructuredInference

clear()

public AIInference.UnstructuredInference.Builder clear()
Returns
Type Description
AIInference.UnstructuredInference.Builder
Overrides

clearParameters()

public AIInference.UnstructuredInference.Builder clearParameters()

Optional. A parameters object to be included in each inference request. The parameters object is combined with the data field of the Pub/Sub message to form the inference request.

.google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AIInference.UnstructuredInference.Builder

getDefaultInstanceForType()

public AIInference.UnstructuredInference getDefaultInstanceForType()
Returns
Type Description
AIInference.UnstructuredInference

getDescriptorForType()

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

getParameters()

public Struct getParameters()

Optional. A parameters object to be included in each inference request. The parameters object is combined with the data field of the Pub/Sub message to form the inference request.

.google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The parameters.

getParametersBuilder()

public Struct.Builder getParametersBuilder()

Optional. A parameters object to be included in each inference request. The parameters object is combined with the data field of the Pub/Sub message to form the inference request.

.google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getParametersOrBuilder()

public StructOrBuilder getParametersOrBuilder()

Optional. A parameters object to be included in each inference request. The parameters object is combined with the data field of the Pub/Sub message to form the inference request.

.google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

hasParameters()

public boolean hasParameters()

Optional. A parameters object to be included in each inference request. The parameters object is combined with the data field of the Pub/Sub message to form the inference request.

.google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the parameters field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(AIInference.UnstructuredInference other)

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

mergeParameters(Struct value)

public AIInference.UnstructuredInference.Builder mergeParameters(Struct value)

Optional. A parameters object to be included in each inference request. The parameters object is combined with the data field of the Pub/Sub message to form the inference request.

.google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
AIInference.UnstructuredInference.Builder

setParameters(Struct value)

public AIInference.UnstructuredInference.Builder setParameters(Struct value)

Optional. A parameters object to be included in each inference request. The parameters object is combined with the data field of the Pub/Sub message to form the inference request.

.google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
AIInference.UnstructuredInference.Builder

setParameters(Struct.Builder builderForValue)

public AIInference.UnstructuredInference.Builder setParameters(Struct.Builder builderForValue)

Optional. A parameters object to be included in each inference request. The parameters object is combined with the data field of the Pub/Sub message to form the inference request.

.google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AIInference.UnstructuredInference.Builder