public final class GroundingAttribution extends GeneratedMessageV3 implements GroundingAttributionOrBuilder
Grounding attribution.
Protobuf type google.cloud.vertexai.v1.GroundingAttribution
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CONFIDENCE_SCORE_FIELD_NUMBER
public static final int CONFIDENCE_SCORE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SEGMENT_FIELD_NUMBER
public static final int SEGMENT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
WEB_FIELD_NUMBER
public static final int WEB_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static GroundingAttribution getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static GroundingAttribution.Builder newBuilder()
newBuilder(GroundingAttribution prototype)
public static GroundingAttribution.Builder newBuilder(GroundingAttribution prototype)
public static GroundingAttribution parseDelimitedFrom(InputStream input)
public static GroundingAttribution parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static GroundingAttribution parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GroundingAttribution parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static GroundingAttribution parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GroundingAttribution parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GroundingAttribution parseFrom(CodedInputStream input)
public static GroundingAttribution parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GroundingAttribution parseFrom(InputStream input)
public static GroundingAttribution parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static GroundingAttribution parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GroundingAttribution parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<GroundingAttribution> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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()
getParserForType()
public Parser<GroundingAttribution> getParserForType()
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.
|
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];
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getWeb()
public GroundingAttribution.Web getWeb()
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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public GroundingAttribution.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GroundingAttribution.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public GroundingAttribution.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides