Package com.google.genai.types
Class GroundingMetadataSourceFlaggingUri
-
- All Implemented Interfaces:
public abstract class GroundingMetadataSourceFlaggingUri extends JsonSerializable
A URI that can be used to flag a place or review for inappropriate content. This is populated only when the grounding source is Google Maps. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classGroundingMetadataSourceFlaggingUri.BuilderBuilder for GroundingMetadataSourceFlaggingUri.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description GroundingMetadataSourceFlaggingUri()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>flagContentUri()The URI that can be used to flag the content. abstract Optional<String>sourceId()The ID of the place or review. static GroundingMetadataSourceFlaggingUri.Builderbuilder()Instantiates a builder for GroundingMetadataSourceFlaggingUri. abstract GroundingMetadataSourceFlaggingUri.BuildertoBuilder()Creates a builder with the same values as this instance. static GroundingMetadataSourceFlaggingUrifromJson(String jsonString)Deserializes a JSON string to a GroundingMetadataSourceFlaggingUri object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
flagContentUri
abstract Optional<String> flagContentUri()
The URI that can be used to flag the content.
-
builder
static GroundingMetadataSourceFlaggingUri.Builder builder()
Instantiates a builder for GroundingMetadataSourceFlaggingUri.
-
toBuilder
abstract GroundingMetadataSourceFlaggingUri.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static GroundingMetadataSourceFlaggingUri fromJson(String jsonString)
Deserializes a JSON string to a GroundingMetadataSourceFlaggingUri object.
-
-
-
-