public static final class GroundingAttribution.Builder extends GeneratedMessageV3.Builder<GroundingAttribution.Builder> implements GroundingAttributionOrBuilder
Grounding attribution.
Protobuf type google.cloud.aiplatform.v1beta1.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
public static final Descriptors.Descriptor getDescriptor()
Methods
public GroundingAttribution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public GroundingAttribution build()
public GroundingAttribution buildPartial()
public GroundingAttribution.Builder clear()
Overrides
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];
public GroundingAttribution.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public GroundingAttribution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public GroundingAttribution.Builder clearReference()
clearRetrievedContext()
public GroundingAttribution.Builder clearRetrievedContext()
Optional. Attribution from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext retrieved_context = 4 [(.google.api.field_behavior) = OPTIONAL];
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];
public GroundingAttribution.Builder clearWeb()
Optional. Attribution from the web.
.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
public GroundingAttribution.Builder clone()
Overrides
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.
|
public GroundingAttribution getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public GroundingAttribution.ReferenceCase getReferenceCase()
getRetrievedContext()
public GroundingAttribution.RetrievedContext getRetrievedContext()
Optional. Attribution from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext retrieved_context = 4 [(.google.api.field_behavior) = OPTIONAL];
getRetrievedContextBuilder()
public GroundingAttribution.RetrievedContext.Builder getRetrievedContextBuilder()
Optional. Attribution from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext retrieved_context = 4 [(.google.api.field_behavior) = OPTIONAL];
getRetrievedContextOrBuilder()
public GroundingAttribution.RetrievedContextOrBuilder getRetrievedContextOrBuilder()
Optional. Attribution from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext retrieved_context = 4 [(.google.api.field_behavior) = OPTIONAL];
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 |
Type |
Description |
Segment |
The segment.
|
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];
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];
public GroundingAttribution.Web getWeb()
Optional. Attribution from the web.
.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
public GroundingAttribution.Web.Builder getWebBuilder()
Optional. Attribution from the web.
.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
public GroundingAttribution.WebOrBuilder getWebOrBuilder()
Optional. Attribution from the web.
.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
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.
|
hasRetrievedContext()
public boolean hasRetrievedContext()
Optional. Attribution from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext retrieved_context = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the retrievedContext field is set.
|
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 |
Type |
Description |
boolean |
Whether the segment field is set.
|
Optional. Attribution from the web.
.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the web field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public GroundingAttribution.Builder mergeFrom(GroundingAttribution other)
public GroundingAttribution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public GroundingAttribution.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeRetrievedContext(GroundingAttribution.RetrievedContext value)
public GroundingAttribution.Builder mergeRetrievedContext(GroundingAttribution.RetrievedContext value)
Optional. Attribution from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext retrieved_context = 4 [(.google.api.field_behavior) = OPTIONAL];
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 |
Name |
Description |
value |
Segment
|
public final GroundingAttribution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
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.
|
public GroundingAttribution.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public GroundingAttribution.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRetrievedContext(GroundingAttribution.RetrievedContext value)
public GroundingAttribution.Builder setRetrievedContext(GroundingAttribution.RetrievedContext value)
Optional. Attribution from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext retrieved_context = 4 [(.google.api.field_behavior) = OPTIONAL];
setRetrievedContext(GroundingAttribution.RetrievedContext.Builder builderForValue)
public GroundingAttribution.Builder setRetrievedContext(GroundingAttribution.RetrievedContext.Builder builderForValue)
Optional. Attribution from context retrieved by the retrieval tools.
.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext retrieved_context = 4 [(.google.api.field_behavior) = OPTIONAL];
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 |
Name |
Description |
value |
Segment
|
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];
public final GroundingAttribution.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
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];