Class GroundingMetadata.SourceFlaggingUri.Builder (3.77.0)

public static final class GroundingMetadata.SourceFlaggingUri.Builder extends GeneratedMessageV3.Builder<GroundingMetadata.SourceFlaggingUri.Builder> implements GroundingMetadata.SourceFlaggingUriOrBuilder

Source content flagging uri for a place or review. This is currently populated only for Google Maps grounding.

Protobuf type google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GroundingMetadata.SourceFlaggingUri build()
Returns
Type Description
GroundingMetadata.SourceFlaggingUri

buildPartial()

public GroundingMetadata.SourceFlaggingUri buildPartial()
Returns
Type Description
GroundingMetadata.SourceFlaggingUri

clear()

public GroundingMetadata.SourceFlaggingUri.Builder clear()
Returns
Type Description
GroundingMetadata.SourceFlaggingUri.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearFlagContentUri()

public GroundingMetadata.SourceFlaggingUri.Builder clearFlagContentUri()

A link where users can flag a problem with the source (place or review). (-- The link is generated by Google and it does not contain information from the user query. It may contain information of the content it is flagging, which can be used to identify places. --)

string flag_content_uri = 2;

Returns
Type Description
GroundingMetadata.SourceFlaggingUri.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceId()

public GroundingMetadata.SourceFlaggingUri.Builder clearSourceId()

Id of the place or review.

string source_id = 1;

Returns
Type Description
GroundingMetadata.SourceFlaggingUri.Builder

This builder for chaining.

clone()

public GroundingMetadata.SourceFlaggingUri.Builder clone()
Returns
Type Description
GroundingMetadata.SourceFlaggingUri.Builder
Overrides

getDefaultInstanceForType()

public GroundingMetadata.SourceFlaggingUri getDefaultInstanceForType()
Returns
Type Description
GroundingMetadata.SourceFlaggingUri

getDescriptorForType()

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

getFlagContentUri()

public String getFlagContentUri()

A link where users can flag a problem with the source (place or review). (-- The link is generated by Google and it does not contain information from the user query. It may contain information of the content it is flagging, which can be used to identify places. --)

string flag_content_uri = 2;

Returns
Type Description
String

The flagContentUri.

getFlagContentUriBytes()

public ByteString getFlagContentUriBytes()

A link where users can flag a problem with the source (place or review). (-- The link is generated by Google and it does not contain information from the user query. It may contain information of the content it is flagging, which can be used to identify places. --)

string flag_content_uri = 2;

Returns
Type Description
ByteString

The bytes for flagContentUri.

getSourceId()

public String getSourceId()

Id of the place or review.

string source_id = 1;

Returns
Type Description
String

The sourceId.

getSourceIdBytes()

public ByteString getSourceIdBytes()

Id of the place or review.

string source_id = 1;

Returns
Type Description
ByteString

The bytes for sourceId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GroundingMetadata.SourceFlaggingUri other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFlagContentUri(String value)

public GroundingMetadata.SourceFlaggingUri.Builder setFlagContentUri(String value)

A link where users can flag a problem with the source (place or review). (-- The link is generated by Google and it does not contain information from the user query. It may contain information of the content it is flagging, which can be used to identify places. --)

string flag_content_uri = 2;

Parameter
Name Description
value String

The flagContentUri to set.

Returns
Type Description
GroundingMetadata.SourceFlaggingUri.Builder

This builder for chaining.

setFlagContentUriBytes(ByteString value)

public GroundingMetadata.SourceFlaggingUri.Builder setFlagContentUriBytes(ByteString value)

A link where users can flag a problem with the source (place or review). (-- The link is generated by Google and it does not contain information from the user query. It may contain information of the content it is flagging, which can be used to identify places. --)

string flag_content_uri = 2;

Parameter
Name Description
value ByteString

The bytes for flagContentUri to set.

Returns
Type Description
GroundingMetadata.SourceFlaggingUri.Builder

This builder for chaining.

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

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

setSourceId(String value)

public GroundingMetadata.SourceFlaggingUri.Builder setSourceId(String value)

Id of the place or review.

string source_id = 1;

Parameter
Name Description
value String

The sourceId to set.

Returns
Type Description
GroundingMetadata.SourceFlaggingUri.Builder

This builder for chaining.

setSourceIdBytes(ByteString value)

public GroundingMetadata.SourceFlaggingUri.Builder setSourceIdBytes(ByteString value)

Id of the place or review.

string source_id = 1;

Parameter
Name Description
value ByteString

The bytes for sourceId to set.

Returns
Type Description
GroundingMetadata.SourceFlaggingUri.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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