Class CorroborateContentResponse (3.56.0)

public final class CorroborateContentResponse extends GeneratedMessageV3 implements CorroborateContentResponseOrBuilder

Response message for CorroborateContent.

Protobuf type google.cloud.aiplatform.v1.CorroborateContentResponse

Static Fields

CLAIMS_FIELD_NUMBER

public static final int CLAIMS_FIELD_NUMBER
Field Value
Type Description
int

CORROBORATION_SCORE_FIELD_NUMBER

public static final int CORROBORATION_SCORE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CorroborateContentResponse getDefaultInstance()
Returns
Type Description
CorroborateContentResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CorroborateContentResponse.Builder newBuilder()
Returns
Type Description
CorroborateContentResponse.Builder

newBuilder(CorroborateContentResponse prototype)

public static CorroborateContentResponse.Builder newBuilder(CorroborateContentResponse prototype)
Parameter
Name Description
prototype CorroborateContentResponse
Returns
Type Description
CorroborateContentResponse.Builder

parseDelimitedFrom(InputStream input)

public static CorroborateContentResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CorroborateContentResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CorroborateContentResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CorroborateContentResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CorroborateContentResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CorroborateContentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CorroborateContentResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CorroborateContentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CorroborateContentResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CorroborateContentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CorroborateContentResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CorroborateContentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CorroborateContentResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CorroborateContentResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CorroborateContentResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CorroborateContentResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CorroborateContentResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CorroborateContentResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CorroborateContentResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CorroborateContentResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CorroborateContentResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CorroborateContentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CorroborateContentResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CorroborateContentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CorroborateContentResponse> parser()
Returns
Type Description
Parser<CorroborateContentResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getClaims(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
Claim

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;

Returns
Type Description
int

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;

Returns
Type Description
List<Claim>

getClaimsOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ClaimOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1.ClaimOrBuilder>

getCorroborationScore()

public float getCorroborationScore()

Confidence score of corroborating content. Value is [0,1] with 1 is the most confidence.

optional float corroboration_score = 1;

Returns
Type Description
float

The corroborationScore.

getDefaultInstanceForType()

public CorroborateContentResponse getDefaultInstanceForType()
Returns
Type Description
CorroborateContentResponse

getParserForType()

public Parser<CorroborateContentResponse> getParserForType()
Returns
Type Description
Parser<CorroborateContentResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCorroborationScore()

public boolean hasCorroborationScore()

Confidence score of corroborating content. Value is [0,1] with 1 is the most confidence.

optional float corroboration_score = 1;

Returns
Type Description
boolean

Whether the corroborationScore field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CorroborateContentResponse.Builder newBuilderForType()
Returns
Type Description
CorroborateContentResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CorroborateContentResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CorroborateContentResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CorroborateContentResponse.Builder toBuilder()
Returns
Type Description
CorroborateContentResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException