Class AnswerQueryRequest.RelatedQuestionsSpec.Builder (0.42.0)

public static final class AnswerQueryRequest.RelatedQuestionsSpec.Builder extends GeneratedMessageV3.Builder<AnswerQueryRequest.RelatedQuestionsSpec.Builder> implements AnswerQueryRequest.RelatedQuestionsSpecOrBuilder

Related questions specification.

Protobuf type google.cloud.discoveryengine.v1.AnswerQueryRequest.RelatedQuestionsSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnswerQueryRequest.RelatedQuestionsSpec build()
Returns
Type Description
AnswerQueryRequest.RelatedQuestionsSpec

buildPartial()

public AnswerQueryRequest.RelatedQuestionsSpec buildPartial()
Returns
Type Description
AnswerQueryRequest.RelatedQuestionsSpec

clear()

public AnswerQueryRequest.RelatedQuestionsSpec.Builder clear()
Returns
Type Description
AnswerQueryRequest.RelatedQuestionsSpec.Builder
Overrides

clearEnable()

public AnswerQueryRequest.RelatedQuestionsSpec.Builder clearEnable()

Enable related questions feature if true.

bool enable = 1;

Returns
Type Description
AnswerQueryRequest.RelatedQuestionsSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AnswerQueryRequest.RelatedQuestionsSpec.Builder clone()
Returns
Type Description
AnswerQueryRequest.RelatedQuestionsSpec.Builder
Overrides

getDefaultInstanceForType()

public AnswerQueryRequest.RelatedQuestionsSpec getDefaultInstanceForType()
Returns
Type Description
AnswerQueryRequest.RelatedQuestionsSpec

getDescriptorForType()

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

getEnable()

public boolean getEnable()

Enable related questions feature if true.

bool enable = 1;

Returns
Type Description
boolean

The enable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnswerQueryRequest.RelatedQuestionsSpec other)

public AnswerQueryRequest.RelatedQuestionsSpec.Builder mergeFrom(AnswerQueryRequest.RelatedQuestionsSpec other)
Parameter
Name Description
other AnswerQueryRequest.RelatedQuestionsSpec
Returns
Type Description
AnswerQueryRequest.RelatedQuestionsSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AnswerQueryRequest.RelatedQuestionsSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnswerQueryRequest.RelatedQuestionsSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnable(boolean value)

public AnswerQueryRequest.RelatedQuestionsSpec.Builder setEnable(boolean value)

Enable related questions feature if true.

bool enable = 1;

Parameter
Name Description
value boolean

The enable to set.

Returns
Type Description
AnswerQueryRequest.RelatedQuestionsSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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