Class RankingRecord.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RankingRecord.Builder>
com.google.cloud.discoveryengine.v1beta.RankingRecord.Builder
All Implemented Interfaces:
RankingRecordOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RankingRecord

public static final class RankingRecord.Builder extends com.google.protobuf.GeneratedMessage.Builder<RankingRecord.Builder> implements RankingRecordOrBuilder
 Record message for
 [RankService.Rank][google.cloud.discoveryengine.v1beta.RankService.Rank]
 method.
 
Protobuf type google.cloud.discoveryengine.v1beta.RankingRecord
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The content of the record.
    The unique ID to represent the record.
    The score of this record based on the given query and selected model.
    The title of the record.
    The content of the record.
    com.google.protobuf.ByteString
    The content of the record.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The unique ID to represent the record.
    com.google.protobuf.ByteString
    The unique ID to represent the record.
    float
    The score of this record based on the given query and selected model.
    The title of the record.
    com.google.protobuf.ByteString
    The title of the record.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The content of the record.
    setContentBytes(com.google.protobuf.ByteString value)
    The content of the record.
    setId(String value)
    The unique ID to represent the record.
    setIdBytes(com.google.protobuf.ByteString value)
    The unique ID to represent the record.
    setScore(float value)
    The score of this record based on the given query and selected model.
    The title of the record.
    setTitleBytes(com.google.protobuf.ByteString value)
    The title of the record.

    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RankingRecord.Builder>
    • clear

      public RankingRecord.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RankingRecord.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RankingRecord.Builder>
    • getDefaultInstanceForType

      public RankingRecord getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public RankingRecord build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RankingRecord buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RankingRecord.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RankingRecord.Builder>
    • mergeFrom

      public RankingRecord.Builder mergeFrom(RankingRecord other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RankingRecord.Builder>
    • mergeFrom

      public RankingRecord.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RankingRecord.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       The unique ID to represent the record.
       
      string id = 1;
      Specified by:
      getId in interface RankingRecordOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The unique ID to represent the record.
       
      string id = 1;
      Specified by:
      getIdBytes in interface RankingRecordOrBuilder
      Returns:
      The bytes for id.
    • setId

      public RankingRecord.Builder setId(String value)
       The unique ID to represent the record.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public RankingRecord.Builder clearId()
       The unique ID to represent the record.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public RankingRecord.Builder setIdBytes(com.google.protobuf.ByteString value)
       The unique ID to represent the record.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getTitle

      public String getTitle()
       The title of the record. Empty by default.
       At least one of
       [title][google.cloud.discoveryengine.v1beta.RankingRecord.title] or
       [content][google.cloud.discoveryengine.v1beta.RankingRecord.content] should
       be set otherwise an INVALID_ARGUMENT error is thrown.
       
      string title = 2;
      Specified by:
      getTitle in interface RankingRecordOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       The title of the record. Empty by default.
       At least one of
       [title][google.cloud.discoveryengine.v1beta.RankingRecord.title] or
       [content][google.cloud.discoveryengine.v1beta.RankingRecord.content] should
       be set otherwise an INVALID_ARGUMENT error is thrown.
       
      string title = 2;
      Specified by:
      getTitleBytes in interface RankingRecordOrBuilder
      Returns:
      The bytes for title.
    • setTitle

      public RankingRecord.Builder setTitle(String value)
       The title of the record. Empty by default.
       At least one of
       [title][google.cloud.discoveryengine.v1beta.RankingRecord.title] or
       [content][google.cloud.discoveryengine.v1beta.RankingRecord.content] should
       be set otherwise an INVALID_ARGUMENT error is thrown.
       
      string title = 2;
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

      public RankingRecord.Builder clearTitle()
       The title of the record. Empty by default.
       At least one of
       [title][google.cloud.discoveryengine.v1beta.RankingRecord.title] or
       [content][google.cloud.discoveryengine.v1beta.RankingRecord.content] should
       be set otherwise an INVALID_ARGUMENT error is thrown.
       
      string title = 2;
      Returns:
      This builder for chaining.
    • setTitleBytes

      public RankingRecord.Builder setTitleBytes(com.google.protobuf.ByteString value)
       The title of the record. Empty by default.
       At least one of
       [title][google.cloud.discoveryengine.v1beta.RankingRecord.title] or
       [content][google.cloud.discoveryengine.v1beta.RankingRecord.content] should
       be set otherwise an INVALID_ARGUMENT error is thrown.
       
      string title = 2;
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • getContent

      public String getContent()
       The content of the record. Empty by default.
       At least one of
       [title][google.cloud.discoveryengine.v1beta.RankingRecord.title] or
       [content][google.cloud.discoveryengine.v1beta.RankingRecord.content] should
       be set otherwise an INVALID_ARGUMENT error is thrown.
       
      string content = 3;
      Specified by:
      getContent in interface RankingRecordOrBuilder
      Returns:
      The content.
    • getContentBytes

      public com.google.protobuf.ByteString getContentBytes()
       The content of the record. Empty by default.
       At least one of
       [title][google.cloud.discoveryengine.v1beta.RankingRecord.title] or
       [content][google.cloud.discoveryengine.v1beta.RankingRecord.content] should
       be set otherwise an INVALID_ARGUMENT error is thrown.
       
      string content = 3;
      Specified by:
      getContentBytes in interface RankingRecordOrBuilder
      Returns:
      The bytes for content.
    • setContent

      public RankingRecord.Builder setContent(String value)
       The content of the record. Empty by default.
       At least one of
       [title][google.cloud.discoveryengine.v1beta.RankingRecord.title] or
       [content][google.cloud.discoveryengine.v1beta.RankingRecord.content] should
       be set otherwise an INVALID_ARGUMENT error is thrown.
       
      string content = 3;
      Parameters:
      value - The content to set.
      Returns:
      This builder for chaining.
    • clearContent

      public RankingRecord.Builder clearContent()
       The content of the record. Empty by default.
       At least one of
       [title][google.cloud.discoveryengine.v1beta.RankingRecord.title] or
       [content][google.cloud.discoveryengine.v1beta.RankingRecord.content] should
       be set otherwise an INVALID_ARGUMENT error is thrown.
       
      string content = 3;
      Returns:
      This builder for chaining.
    • setContentBytes

      public RankingRecord.Builder setContentBytes(com.google.protobuf.ByteString value)
       The content of the record. Empty by default.
       At least one of
       [title][google.cloud.discoveryengine.v1beta.RankingRecord.title] or
       [content][google.cloud.discoveryengine.v1beta.RankingRecord.content] should
       be set otherwise an INVALID_ARGUMENT error is thrown.
       
      string content = 3;
      Parameters:
      value - The bytes for content to set.
      Returns:
      This builder for chaining.
    • getScore

      public float getScore()
       The score of this record based on the given query and selected model.
       
      float score = 4;
      Specified by:
      getScore in interface RankingRecordOrBuilder
      Returns:
      The score.
    • setScore

      public RankingRecord.Builder setScore(float value)
       The score of this record based on the given query and selected model.
       
      float score = 4;
      Parameters:
      value - The score to set.
      Returns:
      This builder for chaining.
    • clearScore

      public RankingRecord.Builder clearScore()
       The score of this record based on the given query and selected model.
       
      float score = 4;
      Returns:
      This builder for chaining.