Package com.google.cloud.aiplatform.v1
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 TypeMethodDescriptionaddAllFactIndexes(Iterable<? extends Integer> values) Indexes of the facts supporting this claim.addFactIndexes(int value) Indexes of the facts supporting this claim.build()clear()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.Descriptorcom.google.protobuf.Descriptors.DescriptorintIndex in the input text where the claim ends (exclusive).intgetFactIndexes(int index) Indexes of the facts supporting this claim.intIndexes of the facts supporting this claim.Indexes of the facts supporting this claim.floatgetScore()Confidence score of this corroboration.intIndex in the input text where the claim starts (inclusive).booleanIndex in the input text where the claim ends (exclusive).booleanhasScore()Confidence score of this corroboration.booleanIndex in the input text where the claim starts (inclusive).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(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, 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<Claim.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<Claim.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<Claim.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Claim.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasStartIndexin interfaceClaimOrBuilder- 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:
getStartIndexin interfaceClaimOrBuilder- Returns:
- The startIndex.
-
setStartIndex
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
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:
hasEndIndexin interfaceClaimOrBuilder- 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:
getEndIndexin interfaceClaimOrBuilder- Returns:
- The endIndex.
-
setEndIndex
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
Index in the input text where the claim ends (exclusive).
optional int32 end_index = 2;- Returns:
- This builder for chaining.
-
getFactIndexesList
Indexes of the facts supporting this claim.
repeated int32 fact_indexes = 3;- Specified by:
getFactIndexesListin interfaceClaimOrBuilder- Returns:
- A list containing the factIndexes.
-
getFactIndexesCount
public int getFactIndexesCount()Indexes of the facts supporting this claim.
repeated int32 fact_indexes = 3;- Specified by:
getFactIndexesCountin interfaceClaimOrBuilder- 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:
getFactIndexesin interfaceClaimOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The factIndexes at the given index.
-
setFactIndexes
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
Indexes of the facts supporting this claim.
repeated int32 fact_indexes = 3;- Parameters:
value- The factIndexes to add.- Returns:
- This builder for chaining.
-
addAllFactIndexes
Indexes of the facts supporting this claim.
repeated int32 fact_indexes = 3;- Parameters:
values- The factIndexes to add.- Returns:
- This builder for chaining.
-
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:
hasScorein interfaceClaimOrBuilder- Returns:
- Whether the score field is set.
-
getScore
public float getScore()Confidence score of this corroboration.
optional float score = 4;- Specified by:
getScorein interfaceClaimOrBuilder- Returns:
- The score.
-
setScore
Confidence score of this corroboration.
optional float score = 4;- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
clearScore
Confidence score of this corroboration.
optional float score = 4;- Returns:
- This builder for chaining.
-