public static final class AnswerQueryRequest.SafetySpec.Builder extends GeneratedMessageV3.Builder<AnswerQueryRequest.SafetySpec.Builder> implements AnswerQueryRequest.SafetySpecOrBuilder
Safety specification.
Protobuf type google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SafetySpec
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnswerQueryRequest.SafetySpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AnswerQueryRequest.SafetySpec build()
buildPartial()
public AnswerQueryRequest.SafetySpec buildPartial()
clear()
public AnswerQueryRequest.SafetySpec.Builder clear()
Overrides
clearEnable()
public AnswerQueryRequest.SafetySpec.Builder clearEnable()
Enable the safety filtering on the answer response. It is false by
default.
bool enable = 1;
clearField(Descriptors.FieldDescriptor field)
public AnswerQueryRequest.SafetySpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AnswerQueryRequest.SafetySpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public AnswerQueryRequest.SafetySpec.Builder clone()
Overrides
getDefaultInstanceForType()
public AnswerQueryRequest.SafetySpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AnswerQueryRequest.SafetySpec other)
public AnswerQueryRequest.SafetySpec.Builder mergeFrom(AnswerQueryRequest.SafetySpec other)
public AnswerQueryRequest.SafetySpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AnswerQueryRequest.SafetySpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnswerQueryRequest.SafetySpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public AnswerQueryRequest.SafetySpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnswerQueryRequest.SafetySpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AnswerQueryRequest.SafetySpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides