public static final class SearchResponse.Summary.SafetyAttributes.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.SafetyAttributes.Builder> implements SearchResponse.Summary.SafetyAttributesOrBuilder
Safety Attribute categories and their associated confidence scores.Protobuf type
google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes| Modifier and Type | Method and Description |
|---|---|
SearchResponse.Summary.SafetyAttributes.Builder |
addAllCategories(Iterable<String> values)
The display names of Safety Attribute categories associated with the
generated content.
|
SearchResponse.Summary.SafetyAttributes.Builder |
addAllScores(Iterable<? extends Float> values)
The confidence scores of the each category, higher
value means higher confidence.
|
SearchResponse.Summary.SafetyAttributes.Builder |
addCategories(String value)
The display names of Safety Attribute categories associated with the
generated content.
|
SearchResponse.Summary.SafetyAttributes.Builder |
addCategoriesBytes(com.google.protobuf.ByteString value)
The display names of Safety Attribute categories associated with the
generated content.
|
SearchResponse.Summary.SafetyAttributes.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SearchResponse.Summary.SafetyAttributes.Builder |
addScores(float value)
The confidence scores of the each category, higher
value means higher confidence.
|
SearchResponse.Summary.SafetyAttributes |
build() |
SearchResponse.Summary.SafetyAttributes |
buildPartial() |
SearchResponse.Summary.SafetyAttributes.Builder |
clear() |
SearchResponse.Summary.SafetyAttributes.Builder |
clearCategories()
The display names of Safety Attribute categories associated with the
generated content.
|
SearchResponse.Summary.SafetyAttributes.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SearchResponse.Summary.SafetyAttributes.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SearchResponse.Summary.SafetyAttributes.Builder |
clearScores()
The confidence scores of the each category, higher
value means higher confidence.
|
SearchResponse.Summary.SafetyAttributes.Builder |
clone() |
String |
getCategories(int index)
The display names of Safety Attribute categories associated with the
generated content.
|
com.google.protobuf.ByteString |
getCategoriesBytes(int index)
The display names of Safety Attribute categories associated with the
generated content.
|
int |
getCategoriesCount()
The display names of Safety Attribute categories associated with the
generated content.
|
com.google.protobuf.ProtocolStringList |
getCategoriesList()
The display names of Safety Attribute categories associated with the
generated content.
|
SearchResponse.Summary.SafetyAttributes |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
float |
getScores(int index)
The confidence scores of the each category, higher
value means higher confidence.
|
int |
getScoresCount()
The confidence scores of the each category, higher
value means higher confidence.
|
List<Float> |
getScoresList()
The confidence scores of the each category, higher
value means higher confidence.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SearchResponse.Summary.SafetyAttributes.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SearchResponse.Summary.SafetyAttributes.Builder |
mergeFrom(com.google.protobuf.Message other) |
SearchResponse.Summary.SafetyAttributes.Builder |
mergeFrom(SearchResponse.Summary.SafetyAttributes other) |
SearchResponse.Summary.SafetyAttributes.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SearchResponse.Summary.SafetyAttributes.Builder |
setCategories(int index,
String value)
The display names of Safety Attribute categories associated with the
generated content.
|
SearchResponse.Summary.SafetyAttributes.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SearchResponse.Summary.SafetyAttributes.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SearchResponse.Summary.SafetyAttributes.Builder |
setScores(int index,
float value)
The confidence scores of the each category, higher
value means higher confidence.
|
SearchResponse.Summary.SafetyAttributes.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.SafetyAttributes.Builder>public SearchResponse.Summary.SafetyAttributes.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.SafetyAttributes.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.SafetyAttributes.Builder>public SearchResponse.Summary.SafetyAttributes getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SearchResponse.Summary.SafetyAttributes build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SearchResponse.Summary.SafetyAttributes buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SearchResponse.Summary.SafetyAttributes.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.SafetyAttributes.Builder>public SearchResponse.Summary.SafetyAttributes.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.SafetyAttributes.Builder>public SearchResponse.Summary.SafetyAttributes.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.SafetyAttributes.Builder>public SearchResponse.Summary.SafetyAttributes.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.SafetyAttributes.Builder>public SearchResponse.Summary.SafetyAttributes.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.SafetyAttributes.Builder>public SearchResponse.Summary.SafetyAttributes.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.SafetyAttributes.Builder>public SearchResponse.Summary.SafetyAttributes.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchResponse.Summary.SafetyAttributes.Builder>public SearchResponse.Summary.SafetyAttributes.Builder mergeFrom(SearchResponse.Summary.SafetyAttributes other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.SafetyAttributes.Builder>public SearchResponse.Summary.SafetyAttributes.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchResponse.Summary.SafetyAttributes.Builder>IOExceptionpublic com.google.protobuf.ProtocolStringList getCategoriesList()
The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
repeated string categories = 1;getCategoriesList in interface SearchResponse.Summary.SafetyAttributesOrBuilderpublic int getCategoriesCount()
The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
repeated string categories = 1;getCategoriesCount in interface SearchResponse.Summary.SafetyAttributesOrBuilderpublic String getCategories(int index)
The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
repeated string categories = 1;getCategories in interface SearchResponse.Summary.SafetyAttributesOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getCategoriesBytes(int index)
The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
repeated string categories = 1;getCategoriesBytes in interface SearchResponse.Summary.SafetyAttributesOrBuilderindex - The index of the value to return.public SearchResponse.Summary.SafetyAttributes.Builder setCategories(int index, String value)
The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
repeated string categories = 1;index - The index to set the value at.value - The categories to set.public SearchResponse.Summary.SafetyAttributes.Builder addCategories(String value)
The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
repeated string categories = 1;value - The categories to add.public SearchResponse.Summary.SafetyAttributes.Builder addAllCategories(Iterable<String> values)
The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
repeated string categories = 1;values - The categories to add.public SearchResponse.Summary.SafetyAttributes.Builder clearCategories()
The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
repeated string categories = 1;public SearchResponse.Summary.SafetyAttributes.Builder addCategoriesBytes(com.google.protobuf.ByteString value)
The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
repeated string categories = 1;value - The bytes of the categories to add.public List<Float> getScoresList()
The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
repeated float scores = 2;getScoresList in interface SearchResponse.Summary.SafetyAttributesOrBuilderpublic int getScoresCount()
The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
repeated float scores = 2;getScoresCount in interface SearchResponse.Summary.SafetyAttributesOrBuilderpublic float getScores(int index)
The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
repeated float scores = 2;getScores in interface SearchResponse.Summary.SafetyAttributesOrBuilderindex - The index of the element to return.public SearchResponse.Summary.SafetyAttributes.Builder setScores(int index, float value)
The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
repeated float scores = 2;index - The index to set the value at.value - The scores to set.public SearchResponse.Summary.SafetyAttributes.Builder addScores(float value)
The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
repeated float scores = 2;value - The scores to add.public SearchResponse.Summary.SafetyAttributes.Builder addAllScores(Iterable<? extends Float> values)
The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
repeated float scores = 2;values - The scores to add.public SearchResponse.Summary.SafetyAttributes.Builder clearScores()
The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
repeated float scores = 2;public final SearchResponse.Summary.SafetyAttributes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.SafetyAttributes.Builder>public final SearchResponse.Summary.SafetyAttributes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.SafetyAttributes.Builder>Copyright © 2025 Google LLC. All rights reserved.