Class AnswerQueryRequest.SafetySpec.Builder (0.42.0)

public static final class AnswerQueryRequest.SafetySpec.Builder extends GeneratedMessageV3.Builder<AnswerQueryRequest.SafetySpec.Builder> implements AnswerQueryRequest.SafetySpecOrBuilder

Safety specification.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearEnable()

public AnswerQueryRequest.SafetySpec.Builder clearEnable()

Enable the safety filtering on the answer response. It is false by default.

bool enable = 1;

Returns
Type Description
AnswerQueryRequest.SafetySpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getEnable()

public boolean getEnable()

Enable the safety filtering on the answer response. It is false by default.

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.SafetySpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnable(boolean value)

public AnswerQueryRequest.SafetySpec.Builder setEnable(boolean value)

Enable the safety filtering on the answer response. It is false by default.

bool enable = 1;

Parameter
Name Description
value boolean

The enable to set.

Returns
Type Description
AnswerQueryRequest.SafetySpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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