@@ -14,3 +14,149 @@ components:
1414 type : string
1515 lastName :
1616 type : string
17+ Schema :
18+ description : |-
19+ The `Schema` object allows the definition of input and output data types.
20+ These types can be objects, but also primitives and arrays.
21+ Represents a select subset of an [OpenAPI 3.0 schema
22+ object](https://spec.openapis.org/oas/v3.0.3#schema).
23+ type : object
24+ properties :
25+ anyOf :
26+ description : |-
27+ Optional. The value should be validated against any (one or more) of the subschemas
28+ in the list.
29+ type : array
30+ items :
31+ $ref : ' #/components/schemas/Schema'
32+ default :
33+ description : |-
34+ Optional. Default value of the field. Per JSON Schema, this field is intended for
35+ documentation generators and doesn't affect validation. Thus it's included
36+ here and ignored so that developers who send schemas with a `default` field
37+ don't get unknown-field errors.
38+ description :
39+ description : |-
40+ Optional. A brief description of the parameter. This could contain examples of use.
41+ Parameter description may be formatted as Markdown.
42+ type : string
43+ enum :
44+ description : |-
45+ Optional. Possible values of the element of Type.STRING with enum format.
46+ For example we can define an Enum Direction as :
47+ {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
48+ type : array
49+ items :
50+ type : string
51+ example :
52+ description : Optional. Example of the object. Will only populated when the object is the root.
53+ format :
54+ description : |-
55+ Optional. The format of the data. This is used only for primitive datatypes.
56+ Supported formats:
57+ for NUMBER type: float, double
58+ for INTEGER type: int32, int64
59+ for STRING type: enum, date-time
60+ type : string
61+ items :
62+ description : Optional. Schema of the elements of Type.ARRAY.
63+ allOf :
64+ - $ref : ' #/components/schemas/Schema'
65+ maximum :
66+ description : Optional. Maximum value of the Type.INTEGER and Type.NUMBER
67+ type : number
68+ format : double
69+ maxItems :
70+ description : Optional. Maximum number of the elements for Type.ARRAY.
71+ type : string
72+ format : int64
73+ maxLength :
74+ description : Optional. Maximum length of the Type.STRING
75+ type : string
76+ format : int64
77+ maxProperties :
78+ description : Optional. Maximum number of the properties for Type.OBJECT.
79+ type : string
80+ format : int64
81+ minimum :
82+ description : |-
83+ Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER
84+ Minimum value of the Type.INTEGER and Type.NUMBER
85+ type : number
86+ format : double
87+ minItems :
88+ description : Optional. Minimum number of the elements for Type.ARRAY.
89+ type : string
90+ format : int64
91+ minLength :
92+ description : |-
93+ Optional. SCHEMA FIELDS FOR TYPE STRING
94+ Minimum length of the Type.STRING
95+ type : string
96+ format : int64
97+ minProperties :
98+ description : Optional. Minimum number of the properties for Type.OBJECT.
99+ type : string
100+ format : int64
101+ nullable :
102+ description : Optional. Indicates if the value may be null.
103+ type : boolean
104+ pattern :
105+ description : Optional. Pattern of the Type.STRING to restrict a string to a regular expression.
106+ type : string
107+ properties :
108+ description : Optional. Properties of Type.OBJECT.
109+ type : object
110+ additionalProperties :
111+ $ref : ' #/components/schemas/Schema'
112+ propertyOrdering :
113+ description : |-
114+ Optional. The order of the properties.
115+ Not a standard field in open api spec. Used to determine the order of the
116+ properties in the response.
117+ type : array
118+ items :
119+ type : string
120+ required :
121+ description : Optional. Required properties of Type.OBJECT.
122+ type : array
123+ items :
124+ type : string
125+ title :
126+ description : Optional. The title of the schema.
127+ type : string
128+ type :
129+ description : Required. Data type.
130+ allOf :
131+ - $ref : ' #/components/schemas/Type'
132+ required :
133+ - type
134+ CountTokensResponse :
135+ description : |-
136+ A response from `CountTokens`.
137+
138+ It returns the model's `token_count` for the `prompt`.
139+ type : object
140+ properties :
141+ cachedContentTokenCount :
142+ description : Number of tokens in the cached part of the prompt (the cached content).
143+ type : integer
144+ format : int32
145+ cacheTokensDetails :
146+ description : Output only. List of modalities that were processed in the cached content.
147+ type : array
148+ items :
149+ $ref : ' #/components/schemas/ModalityTokenCount'
150+ readOnly : true
151+ promptTokensDetails :
152+ description : Output only. List of modalities that were processed in the request input.
153+ type : array
154+ items :
155+ $ref : ' #/components/schemas/ModalityTokenCount'
156+ readOnly : true
157+ totalTokens :
158+ description : |-
159+ The number of tokens that the `Model` tokenizes the `prompt` into. Always
160+ non-negative.
161+ type : integer
162+ format : int32
0 commit comments