public static final class CorroborateContentResponse.Builder extends GeneratedMessage.Builder<CorroborateContentResponse.Builder> implements CorroborateContentResponseOrBuilderResponse message for CorroborateContent.
Protobuf type google.cloud.aiplatform.v1beta1.CorroborateContentResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CorroborateContentResponse.BuilderImplements
CorroborateContentResponseOrBuilderStatic 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 |
|
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 |
|
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CorroborateContentResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CorroborateContentResponse.Builder |
|
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 |
floatThe corroborationScore to set. |
| Returns | |
|---|---|
| Type | Description |
CorroborateContentResponse.Builder |
This builder for chaining. |