Skip to content

Commit

Permalink
feat: Generate Google.Apis.FirebaseML.v2beta version 1.68.0.3555
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa authored and jskeet committed Sep 30, 2024
1 parent 457a837 commit 3e5a892
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 7 deletions.
54 changes: 50 additions & 4 deletions DiscoveryJson/firebaseml.v2beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
}
}
},
"revision": "20240917",
"revision": "20240925",
"rootUrl": "https://firebaseml.googleapis.com/",
"schemas": {
"Date": {
Expand Down Expand Up @@ -457,6 +457,30 @@
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1DynamicRetrievalConfig": {
"description": "Describes the options to customize dynamic retrieval.",
"id": "GoogleCloudAiplatformV1beta1DynamicRetrievalConfig",
"properties": {
"dynamicThreshold": {
"description": "Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.",
"format": "float",
"type": "number"
},
"mode": {
"description": "The mode of the predictor to be used in dynamic retrieval.",
"enum": [
"MODE_UNSPECIFIED",
"MODE_DYNAMIC"
],
"enumDescriptions": [
"Always trigger retrieval.",
"Run retrieval only when system decides it is necessary."
],
"type": "string"
}
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1FileData": {
"description": "URI based data.",
"id": "GoogleCloudAiplatformV1beta1FileData",
Expand Down Expand Up @@ -837,7 +861,12 @@
"GoogleCloudAiplatformV1beta1GoogleSearchRetrieval": {
"description": "Tool to retrieve public web data for grounding, powered by Google.",
"id": "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval",
"properties": {},
"properties": {
"dynamicRetrievalConfig": {
"$ref": "GoogleCloudAiplatformV1beta1DynamicRetrievalConfig",
"description": "Specifies the dynamic retrieval configuration for the given source."
}
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1GroundingChunk": {
Expand Down Expand Up @@ -903,6 +932,11 @@
},
"type": "array"
},
"retrievalMetadata": {
"$ref": "GoogleCloudAiplatformV1beta1RetrievalMetadata",
"description": "Optional. Output only. Retrieval metadata.",
"readOnly": true
},
"retrievalQueries": {
"description": "Optional. Queries executed by the retrieval tools.",
"items": {
Expand Down Expand Up @@ -982,11 +1016,11 @@
"type": "number"
},
"token": {
"description": "The candidate\u2019s token string value.",
"description": "The candidate's token string value.",
"type": "string"
},
"tokenId": {
"description": "The candidate\u2019s token id value.",
"description": "The candidate's token id value.",
"format": "int32",
"type": "integer"
}
Expand Down Expand Up @@ -1058,6 +1092,18 @@
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1RetrievalMetadata": {
"description": "Metadata related to retrieval in the grounding flow.",
"id": "GoogleCloudAiplatformV1beta1RetrievalMetadata",
"properties": {
"googleSearchDynamicRetrievalScore": {
"description": "Optional. Score indicating how likely information from google search could help answer the prompt. The score is in the range [0, 1], where 0 is the least likely and 1 is the most likely. This score is only populated when google search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger google search.",
"format": "float",
"type": "number"
}
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1SafetyRating": {
"description": "Safety rating corresponding to the generated content.",
"id": "GoogleCloudAiplatformV1beta1SafetyRating",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,23 @@ public class GoogleCloudAiplatformV1beta1CountTokensResponse : Google.Apis.Reque
public virtual string ETag { get; set; }
}

/// <summary>Describes the options to customize dynamic retrieval.</summary>
public class GoogleCloudAiplatformV1beta1DynamicRetrievalConfig : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>
/// Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("dynamicThreshold")]
public virtual System.Nullable<float> DynamicThreshold { get; set; }

/// <summary>The mode of the predictor to be used in dynamic retrieval.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("mode")]
public virtual string Mode { get; set; }

/// <summary>The ETag of the item.</summary>
public virtual string ETag { get; set; }
}

/// <summary>URI based data.</summary>
public class GoogleCloudAiplatformV1beta1FileData : Google.Apis.Requests.IDirectResponseSchema
{
Expand Down Expand Up @@ -1111,6 +1128,10 @@ public class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRout
/// <summary>Tool to retrieve public web data for grounding, powered by Google.</summary>
public class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>Specifies the dynamic retrieval configuration for the given source.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("dynamicRetrievalConfig")]
public virtual GoogleCloudAiplatformV1beta1DynamicRetrievalConfig DynamicRetrievalConfig { get; set; }

/// <summary>The ETag of the item.</summary>
public virtual string ETag { get; set; }
}
Expand Down Expand Up @@ -1171,6 +1192,10 @@ public class GoogleCloudAiplatformV1beta1GroundingMetadata : Google.Apis.Request
[Newtonsoft.Json.JsonPropertyAttribute("groundingSupports")]
public virtual System.Collections.Generic.IList<GoogleCloudAiplatformV1beta1GroundingSupport> GroundingSupports { get; set; }

/// <summary>Optional. Output only. Retrieval metadata.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("retrievalMetadata")]
public virtual GoogleCloudAiplatformV1beta1RetrievalMetadata RetrievalMetadata { get; set; }

/// <summary>Optional. Queries executed by the retrieval tools.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("retrievalQueries")]
public virtual System.Collections.Generic.IList<string> RetrievalQueries { get; set; }
Expand Down Expand Up @@ -1237,11 +1262,11 @@ public class GoogleCloudAiplatformV1beta1LogprobsResultCandidate : Google.Apis.R
[Newtonsoft.Json.JsonPropertyAttribute("logProbability")]
public virtual System.Nullable<float> LogProbability { get; set; }

/// <summary>The candidates token string value.</summary>
/// <summary>The candidate's token string value.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("token")]
public virtual string Token { get; set; }

/// <summary>The candidates token id value.</summary>
/// <summary>The candidate's token id value.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("tokenId")]
public virtual System.Nullable<int> TokenId { get; set; }

Expand Down Expand Up @@ -1327,6 +1352,22 @@ public class GoogleCloudAiplatformV1beta1Retrieval : Google.Apis.Requests.IDirec
public virtual string ETag { get; set; }
}

/// <summary>Metadata related to retrieval in the grounding flow.</summary>
public class GoogleCloudAiplatformV1beta1RetrievalMetadata : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>
/// Optional. Score indicating how likely information from google search could help answer the prompt. The score
/// is in the range [0, 1], where 0 is the least likely and 1 is the most likely. This score is only populated
/// when google search grounding and dynamic retrieval is enabled. It will be compared to the threshold to
/// determine whether to trigger google search.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("googleSearchDynamicRetrievalScore")]
public virtual System.Nullable<float> GoogleSearchDynamicRetrievalScore { get; set; }

/// <summary>The ETag of the item.</summary>
public virtual string ETag { get; set; }
}

/// <summary>Safety rating corresponding to the generated content.</summary>
public class GoogleCloudAiplatformV1beta1SafetyRating : Google.Apis.Requests.IDirectResponseSchema
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- nupkg information -->
<PropertyGroup>
<Title>Google.Apis.FirebaseML.v2beta Client Library</Title>
<Version>1.68.0.3547</Version>
<Version>1.68.0.3555</Version>
<Authors>Google LLC</Authors>
<Copyright>Copyright 2024 Google LLC</Copyright>
<PackageTags>Google</PackageTags>
Expand Down

0 comments on commit 3e5a892

Please sign in to comment.