Class GroundingAttribution.Builder (3.41.0)

public static final class GroundingAttribution.Builder extends GeneratedMessageV3.Builder<GroundingAttribution.Builder> implements GroundingAttributionOrBuilder

Grounding attribution.

Protobuf type google.cloud.aiplatform.v1beta1.GroundingAttribution

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GroundingAttribution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GroundingAttribution.Builder
Overrides

build()

public GroundingAttribution build()
Returns
TypeDescription
GroundingAttribution

buildPartial()

public GroundingAttribution buildPartial()
Returns
TypeDescription
GroundingAttribution

clear()

public GroundingAttribution.Builder clear()
Returns
TypeDescription
GroundingAttribution.Builder
Overrides

clearConfidenceScore()

public GroundingAttribution.Builder clearConfidenceScore()

Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1. 1 is the most confident.

optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
GroundingAttribution.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GroundingAttribution.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GroundingAttribution.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GroundingAttribution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GroundingAttribution.Builder
Overrides

clearReference()

public GroundingAttribution.Builder clearReference()
Returns
TypeDescription
GroundingAttribution.Builder

clearSegment()

public GroundingAttribution.Builder clearSegment()

Output only. Segment of the content this attribution belongs to.

.google.cloud.aiplatform.v1beta1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
GroundingAttribution.Builder

clearWeb()

public GroundingAttribution.Builder clearWeb()

Optional. Attribution from the web.

.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GroundingAttribution.Builder

clone()

public GroundingAttribution.Builder clone()
Returns
TypeDescription
GroundingAttribution.Builder
Overrides

getConfidenceScore()

public float getConfidenceScore()

Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1. 1 is the most confident.

optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
float

The confidenceScore.

getDefaultInstanceForType()

public GroundingAttribution getDefaultInstanceForType()
Returns
TypeDescription
GroundingAttribution

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getReferenceCase()

public GroundingAttribution.ReferenceCase getReferenceCase()
Returns
TypeDescription
GroundingAttribution.ReferenceCase

getSegment()

public Segment getSegment()

Output only. Segment of the content this attribution belongs to.

.google.cloud.aiplatform.v1beta1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Segment

The segment.

getSegmentBuilder()

public Segment.Builder getSegmentBuilder()

Output only. Segment of the content this attribution belongs to.

.google.cloud.aiplatform.v1beta1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Segment.Builder

getSegmentOrBuilder()

public SegmentOrBuilder getSegmentOrBuilder()

Output only. Segment of the content this attribution belongs to.

.google.cloud.aiplatform.v1beta1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SegmentOrBuilder

getWeb()

public GroundingAttribution.Web getWeb()

Optional. Attribution from the web.

.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GroundingAttribution.Web

The web.

getWebBuilder()

public GroundingAttribution.Web.Builder getWebBuilder()

Optional. Attribution from the web.

.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GroundingAttribution.Web.Builder

getWebOrBuilder()

public GroundingAttribution.WebOrBuilder getWebOrBuilder()

Optional. Attribution from the web.

.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GroundingAttribution.WebOrBuilder

hasConfidenceScore()

public boolean hasConfidenceScore()

Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1. 1 is the most confident.

optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the confidenceScore field is set.

hasSegment()

public boolean hasSegment()

Output only. Segment of the content this attribution belongs to.

.google.cloud.aiplatform.v1beta1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the segment field is set.

hasWeb()

public boolean hasWeb()

Optional. Attribution from the web.

.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the web field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GroundingAttribution other)

public GroundingAttribution.Builder mergeFrom(GroundingAttribution other)
Parameter
NameDescription
otherGroundingAttribution
Returns
TypeDescription
GroundingAttribution.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GroundingAttribution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GroundingAttribution.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GroundingAttribution.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GroundingAttribution.Builder
Overrides

mergeSegment(Segment value)

public GroundingAttribution.Builder mergeSegment(Segment value)

Output only. Segment of the content this attribution belongs to.

.google.cloud.aiplatform.v1beta1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueSegment
Returns
TypeDescription
GroundingAttribution.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GroundingAttribution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GroundingAttribution.Builder
Overrides

mergeWeb(GroundingAttribution.Web value)

public GroundingAttribution.Builder mergeWeb(GroundingAttribution.Web value)

Optional. Attribution from the web.

.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueGroundingAttribution.Web
Returns
TypeDescription
GroundingAttribution.Builder

setConfidenceScore(float value)

public GroundingAttribution.Builder setConfidenceScore(float value)

Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1. 1 is the most confident.

optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuefloat

The confidenceScore to set.

Returns
TypeDescription
GroundingAttribution.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GroundingAttribution.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GroundingAttribution.Builder
Overrides

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

public GroundingAttribution.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GroundingAttribution.Builder
Overrides

setSegment(Segment value)

public GroundingAttribution.Builder setSegment(Segment value)

Output only. Segment of the content this attribution belongs to.

.google.cloud.aiplatform.v1beta1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueSegment
Returns
TypeDescription
GroundingAttribution.Builder

setSegment(Segment.Builder builderForValue)

public GroundingAttribution.Builder setSegment(Segment.Builder builderForValue)

Output only. Segment of the content this attribution belongs to.

.google.cloud.aiplatform.v1beta1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueSegment.Builder
Returns
TypeDescription
GroundingAttribution.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final GroundingAttribution.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GroundingAttribution.Builder
Overrides

setWeb(GroundingAttribution.Web value)

public GroundingAttribution.Builder setWeb(GroundingAttribution.Web value)

Optional. Attribution from the web.

.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueGroundingAttribution.Web
Returns
TypeDescription
GroundingAttribution.Builder

setWeb(GroundingAttribution.Web.Builder builderForValue)

public GroundingAttribution.Builder setWeb(GroundingAttribution.Web.Builder builderForValue)

Optional. Attribution from the web.

.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueGroundingAttribution.Web.Builder
Returns
TypeDescription
GroundingAttribution.Builder