Class StreamQueryReasoningEngineRequest.Builder (3.56.0)

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

Request message for [ReasoningEngineExecutionService.StreamQuery][].

Protobuf type google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamQueryReasoningEngineRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamQueryReasoningEngineRequest.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public StreamQueryReasoningEngineRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StreamQueryReasoningEngineRequest.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamQueryReasoningEngineRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StreamQueryReasoningEngineRequest.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamQueryReasoningEngineRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamQueryReasoningEngineRequest.Builder
Overrides

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.

setField(Descriptors.FieldDescriptor field, Object value)

public StreamQueryReasoningEngineRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamQueryReasoningEngineRequest.Builder
Overrides

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.

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

public StreamQueryReasoningEngineRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StreamQueryReasoningEngineRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamQueryReasoningEngineRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamQueryReasoningEngineRequest.Builder
Overrides