Class QueryReasoningEngineRequest.Builder (3.40.0)

public static final class QueryReasoningEngineRequest.Builder extends GeneratedMessageV3.Builder<QueryReasoningEngineRequest.Builder> implements QueryReasoningEngineRequestOrBuilder

Request message for [ReasoningEngineExecutionService.Query][].

Protobuf type google.cloud.aiplatform.v1beta1.QueryReasoningEngineRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueryReasoningEngineRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QueryReasoningEngineRequest.Builder
Overrides

build()

public QueryReasoningEngineRequest build()
Returns
TypeDescription
QueryReasoningEngineRequest

buildPartial()

public QueryReasoningEngineRequest buildPartial()
Returns
TypeDescription
QueryReasoningEngineRequest

clear()

public QueryReasoningEngineRequest.Builder clear()
Returns
TypeDescription
QueryReasoningEngineRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public QueryReasoningEngineRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
QueryReasoningEngineRequest.Builder
Overrides

clearInput()

public QueryReasoningEngineRequest.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
TypeDescription
QueryReasoningEngineRequest.Builder

clearName()

public QueryReasoningEngineRequest.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
TypeDescription
QueryReasoningEngineRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryReasoningEngineRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
QueryReasoningEngineRequest.Builder
Overrides

clone()

public QueryReasoningEngineRequest.Builder clone()
Returns
TypeDescription
QueryReasoningEngineRequest.Builder
Overrides

getDefaultInstanceForType()

public QueryReasoningEngineRequest getDefaultInstanceForType()
Returns
TypeDescription
QueryReasoningEngineRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the input field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QueryReasoningEngineRequest other)

public QueryReasoningEngineRequest.Builder mergeFrom(QueryReasoningEngineRequest other)
Parameter
NameDescription
otherQueryReasoningEngineRequest
Returns
TypeDescription
QueryReasoningEngineRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QueryReasoningEngineRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryReasoningEngineRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public QueryReasoningEngineRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
QueryReasoningEngineRequest.Builder
Overrides

mergeInput(Struct value)

public QueryReasoningEngineRequest.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
NameDescription
valueStruct
Returns
TypeDescription
QueryReasoningEngineRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryReasoningEngineRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueryReasoningEngineRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public QueryReasoningEngineRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QueryReasoningEngineRequest.Builder
Overrides

setInput(Struct value)

public QueryReasoningEngineRequest.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
NameDescription
valueStruct
Returns
TypeDescription
QueryReasoningEngineRequest.Builder

setInput(Struct.Builder builderForValue)

public QueryReasoningEngineRequest.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
NameDescription
builderForValueBuilder
Returns
TypeDescription
QueryReasoningEngineRequest.Builder

setName(String value)

public QueryReasoningEngineRequest.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
NameDescription
valueString

The name to set.

Returns
TypeDescription
QueryReasoningEngineRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public QueryReasoningEngineRequest.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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
QueryReasoningEngineRequest.Builder

This builder for chaining.

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

public QueryReasoningEngineRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
QueryReasoningEngineRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final QueryReasoningEngineRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueryReasoningEngineRequest.Builder
Overrides