public static final class GroundingAttribution.Builder extends GeneratedMessageV3.Builder<GroundingAttribution.Builder> implements GroundingAttributionOrBuilder
Grounding attribution.
Protobuf type google.cloud.vertexai.v1.GroundingAttribution
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GroundingAttribution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GroundingAttribution build()
buildPartial()
public GroundingAttribution buildPartial()
clear()
public GroundingAttribution.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public GroundingAttribution.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GroundingAttribution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearReference()
public GroundingAttribution.Builder clearReference()
clearSegment()
public GroundingAttribution.Builder clearSegment()
Output only. Segment of the content this attribution belongs to.
.google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearWeb()
public GroundingAttribution.Builder clearWeb()
Optional. Attribution from the web.
.google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
clone()
public GroundingAttribution.Builder clone()
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 |
Type |
Description |
float |
The confidenceScore.
|
getDefaultInstanceForType()
public GroundingAttribution getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getReferenceCase()
public GroundingAttribution.ReferenceCase getReferenceCase()
getSegment()
public Segment getSegment()
Output only. Segment of the content this attribution belongs to.
.google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
Segment |
The segment.
|
getSegmentBuilder()
public Segment.Builder getSegmentBuilder()
Output only. Segment of the content this attribution belongs to.
.google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSegmentOrBuilder()
public SegmentOrBuilder getSegmentOrBuilder()
Output only. Segment of the content this attribution belongs to.
.google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getWeb()
public GroundingAttribution.Web getWeb()
Optional. Attribution from the web.
.google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
getWebBuilder()
public GroundingAttribution.Web.Builder getWebBuilder()
Optional. Attribution from the web.
.google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
getWebOrBuilder()
public GroundingAttribution.WebOrBuilder getWebOrBuilder()
Optional. Attribution from the web.
.google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
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 |
Type |
Description |
boolean |
Whether the confidenceScore field is set.
|
hasSegment()
public boolean hasSegment()
Output only. Segment of the content this attribution belongs to.
.google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
boolean |
Whether the segment field is set.
|
hasWeb()
Optional. Attribution from the web.
.google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the web field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GroundingAttribution other)
public GroundingAttribution.Builder mergeFrom(GroundingAttribution other)
public GroundingAttribution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GroundingAttribution.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeSegment(Segment value)
public GroundingAttribution.Builder mergeSegment(Segment value)
Output only. Segment of the content this attribution belongs to.
.google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
Name |
Description |
value |
Segment
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GroundingAttribution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
mergeWeb(GroundingAttribution.Web value)
public GroundingAttribution.Builder mergeWeb(GroundingAttribution.Web value)
Optional. Attribution from the web.
.google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
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 |
Name |
Description |
value |
float
The confidenceScore to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public GroundingAttribution.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GroundingAttribution.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSegment(Segment value)
public GroundingAttribution.Builder setSegment(Segment value)
Output only. Segment of the content this attribution belongs to.
.google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
Name |
Description |
value |
Segment
|
setSegment(Segment.Builder builderForValue)
public GroundingAttribution.Builder setSegment(Segment.Builder builderForValue)
Output only. Segment of the content this attribution belongs to.
.google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
setUnknownFields(UnknownFieldSet unknownFields)
public final GroundingAttribution.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setWeb(GroundingAttribution.Web value)
public GroundingAttribution.Builder setWeb(GroundingAttribution.Web value)
Optional. Attribution from the web.
.google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
setWeb(GroundingAttribution.Web.Builder builderForValue)
public GroundingAttribution.Builder setWeb(GroundingAttribution.Web.Builder builderForValue)
Optional. Attribution from the web.
.google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];