Class GroundingFact.Builder

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

public static final class GroundingFact.Builder extends com.google.protobuf.GeneratedMessage.Builder<GroundingFact.Builder> implements GroundingFactOrBuilder
 Grounding Fact.
 
Protobuf type google.cloud.discoveryengine.v1beta.GroundingFact
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<GroundingFact.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<GroundingFact.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GroundingFact.Builder>
    • clear

      public GroundingFact.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<GroundingFact.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<GroundingFact.Builder>
    • getDefaultInstanceForType

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

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

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

      public GroundingFact.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<GroundingFact.Builder>
    • mergeFrom

      public GroundingFact.Builder mergeFrom(GroundingFact other)
    • isInitialized

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

      public GroundingFact.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<GroundingFact.Builder>
      Throws:
      IOException
    • getFactText

      public String getFactText()
       Text content of the fact. Can be at most 10K characters long.
       
      string fact_text = 1;
      Specified by:
      getFactText in interface GroundingFactOrBuilder
      Returns:
      The factText.
    • getFactTextBytes

      public com.google.protobuf.ByteString getFactTextBytes()
       Text content of the fact. Can be at most 10K characters long.
       
      string fact_text = 1;
      Specified by:
      getFactTextBytes in interface GroundingFactOrBuilder
      Returns:
      The bytes for factText.
    • setFactText

      public GroundingFact.Builder setFactText(String value)
       Text content of the fact. Can be at most 10K characters long.
       
      string fact_text = 1;
      Parameters:
      value - The factText to set.
      Returns:
      This builder for chaining.
    • clearFactText

      public GroundingFact.Builder clearFactText()
       Text content of the fact. Can be at most 10K characters long.
       
      string fact_text = 1;
      Returns:
      This builder for chaining.
    • setFactTextBytes

      public GroundingFact.Builder setFactTextBytes(com.google.protobuf.ByteString value)
       Text content of the fact. Can be at most 10K characters long.
       
      string fact_text = 1;
      Parameters:
      value - The bytes for factText to set.
      Returns:
      This builder for chaining.
    • getAttributesCount

      public int getAttributesCount()
      Description copied from interface: GroundingFactOrBuilder
       Attributes associated with the fact.
       Common attributes include `source` (indicating where the fact was sourced
       from), `author` (indicating the author of the fact), and so on.
       
      map<string, string> attributes = 2;
      Specified by:
      getAttributesCount in interface GroundingFactOrBuilder
    • containsAttributes

      public boolean containsAttributes(String key)
       Attributes associated with the fact.
       Common attributes include `source` (indicating where the fact was sourced
       from), `author` (indicating the author of the fact), and so on.
       
      map<string, string> attributes = 2;
      Specified by:
      containsAttributes in interface GroundingFactOrBuilder
    • getAttributes

      @Deprecated public Map<String,String> getAttributes()
      Deprecated.
      Use getAttributesMap() instead.
      Specified by:
      getAttributes in interface GroundingFactOrBuilder
    • getAttributesMap

      public Map<String,String> getAttributesMap()
       Attributes associated with the fact.
       Common attributes include `source` (indicating where the fact was sourced
       from), `author` (indicating the author of the fact), and so on.
       
      map<string, string> attributes = 2;
      Specified by:
      getAttributesMap in interface GroundingFactOrBuilder
    • getAttributesOrDefault

      public String getAttributesOrDefault(String key, String defaultValue)
       Attributes associated with the fact.
       Common attributes include `source` (indicating where the fact was sourced
       from), `author` (indicating the author of the fact), and so on.
       
      map<string, string> attributes = 2;
      Specified by:
      getAttributesOrDefault in interface GroundingFactOrBuilder
    • getAttributesOrThrow

      public String getAttributesOrThrow(String key)
       Attributes associated with the fact.
       Common attributes include `source` (indicating where the fact was sourced
       from), `author` (indicating the author of the fact), and so on.
       
      map<string, string> attributes = 2;
      Specified by:
      getAttributesOrThrow in interface GroundingFactOrBuilder
    • clearAttributes

      public GroundingFact.Builder clearAttributes()
    • removeAttributes

      public GroundingFact.Builder removeAttributes(String key)
       Attributes associated with the fact.
       Common attributes include `source` (indicating where the fact was sourced
       from), `author` (indicating the author of the fact), and so on.
       
      map<string, string> attributes = 2;
    • getMutableAttributes

      @Deprecated public Map<String,String> getMutableAttributes()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAttributes

      public GroundingFact.Builder putAttributes(String key, String value)
       Attributes associated with the fact.
       Common attributes include `source` (indicating where the fact was sourced
       from), `author` (indicating the author of the fact), and so on.
       
      map<string, string> attributes = 2;
    • putAllAttributes

      public GroundingFact.Builder putAllAttributes(Map<String,String> values)
       Attributes associated with the fact.
       Common attributes include `source` (indicating where the fact was sourced
       from), `author` (indicating the author of the fact), and so on.
       
      map<string, string> attributes = 2;