Class Claim.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Claim.Builder>
com.google.cloud.aiplatform.v1.Claim.Builder
All Implemented Interfaces:
ClaimOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Claim

public static final class Claim.Builder extends com.google.protobuf.GeneratedMessage.Builder<Claim.Builder> implements ClaimOrBuilder
 Claim that is extracted from the input text and facts that support it.
 
Protobuf type google.cloud.aiplatform.v1.Claim
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllFactIndexes(Iterable<? extends Integer> values)
    Indexes of the facts supporting this claim.
    addFactIndexes(int value)
    Indexes of the facts supporting this claim.
     
     
     
    Index in the input text where the claim ends (exclusive).
    Indexes of the facts supporting this claim.
    Confidence score of this corroboration.
    Index in the input text where the claim starts (inclusive).
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    int
    Index in the input text where the claim ends (exclusive).
    int
    getFactIndexes(int index)
    Indexes of the facts supporting this claim.
    int
    Indexes of the facts supporting this claim.
    Indexes of the facts supporting this claim.
    float
    Confidence score of this corroboration.
    int
    Index in the input text where the claim starts (inclusive).
    boolean
    Index in the input text where the claim ends (exclusive).
    boolean
    Confidence score of this corroboration.
    boolean
    Index in the input text where the claim starts (inclusive).
    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)
     
    setEndIndex(int value)
    Index in the input text where the claim ends (exclusive).
    setFactIndexes(int index, int value)
    Indexes of the facts supporting this claim.
    setScore(float value)
    Confidence score of this corroboration.
    setStartIndex(int value)
    Index in the input text where the claim starts (inclusive).

    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<Claim.Builder>
    • clear

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

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

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

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

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

      public Claim.Builder mergeFrom(Claim other)
    • isInitialized

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

      public Claim.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<Claim.Builder>
      Throws:
      IOException
    • hasStartIndex

      public boolean hasStartIndex()
       Index in the input text where the claim starts (inclusive).
       
      optional int32 start_index = 1;
      Specified by:
      hasStartIndex in interface ClaimOrBuilder
      Returns:
      Whether the startIndex field is set.
    • getStartIndex

      public int getStartIndex()
       Index in the input text where the claim starts (inclusive).
       
      optional int32 start_index = 1;
      Specified by:
      getStartIndex in interface ClaimOrBuilder
      Returns:
      The startIndex.
    • setStartIndex

      public Claim.Builder setStartIndex(int value)
       Index in the input text where the claim starts (inclusive).
       
      optional int32 start_index = 1;
      Parameters:
      value - The startIndex to set.
      Returns:
      This builder for chaining.
    • clearStartIndex

      public Claim.Builder clearStartIndex()
       Index in the input text where the claim starts (inclusive).
       
      optional int32 start_index = 1;
      Returns:
      This builder for chaining.
    • hasEndIndex

      public boolean hasEndIndex()
       Index in the input text where the claim ends (exclusive).
       
      optional int32 end_index = 2;
      Specified by:
      hasEndIndex in interface ClaimOrBuilder
      Returns:
      Whether the endIndex field is set.
    • getEndIndex

      public int getEndIndex()
       Index in the input text where the claim ends (exclusive).
       
      optional int32 end_index = 2;
      Specified by:
      getEndIndex in interface ClaimOrBuilder
      Returns:
      The endIndex.
    • setEndIndex

      public Claim.Builder setEndIndex(int value)
       Index in the input text where the claim ends (exclusive).
       
      optional int32 end_index = 2;
      Parameters:
      value - The endIndex to set.
      Returns:
      This builder for chaining.
    • clearEndIndex

      public Claim.Builder clearEndIndex()
       Index in the input text where the claim ends (exclusive).
       
      optional int32 end_index = 2;
      Returns:
      This builder for chaining.
    • getFactIndexesList

      public List<Integer> getFactIndexesList()
       Indexes of the facts supporting this claim.
       
      repeated int32 fact_indexes = 3;
      Specified by:
      getFactIndexesList in interface ClaimOrBuilder
      Returns:
      A list containing the factIndexes.
    • getFactIndexesCount

      public int getFactIndexesCount()
       Indexes of the facts supporting this claim.
       
      repeated int32 fact_indexes = 3;
      Specified by:
      getFactIndexesCount in interface ClaimOrBuilder
      Returns:
      The count of factIndexes.
    • getFactIndexes

      public int getFactIndexes(int index)
       Indexes of the facts supporting this claim.
       
      repeated int32 fact_indexes = 3;
      Specified by:
      getFactIndexes in interface ClaimOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The factIndexes at the given index.
    • setFactIndexes

      public Claim.Builder setFactIndexes(int index, int value)
       Indexes of the facts supporting this claim.
       
      repeated int32 fact_indexes = 3;
      Parameters:
      index - The index to set the value at.
      value - The factIndexes to set.
      Returns:
      This builder for chaining.
    • addFactIndexes

      public Claim.Builder addFactIndexes(int value)
       Indexes of the facts supporting this claim.
       
      repeated int32 fact_indexes = 3;
      Parameters:
      value - The factIndexes to add.
      Returns:
      This builder for chaining.
    • addAllFactIndexes

      public Claim.Builder addAllFactIndexes(Iterable<? extends Integer> values)
       Indexes of the facts supporting this claim.
       
      repeated int32 fact_indexes = 3;
      Parameters:
      values - The factIndexes to add.
      Returns:
      This builder for chaining.
    • clearFactIndexes

      public Claim.Builder clearFactIndexes()
       Indexes of the facts supporting this claim.
       
      repeated int32 fact_indexes = 3;
      Returns:
      This builder for chaining.
    • hasScore

      public boolean hasScore()
       Confidence score of this corroboration.
       
      optional float score = 4;
      Specified by:
      hasScore in interface ClaimOrBuilder
      Returns:
      Whether the score field is set.
    • getScore

      public float getScore()
       Confidence score of this corroboration.
       
      optional float score = 4;
      Specified by:
      getScore in interface ClaimOrBuilder
      Returns:
      The score.
    • setScore

      public Claim.Builder setScore(float value)
       Confidence score of this corroboration.
       
      optional float score = 4;
      Parameters:
      value - The score to set.
      Returns:
      This builder for chaining.
    • clearScore

      public Claim.Builder clearScore()
       Confidence score of this corroboration.
       
      optional float score = 4;
      Returns:
      This builder for chaining.