Class CorroborateContentResponse.Builder (3.56.0)

public static final class CorroborateContentResponse.Builder extends GeneratedMessageV3.Builder<CorroborateContentResponse.Builder> implements CorroborateContentResponseOrBuilder

Response message for CorroborateContent.

Protobuf type google.cloud.aiplatform.v1beta1.CorroborateContentResponse

Static Methods

getDescriptor()

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

Methods

addAllClaims(Iterable<? extends Claim> values)

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.v1beta1.Claim claims = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.Claim>
Returns
Type Description
CorroborateContentResponse.Builder

addClaims(Claim value)

public CorroborateContentResponse.Builder addClaims(Claim value)

Claims that are extracted from the input content and facts that support the claims.

repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2;

Parameter
Name Description
value Claim
Returns
Type Description
CorroborateContentResponse.Builder

addClaims(Claim.Builder builderForValue)

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.v1beta1.Claim claims = 2;

Parameter
Name Description
builderForValue Claim.Builder
Returns
Type Description
CorroborateContentResponse.Builder

addClaims(int index, Claim value)

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.v1beta1.Claim claims = 2;

Parameters
Name Description
index int
value Claim
Returns
Type Description
CorroborateContentResponse.Builder

addClaims(int index, Claim.Builder builderForValue)

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.v1beta1.Claim claims = 2;

Parameters
Name Description
index int
builderForValue Claim.Builder
Returns
Type Description
CorroborateContentResponse.Builder

addClaimsBuilder()

public Claim.Builder addClaimsBuilder()

Claims that are extracted from the input content and facts that support the claims.

repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2;

Returns
Type Description
Claim.Builder

addClaimsBuilder(int index)

public Claim.Builder addClaimsBuilder(int index)

Claims that are extracted from the input content and facts that support the claims.

repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2;

Parameter
Name Description
index int
Returns
Type Description
Claim.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CorroborateContentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CorroborateContentResponse.Builder
Overrides

build()

public CorroborateContentResponse build()
Returns
Type Description
CorroborateContentResponse

buildPartial()

public CorroborateContentResponse buildPartial()
Returns
Type Description
CorroborateContentResponse

clear()

public CorroborateContentResponse.Builder clear()
Returns
Type Description
CorroborateContentResponse.Builder
Overrides

clearClaims()

public CorroborateContentResponse.Builder clearClaims()

Claims that are extracted from the input content and facts that support the claims.

repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2;

Returns
Type Description
CorroborateContentResponse.Builder

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
Type Description
CorroborateContentResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CorroborateContentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CorroborateContentResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CorroborateContentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CorroborateContentResponse.Builder
Overrides

clone()

public CorroborateContentResponse.Builder clone()
Returns
Type Description
CorroborateContentResponse.Builder
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.v1beta1.Claim claims = 2;

Parameter
Name Description
index int
Returns
Type Description
Claim

getClaimsBuilder(int index)

public Claim.Builder getClaimsBuilder(int index)

Claims that are extracted from the input content and facts that support the claims.

repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2;

Parameter
Name Description
index int
Returns
Type Description
Claim.Builder

getClaimsBuilderList()

public List<Claim.Builder> getClaimsBuilderList()

Claims that are extracted from the input content and facts that support the claims.

repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2;

Returns
Type Description
List<Builder>

getClaimsCount()

public int getClaimsCount()

Claims that are extracted from the input content and facts that support the claims.

repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Claim claims = 2;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CorroborateContentResponse other)

public CorroborateContentResponse.Builder mergeFrom(CorroborateContentResponse other)
Parameter
Name Description
other CorroborateContentResponse
Returns
Type Description
CorroborateContentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CorroborateContentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CorroborateContentResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CorroborateContentResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CorroborateContentResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CorroborateContentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CorroborateContentResponse.Builder
Overrides

removeClaims(int index)

public CorroborateContentResponse.Builder removeClaims(int index)

Claims that are extracted from the input content and facts that support the claims.

repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2;

Parameter
Name Description
index int
Returns
Type Description
CorroborateContentResponse.Builder

setClaims(int index, Claim value)

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.v1beta1.Claim claims = 2;

Parameters
Name Description
index int
value Claim
Returns
Type Description
CorroborateContentResponse.Builder

setClaims(int index, Claim.Builder builderForValue)

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.v1beta1.Claim claims = 2;

Parameters
Name Description
index int
builderForValue Claim.Builder
Returns
Type Description
CorroborateContentResponse.Builder

setCorroborationScore(float value)

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;

Parameter
Name Description
value float

The corroborationScore to set.

Returns
Type Description
CorroborateContentResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CorroborateContentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CorroborateContentResponse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CorroborateContentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CorroborateContentResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CorroborateContentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CorroborateContentResponse.Builder
Overrides