Class SampleQuery.QueryEntry.Builder (0.47.0)

public static final class SampleQuery.QueryEntry.Builder extends GeneratedMessageV3.Builder<SampleQuery.QueryEntry.Builder> implements SampleQuery.QueryEntryOrBuilder

Query Entry captures metadata to be used for search evaluation.

Protobuf type google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry

Static Methods

getDescriptor()

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

Methods

addAllTargets(Iterable<? extends SampleQuery.QueryEntry.Target> values)

public SampleQuery.QueryEntry.Builder addAllTargets(Iterable<? extends SampleQuery.QueryEntry.Target> values)

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target>
Returns
Type Description
SampleQuery.QueryEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTargets(SampleQuery.QueryEntry.Target value)

public SampleQuery.QueryEntry.Builder addTargets(SampleQuery.QueryEntry.Target value)

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Parameter
Name Description
value SampleQuery.QueryEntry.Target
Returns
Type Description
SampleQuery.QueryEntry.Builder

addTargets(SampleQuery.QueryEntry.Target.Builder builderForValue)

public SampleQuery.QueryEntry.Builder addTargets(SampleQuery.QueryEntry.Target.Builder builderForValue)

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Parameter
Name Description
builderForValue SampleQuery.QueryEntry.Target.Builder
Returns
Type Description
SampleQuery.QueryEntry.Builder

addTargets(int index, SampleQuery.QueryEntry.Target value)

public SampleQuery.QueryEntry.Builder addTargets(int index, SampleQuery.QueryEntry.Target value)

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Parameters
Name Description
index int
value SampleQuery.QueryEntry.Target
Returns
Type Description
SampleQuery.QueryEntry.Builder

addTargets(int index, SampleQuery.QueryEntry.Target.Builder builderForValue)

public SampleQuery.QueryEntry.Builder addTargets(int index, SampleQuery.QueryEntry.Target.Builder builderForValue)

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Parameters
Name Description
index int
builderForValue SampleQuery.QueryEntry.Target.Builder
Returns
Type Description
SampleQuery.QueryEntry.Builder

addTargetsBuilder()

public SampleQuery.QueryEntry.Target.Builder addTargetsBuilder()

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Returns
Type Description
SampleQuery.QueryEntry.Target.Builder

addTargetsBuilder(int index)

public SampleQuery.QueryEntry.Target.Builder addTargetsBuilder(int index)

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Parameter
Name Description
index int
Returns
Type Description
SampleQuery.QueryEntry.Target.Builder

build()

public SampleQuery.QueryEntry build()
Returns
Type Description
SampleQuery.QueryEntry

buildPartial()

public SampleQuery.QueryEntry buildPartial()
Returns
Type Description
SampleQuery.QueryEntry

clear()

public SampleQuery.QueryEntry.Builder clear()
Returns
Type Description
SampleQuery.QueryEntry.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuery()

public SampleQuery.QueryEntry.Builder clearQuery()

Required. The query.

string query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SampleQuery.QueryEntry.Builder

This builder for chaining.

clearTargets()

public SampleQuery.QueryEntry.Builder clearTargets()

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Returns
Type Description
SampleQuery.QueryEntry.Builder

clone()

public SampleQuery.QueryEntry.Builder clone()
Returns
Type Description
SampleQuery.QueryEntry.Builder
Overrides

getDefaultInstanceForType()

public SampleQuery.QueryEntry getDefaultInstanceForType()
Returns
Type Description
SampleQuery.QueryEntry

getDescriptorForType()

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

getQuery()

public String getQuery()

Required. The query.

string query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The query.

getQueryBytes()

public ByteString getQueryBytes()

Required. The query.

string query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for query.

getTargets(int index)

public SampleQuery.QueryEntry.Target getTargets(int index)

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Parameter
Name Description
index int
Returns
Type Description
SampleQuery.QueryEntry.Target

getTargetsBuilder(int index)

public SampleQuery.QueryEntry.Target.Builder getTargetsBuilder(int index)

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Parameter
Name Description
index int
Returns
Type Description
SampleQuery.QueryEntry.Target.Builder

getTargetsBuilderList()

public List<SampleQuery.QueryEntry.Target.Builder> getTargetsBuilderList()

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Returns
Type Description
List<Builder>

getTargetsCount()

public int getTargetsCount()

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Returns
Type Description
int

getTargetsList()

public List<SampleQuery.QueryEntry.Target> getTargetsList()

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Returns
Type Description
List<Target>

getTargetsOrBuilder(int index)

public SampleQuery.QueryEntry.TargetOrBuilder getTargetsOrBuilder(int index)

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Parameter
Name Description
index int
Returns
Type Description
SampleQuery.QueryEntry.TargetOrBuilder

getTargetsOrBuilderList()

public List<? extends SampleQuery.QueryEntry.TargetOrBuilder> getTargetsOrBuilderList()

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.TargetOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SampleQuery.QueryEntry other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTargets(int index)

public SampleQuery.QueryEntry.Builder removeTargets(int index)

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Parameter
Name Description
index int
Returns
Type Description
SampleQuery.QueryEntry.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setQuery(String value)

public SampleQuery.QueryEntry.Builder setQuery(String value)

Required. The query.

string query = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The query to set.

Returns
Type Description
SampleQuery.QueryEntry.Builder

This builder for chaining.

setQueryBytes(ByteString value)

public SampleQuery.QueryEntry.Builder setQueryBytes(ByteString value)

Required. The query.

string query = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for query to set.

Returns
Type Description
SampleQuery.QueryEntry.Builder

This builder for chaining.

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

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

setTargets(int index, SampleQuery.QueryEntry.Target value)

public SampleQuery.QueryEntry.Builder setTargets(int index, SampleQuery.QueryEntry.Target value)

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Parameters
Name Description
index int
value SampleQuery.QueryEntry.Target
Returns
Type Description
SampleQuery.QueryEntry.Builder

setTargets(int index, SampleQuery.QueryEntry.Target.Builder builderForValue)

public SampleQuery.QueryEntry.Builder setTargets(int index, SampleQuery.QueryEntry.Target.Builder builderForValue)

List of targets for the query.

repeated .google.cloud.discoveryengine.v1alpha.SampleQuery.QueryEntry.Target targets = 3;

Parameters
Name Description
index int
builderForValue SampleQuery.QueryEntry.Target.Builder
Returns
Type Description
SampleQuery.QueryEntry.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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