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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public StreamQueryReasoningEngineRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public StreamQueryReasoningEngineRequest build()
public StreamQueryReasoningEngineRequest buildPartial()
public StreamQueryReasoningEngineRequest.Builder clear()
Overrides
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];
public StreamQueryReasoningEngineRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
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) = { ... }
public StreamQueryReasoningEngineRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public StreamQueryReasoningEngineRequest.Builder clone()
Overrides
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.
|
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.
|
public StreamQueryReasoningEngineRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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];
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];
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.
|
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public StreamQueryReasoningEngineRequest.Builder mergeFrom(StreamQueryReasoningEngineRequest other)
public StreamQueryReasoningEngineRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public StreamQueryReasoningEngineRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
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
|
public final StreamQueryReasoningEngineRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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.
|
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.
|
public StreamQueryReasoningEngineRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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
|
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
|
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.
|
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.
|
public StreamQueryReasoningEngineRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final StreamQueryReasoningEngineRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides