Class CorroborateContentRequest.Builder (3.56.0)

public static final class CorroborateContentRequest.Builder extends GeneratedMessageV3.Builder<CorroborateContentRequest.Builder> implements CorroborateContentRequestOrBuilder

Request message for CorroborateContent.

Protobuf type google.cloud.aiplatform.v1beta1.CorroborateContentRequest

Static Methods

getDescriptor()

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

Methods

addAllFacts(Iterable<? extends Fact> values)

public CorroborateContentRequest.Builder addAllFacts(Iterable<? extends Fact> values)

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

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

addFacts(Fact value)

public CorroborateContentRequest.Builder addFacts(Fact value)

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Fact
Returns
Type Description
CorroborateContentRequest.Builder

addFacts(Fact.Builder builderForValue)

public CorroborateContentRequest.Builder addFacts(Fact.Builder builderForValue)

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Fact.Builder
Returns
Type Description
CorroborateContentRequest.Builder

addFacts(int index, Fact value)

public CorroborateContentRequest.Builder addFacts(int index, Fact value)

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Fact
Returns
Type Description
CorroborateContentRequest.Builder

addFacts(int index, Fact.Builder builderForValue)

public CorroborateContentRequest.Builder addFacts(int index, Fact.Builder builderForValue)

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Fact.Builder
Returns
Type Description
CorroborateContentRequest.Builder

addFactsBuilder()

public Fact.Builder addFactsBuilder()

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Fact.Builder

addFactsBuilder(int index)

public Fact.Builder addFactsBuilder(int index)

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Fact.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CorroborateContentRequest build()
Returns
Type Description
CorroborateContentRequest

buildPartial()

public CorroborateContentRequest buildPartial()
Returns
Type Description
CorroborateContentRequest

clear()

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

clearContent()

public CorroborateContentRequest.Builder clearContent()

Optional. Input content to corroborate, only text format is supported for now.

optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CorroborateContentRequest.Builder

clearFacts()

public CorroborateContentRequest.Builder clearFacts()

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CorroborateContentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParameters()

public CorroborateContentRequest.Builder clearParameters()

Optional. Parameters that can be set to override default settings per request.

.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CorroborateContentRequest.Builder

clearParent()

public CorroborateContentRequest.Builder clearParent()

Required. The resource name of the Location from which to corroborate text. The users must have permission to make a call in the project. Format: projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CorroborateContentRequest.Builder

This builder for chaining.

clone()

public CorroborateContentRequest.Builder clone()
Returns
Type Description
CorroborateContentRequest.Builder
Overrides

getContent()

public Content getContent()

Optional. Input content to corroborate, only text format is supported for now.

optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Content

The content.

getContentBuilder()

public Content.Builder getContentBuilder()

Optional. Input content to corroborate, only text format is supported for now.

optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Content.Builder

getContentOrBuilder()

public ContentOrBuilder getContentOrBuilder()

Optional. Input content to corroborate, only text format is supported for now.

optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContentOrBuilder

getDefaultInstanceForType()

public CorroborateContentRequest getDefaultInstanceForType()
Returns
Type Description
CorroborateContentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFacts(int index)

public Fact getFacts(int index)

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Fact

getFactsBuilder(int index)

public Fact.Builder getFactsBuilder(int index)

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Fact.Builder

getFactsBuilderList()

public List<Fact.Builder> getFactsBuilderList()

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getFactsCount()

public int getFactsCount()

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getFactsList()

public List<Fact> getFactsList()

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Fact>

getFactsOrBuilder(int index)

public FactOrBuilder getFactsOrBuilder(int index)

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FactOrBuilder

getFactsOrBuilderList()

public List<? extends FactOrBuilder> getFactsOrBuilderList()

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.FactOrBuilder>

getParameters()

public CorroborateContentRequest.Parameters getParameters()

Optional. Parameters that can be set to override default settings per request.

.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CorroborateContentRequest.Parameters

The parameters.

getParametersBuilder()

public CorroborateContentRequest.Parameters.Builder getParametersBuilder()

Optional. Parameters that can be set to override default settings per request.

.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CorroborateContentRequest.Parameters.Builder

getParametersOrBuilder()

public CorroborateContentRequest.ParametersOrBuilder getParametersOrBuilder()

Optional. Parameters that can be set to override default settings per request.

.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CorroborateContentRequest.ParametersOrBuilder

getParent()

public String getParent()

Required. The resource name of the Location from which to corroborate text. The users must have permission to make a call in the project. Format: projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the Location from which to corroborate text. The users must have permission to make a call in the project. Format: projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasContent()

public boolean hasContent()

Optional. Input content to corroborate, only text format is supported for now.

optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the content field is set.

hasParameters()

public boolean hasParameters()

Optional. Parameters that can be set to override default settings per request.

.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the parameters field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContent(Content value)

public CorroborateContentRequest.Builder mergeContent(Content value)

Optional. Input content to corroborate, only text format is supported for now.

optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Content
Returns
Type Description
CorroborateContentRequest.Builder

mergeFrom(CorroborateContentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeParameters(CorroborateContentRequest.Parameters value)

public CorroborateContentRequest.Builder mergeParameters(CorroborateContentRequest.Parameters value)

Optional. Parameters that can be set to override default settings per request.

.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CorroborateContentRequest.Parameters
Returns
Type Description
CorroborateContentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFacts(int index)

public CorroborateContentRequest.Builder removeFacts(int index)

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CorroborateContentRequest.Builder

setContent(Content value)

public CorroborateContentRequest.Builder setContent(Content value)

Optional. Input content to corroborate, only text format is supported for now.

optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Content
Returns
Type Description
CorroborateContentRequest.Builder

setContent(Content.Builder builderForValue)

public CorroborateContentRequest.Builder setContent(Content.Builder builderForValue)

Optional. Input content to corroborate, only text format is supported for now.

optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Content.Builder
Returns
Type Description
CorroborateContentRequest.Builder

setFacts(int index, Fact value)

public CorroborateContentRequest.Builder setFacts(int index, Fact value)

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Fact
Returns
Type Description
CorroborateContentRequest.Builder

setFacts(int index, Fact.Builder builderForValue)

public CorroborateContentRequest.Builder setFacts(int index, Fact.Builder builderForValue)

Optional. Facts used to generate the text can also be used to corroborate the text.

repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Fact.Builder
Returns
Type Description
CorroborateContentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParameters(CorroborateContentRequest.Parameters value)

public CorroborateContentRequest.Builder setParameters(CorroborateContentRequest.Parameters value)

Optional. Parameters that can be set to override default settings per request.

.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CorroborateContentRequest.Parameters
Returns
Type Description
CorroborateContentRequest.Builder

setParameters(CorroborateContentRequest.Parameters.Builder builderForValue)

public CorroborateContentRequest.Builder setParameters(CorroborateContentRequest.Parameters.Builder builderForValue)

Optional. Parameters that can be set to override default settings per request.

.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue CorroborateContentRequest.Parameters.Builder
Returns
Type Description
CorroborateContentRequest.Builder

setParent(String value)

public CorroborateContentRequest.Builder setParent(String value)

Required. The resource name of the Location from which to corroborate text. The users must have permission to make a call in the project. Format: projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CorroborateContentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CorroborateContentRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the Location from which to corroborate text. The users must have permission to make a call in the project. Format: projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CorroborateContentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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