Class CorroborateContentResponse.Builder

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

public static final class CorroborateContentResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<CorroborateContentResponse.Builder> implements CorroborateContentResponseOrBuilder
 Response message for CorroborateContent.
 
Protobuf type google.cloud.aiplatform.v1.CorroborateContentResponse
  • 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<CorroborateContentResponse.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<CorroborateContentResponse.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<CorroborateContentResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public CorroborateContentResponse.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<CorroborateContentResponse.Builder>
      Throws:
      IOException
    • hasCorroborationScore

      public boolean hasCorroborationScore()
       Confidence score of corroborating content. Value is [0,1] with 1 is the
       most confidence.
       
      optional float corroboration_score = 1;
      Specified by:
      hasCorroborationScore in interface CorroborateContentResponseOrBuilder
      Returns:
      Whether the corroborationScore field is set.
    • getCorroborationScore

      public float getCorroborationScore()
       Confidence score of corroborating content. Value is [0,1] with 1 is the
       most confidence.
       
      optional float corroboration_score = 1;
      Specified by:
      getCorroborationScore in interface CorroborateContentResponseOrBuilder
      Returns:
      The corroborationScore.
    • setCorroborationScore

      public CorroborateContentResponse.Builder setCorroborationScore(float value)
       Confidence score of corroborating content. Value is [0,1] with 1 is the
       most confidence.
       
      optional float corroboration_score = 1;
      Parameters:
      value - The corroborationScore to set.
      Returns:
      This builder for chaining.
    • clearCorroborationScore

      public CorroborateContentResponse.Builder clearCorroborationScore()
       Confidence score of corroborating content. Value is [0,1] with 1 is the
       most confidence.
       
      optional float corroboration_score = 1;
      Returns:
      This builder for chaining.
    • getClaimsList

      public List<Claim> getClaimsList()
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
      Specified by:
      getClaimsList in interface CorroborateContentResponseOrBuilder
    • getClaimsCount

      public int getClaimsCount()
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
      Specified by:
      getClaimsCount in interface CorroborateContentResponseOrBuilder
    • getClaims

      public Claim getClaims(int index)
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
      Specified by:
      getClaims in interface CorroborateContentResponseOrBuilder
    • setClaims

      public CorroborateContentResponse.Builder setClaims(int index, Claim value)
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
    • setClaims

      public CorroborateContentResponse.Builder setClaims(int index, Claim.Builder builderForValue)
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
    • addClaims

      public CorroborateContentResponse.Builder addClaims(Claim value)
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
    • addClaims

      public CorroborateContentResponse.Builder addClaims(int index, Claim value)
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
    • addClaims

      public CorroborateContentResponse.Builder addClaims(Claim.Builder builderForValue)
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
    • addClaims

      public CorroborateContentResponse.Builder addClaims(int index, Claim.Builder builderForValue)
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
    • addAllClaims

      public CorroborateContentResponse.Builder addAllClaims(Iterable<? extends Claim> values)
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
    • clearClaims

      public CorroborateContentResponse.Builder clearClaims()
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
    • removeClaims

      public CorroborateContentResponse.Builder removeClaims(int index)
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
    • getClaimsBuilder

      public Claim.Builder getClaimsBuilder(int index)
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
    • getClaimsOrBuilder

      public ClaimOrBuilder getClaimsOrBuilder(int index)
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
      Specified by:
      getClaimsOrBuilder in interface CorroborateContentResponseOrBuilder
    • getClaimsOrBuilderList

      public List<? extends ClaimOrBuilder> getClaimsOrBuilderList()
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
      Specified by:
      getClaimsOrBuilderList in interface CorroborateContentResponseOrBuilder
    • addClaimsBuilder

      public Claim.Builder addClaimsBuilder()
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
    • addClaimsBuilder

      public Claim.Builder addClaimsBuilder(int index)
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;
    • getClaimsBuilderList

      public List<Claim.Builder> getClaimsBuilderList()
       Claims that are extracted from the input content and facts that support the
       claims.
       
      repeated .google.cloud.aiplatform.v1.Claim claims = 2;