Class Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder>
com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder
- All Implemented Interfaces:
Answer.Step.Action.Observation.SearchResult.ChunkInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Answer.Step.Action.Observation.SearchResult.ChunkInfo
public static final class Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder>
implements Answer.Step.Action.Observation.SearchResult.ChunkInfoOrBuilder
Chunk information.Protobuf type
google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Chunk resource name.Chunk textual content.The relevance of the chunk for a given query.getChunk()Chunk resource name.com.google.protobuf.ByteStringChunk resource name.Chunk textual content.com.google.protobuf.ByteStringChunk textual content.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatThe relevance of the chunk for a given query.booleanThe relevance of the chunk for a given query.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Chunk resource name.setChunkBytes(com.google.protobuf.ByteString value) Chunk resource name.setContent(String value) Chunk textual content.setContentBytes(com.google.protobuf.ByteString value) Chunk textual content.setRelevanceScore(float value) The relevance of the chunk for a given query.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder>
-
mergeFrom
public Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder>- Throws:
IOException
-
getChunk
Chunk resource name.
string chunk = 1;- Specified by:
getChunkin interfaceAnswer.Step.Action.Observation.SearchResult.ChunkInfoOrBuilder- Returns:
- The chunk.
-
getChunkBytes
public com.google.protobuf.ByteString getChunkBytes()Chunk resource name.
string chunk = 1;- Specified by:
getChunkBytesin interfaceAnswer.Step.Action.Observation.SearchResult.ChunkInfoOrBuilder- Returns:
- The bytes for chunk.
-
setChunk
Chunk resource name.
string chunk = 1;- Parameters:
value- The chunk to set.- Returns:
- This builder for chaining.
-
clearChunk
Chunk resource name.
string chunk = 1;- Returns:
- This builder for chaining.
-
setChunkBytes
public Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder setChunkBytes(com.google.protobuf.ByteString value) Chunk resource name.
string chunk = 1;- Parameters:
value- The bytes for chunk to set.- Returns:
- This builder for chaining.
-
getContent
Chunk textual content.
string content = 2;- Specified by:
getContentin interfaceAnswer.Step.Action.Observation.SearchResult.ChunkInfoOrBuilder- Returns:
- The content.
-
getContentBytes
public com.google.protobuf.ByteString getContentBytes()Chunk textual content.
string content = 2;- Specified by:
getContentBytesin interfaceAnswer.Step.Action.Observation.SearchResult.ChunkInfoOrBuilder- Returns:
- The bytes for content.
-
setContent
Chunk textual content.
string content = 2;- Parameters:
value- The content to set.- Returns:
- This builder for chaining.
-
clearContent
Chunk textual content.
string content = 2;- Returns:
- This builder for chaining.
-
setContentBytes
public Answer.Step.Action.Observation.SearchResult.ChunkInfo.Builder setContentBytes(com.google.protobuf.ByteString value) Chunk textual content.
string content = 2;- Parameters:
value- The bytes for content to set.- Returns:
- This builder for chaining.
-
hasRelevanceScore
public boolean hasRelevanceScore()The relevance of the chunk for a given query. Values range from 0.0 (completely irrelevant) to 1.0 (completely relevant). This value is for informational purpose only. It may change for the same query and chunk at any time due to a model retraining or change in implementation.
optional float relevance_score = 3;- Specified by:
hasRelevanceScorein interfaceAnswer.Step.Action.Observation.SearchResult.ChunkInfoOrBuilder- Returns:
- Whether the relevanceScore field is set.
-
getRelevanceScore
public float getRelevanceScore()The relevance of the chunk for a given query. Values range from 0.0 (completely irrelevant) to 1.0 (completely relevant). This value is for informational purpose only. It may change for the same query and chunk at any time due to a model retraining or change in implementation.
optional float relevance_score = 3;- Specified by:
getRelevanceScorein interfaceAnswer.Step.Action.Observation.SearchResult.ChunkInfoOrBuilder- Returns:
- The relevanceScore.
-
setRelevanceScore
The relevance of the chunk for a given query. Values range from 0.0 (completely irrelevant) to 1.0 (completely relevant). This value is for informational purpose only. It may change for the same query and chunk at any time due to a model retraining or change in implementation.
optional float relevance_score = 3;- Parameters:
value- The relevanceScore to set.- Returns:
- This builder for chaining.
-
clearRelevanceScore
The relevance of the chunk for a given query. Values range from 0.0 (completely irrelevant) to 1.0 (completely relevant). This value is for informational purpose only. It may change for the same query and chunk at any time due to a model retraining or change in implementation.
optional float relevance_score = 3;- Returns:
- This builder for chaining.
-