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.v1beta.SampleQuery.QueryEntry
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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.v1beta.SampleQuery.QueryEntry.Target targets = 3;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SampleQuery.QueryEntry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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.v1beta.SampleQuery.QueryEntry.Target targets = 3;
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.v1beta.SampleQuery.QueryEntry.Target targets = 3;
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.v1beta.SampleQuery.QueryEntry.Target targets = 3;
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.v1beta.SampleQuery.QueryEntry.Target targets = 3;
addTargetsBuilder()
public SampleQuery.QueryEntry.Target.Builder addTargetsBuilder()
List of targets for the query.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3;
addTargetsBuilder(int index)
public SampleQuery.QueryEntry.Target.Builder addTargetsBuilder(int index)
List of targets for the query.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3;
Parameter |
Name |
Description |
index |
int
|
build()
public SampleQuery.QueryEntry build()
buildPartial()
public SampleQuery.QueryEntry buildPartial()
clear()
public SampleQuery.QueryEntry.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SampleQuery.QueryEntry.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SampleQuery.QueryEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearQuery()
public SampleQuery.QueryEntry.Builder clearQuery()
Required. The query.
string query = 1 [(.google.api.field_behavior) = REQUIRED];
clearTargets()
public SampleQuery.QueryEntry.Builder clearTargets()
List of targets for the query.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3;
clone()
public SampleQuery.QueryEntry.Builder clone()
Overrides
getDefaultInstanceForType()
public SampleQuery.QueryEntry getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.v1beta.SampleQuery.QueryEntry.Target targets = 3;
Parameter |
Name |
Description |
index |
int
|
getTargetsBuilder(int index)
public SampleQuery.QueryEntry.Target.Builder getTargetsBuilder(int index)
List of targets for the query.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3;
Parameter |
Name |
Description |
index |
int
|
getTargetsBuilderList()
public List<SampleQuery.QueryEntry.Target.Builder> getTargetsBuilderList()
List of targets for the query.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3;
getTargetsCount()
public int getTargetsCount()
List of targets for the query.
repeated .google.cloud.discoveryengine.v1beta.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.v1beta.SampleQuery.QueryEntry.Target targets = 3;
getTargetsOrBuilder(int index)
public SampleQuery.QueryEntry.TargetOrBuilder getTargetsOrBuilder(int index)
List of targets for the query.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3;
Parameter |
Name |
Description |
index |
int
|
getTargetsOrBuilderList()
public List<? extends SampleQuery.QueryEntry.TargetOrBuilder> getTargetsOrBuilderList()
List of targets for the query.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3;
Returns |
Type |
Description |
List<? extends com.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.TargetOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SampleQuery.QueryEntry other)
public SampleQuery.QueryEntry.Builder mergeFrom(SampleQuery.QueryEntry other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SampleQuery.QueryEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SampleQuery.QueryEntry.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SampleQuery.QueryEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeTargets(int index)
public SampleQuery.QueryEntry.Builder removeTargets(int index)
List of targets for the query.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry.Target targets = 3;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public SampleQuery.QueryEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SampleQuery.QueryEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.v1beta.SampleQuery.QueryEntry.Target targets = 3;
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.v1beta.SampleQuery.QueryEntry.Target targets = 3;
setUnknownFields(UnknownFieldSet unknownFields)
public final SampleQuery.QueryEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides