Class StreamQueryReasoningEngineRequest.Builder (3.88.0)

public static final class StreamQueryReasoningEngineRequest.Builder extends GeneratedMessage.Builder<StreamQueryReasoningEngineRequest.Builder> implements StreamQueryReasoningEngineRequestOrBuilder

Request message for [ReasoningEngineExecutionService.StreamQuery][].

Protobuf type google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest

Static Methods

getDescriptor()

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

Methods

build()

public StreamQueryReasoningEngineRequest build()
Returns
Type Description
StreamQueryReasoningEngineRequest

buildPartial()

public StreamQueryReasoningEngineRequest buildPartial()
Returns
Type Description
StreamQueryReasoningEngineRequest

clear()

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

clearClassMethod()

public StreamQueryReasoningEngineRequest.Builder clearClassMethod()

Optional. Class method to be used for the stream query. It is optional and defaults to "stream_query" if unspecified.

string class_method = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamQueryReasoningEngineRequest.Builder

This builder for chaining.

clearInput()

public StreamQueryReasoningEngineRequest.Builder clearInput()

Optional. Input content provided by users in JSON object format. Examples include text query, function calling parameters, media bytes, etc.

.google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamQueryReasoningEngineRequest.Builder

clearName()

public StreamQueryReasoningEngineRequest.Builder clearName()

Required. The name of the ReasoningEngine resource to use. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
StreamQueryReasoningEngineRequest.Builder

This builder for chaining.

getClassMethod()

public String getClassMethod()

Optional. Class method to be used for the stream query. It is optional and defaults to "stream_query" if unspecified.

string class_method = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The classMethod.

getClassMethodBytes()

public ByteString getClassMethodBytes()

Optional. Class method to be used for the stream query. It is optional and defaults to "stream_query" if unspecified.

string class_method = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for classMethod.

getDefaultInstanceForType()

public StreamQueryReasoningEngineRequest getDefaultInstanceForType()
Returns
Type Description
StreamQueryReasoningEngineRequest

getDescriptorForType()

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

getInput()

public Struct getInput()

Optional. Input content provided by users in JSON object format. Examples include text query, function calling parameters, media bytes, etc.

.google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The input.

getInputBuilder()

public Struct.Builder getInputBuilder()

Optional. Input content provided by users in JSON object format. Examples include text query, function calling parameters, media bytes, etc.

.google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getInputOrBuilder()

public StructOrBuilder getInputOrBuilder()

Optional. Input content provided by users in JSON object format. Examples include text query, function calling parameters, media bytes, etc.

.google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getName()

public String getName()

Required. The name of the ReasoningEngine resource to use. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the ReasoningEngine resource to use. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

hasInput()

public boolean hasInput()

Optional. Input content provided by users in JSON object format. Examples include text query, function calling parameters, media bytes, etc.

.google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the input field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StreamQueryReasoningEngineRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInput(Struct value)

public StreamQueryReasoningEngineRequest.Builder mergeInput(Struct value)

Optional. Input content provided by users in JSON object format. Examples include text query, function calling parameters, media bytes, etc.

.google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
StreamQueryReasoningEngineRequest.Builder

setClassMethod(String value)

public StreamQueryReasoningEngineRequest.Builder setClassMethod(String value)

Optional. Class method to be used for the stream query. It is optional and defaults to "stream_query" if unspecified.

string class_method = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The classMethod to set.

Returns
Type Description
StreamQueryReasoningEngineRequest.Builder

This builder for chaining.

setClassMethodBytes(ByteString value)

public StreamQueryReasoningEngineRequest.Builder setClassMethodBytes(ByteString value)

Optional. Class method to be used for the stream query. It is optional and defaults to "stream_query" if unspecified.

string class_method = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for classMethod to set.

Returns
Type Description
StreamQueryReasoningEngineRequest.Builder

This builder for chaining.

setInput(Struct value)

public StreamQueryReasoningEngineRequest.Builder setInput(Struct value)

Optional. Input content provided by users in JSON object format. Examples include text query, function calling parameters, media bytes, etc.

.google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
StreamQueryReasoningEngineRequest.Builder

setInput(Struct.Builder builderForValue)

public StreamQueryReasoningEngineRequest.Builder setInput(Struct.Builder builderForValue)

Optional. Input content provided by users in JSON object format. Examples include text query, function calling parameters, media bytes, etc.

.google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
StreamQueryReasoningEngineRequest.Builder

setName(String value)

public StreamQueryReasoningEngineRequest.Builder setName(String value)

Required. The name of the ReasoningEngine resource to use. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
StreamQueryReasoningEngineRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StreamQueryReasoningEngineRequest.Builder setNameBytes(ByteString value)

Required. The name of the ReasoningEngine resource to use. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
StreamQueryReasoningEngineRequest.Builder

This builder for chaining.