Debian Codegraph @

docs/dyn/discoveryengine_v1alpha.media.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="discoveryengine_v1alpha.html">Discovery Engine API</a> . <a href="discoveryengine_v1alpha.media.html">media</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#download">download(name, fileId=None, viewId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Downloads a file from the session.</p>
83 <p class="toc_element">
84 <code><a href="#download_media">download_media(name, fileId=None, viewId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Downloads a file from the session.</p>
86 <p class="toc_element">
87 <code><a href="#upload">upload(name, body=None, media_body=None, media_mime_type=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Uploads a file for the assistant to use as a source of information within the session.</p>
89 <h3>Method Details</h3>
90 <div class="method">
91 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93 </div>
94
95 <div class="method">
96 <code class="details" id="download">download(name, fileId=None, viewId=None, x__xgafv=None)</code>
97 <pre>Downloads a file from the session.
98
99 Args:
100 name: string, Required. The resource name of the Session. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}` (required)
101 fileId: string, Required. The ID of the file to be downloaded.
102 viewId: string, Optional. The ID of the view to be downloaded.
103 x__xgafv: string, V1 error format.
104 Allowed values
105 1 - v1 error format
106 2 - v2 error format
107
108 Returns:
109 An object of the form:
110
111 { # A reference to data stored on the filesystem, on GFS or in blobstore.
112 &quot;algorithm&quot;: &quot;A String&quot;, # Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, &quot;MD5&quot; is the only possible value for this field. New values may be added at any time.
113 &quot;bigstoreObjectRef&quot;: &quot;A String&quot;, # Use object_id instead.
114 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
115 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
116 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
117 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
118 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
119 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
120 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
121 },
122 &quot;compositeMedia&quot;: [ # A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified.
123 { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites.
124 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
125 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
126 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
127 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
128 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
129 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
130 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
131 },
132 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
133 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
134 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
135 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
136 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
137 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
138 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
139 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
140 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
141 },
142 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
143 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
144 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
145 },
146 ],
147 &quot;contentType&quot;: &quot;A String&quot;, # MIME type of the data
148 &quot;contentTypeInfo&quot;: { # Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty&#x27;s best_guess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty. # Extended content type information provided for Scotty uploads.
149 &quot;bestGuess&quot;: &quot;A String&quot;, # Scotty&#x27;s best guess of what the content type of the file is.
150 &quot;fromBytes&quot;: &quot;A String&quot;, # The content type of the file derived by looking at specific bytes (i.e. &quot;magic bytes&quot;) of the actual file.
151 &quot;fromFileName&quot;: &quot;A String&quot;, # The content type of the file derived from the file extension of the original file name used by the client.
152 &quot;fromHeader&quot;: &quot;A String&quot;, # The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.
153 &quot;fromUrlPath&quot;: &quot;A String&quot;, # The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API).
154 },
155 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
156 &quot;crc32cHash&quot;: 42, # For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported.
157 &quot;diffChecksumsResponse&quot;: { # Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_CHECKSUMS_RESPONSE.
158 &quot;checksumsLocation&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # Exactly one of these fields must be populated. If checksums_location is filled, the server will return the corresponding contents to the user. If object_location is filled, the server will calculate the checksums based on the content there and return that to the user. For details on the format of the checksums, see http://go/scotty-diff-protocol.
159 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
160 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
161 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
162 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
163 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
164 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
165 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
166 },
167 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
168 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
169 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
170 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
171 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
172 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
173 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
174 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
175 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
176 },
177 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
178 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
179 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
180 },
181 &quot;chunkSizeBytes&quot;: &quot;A String&quot;, # The chunk size of checksums. Must be a multiple of 256KB.
182 &quot;objectLocation&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # If set, calculate the checksums based on the contents and return them to the caller.
183 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
184 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
185 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
186 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
187 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
188 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
189 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
190 },
191 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
192 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
193 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
194 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
195 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
196 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
197 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
198 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
199 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
200 },
201 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
202 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
203 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
204 },
205 &quot;objectSizeBytes&quot;: &quot;A String&quot;, # The total size of the server object.
206 &quot;objectVersion&quot;: &quot;A String&quot;, # The object version of the object the checksums are being returned for.
207 },
208 &quot;diffDownloadResponse&quot;: { # Backend response for a Diff download response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_DOWNLOAD_RESPONSE.
209 &quot;objectLocation&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # The original object location.
210 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
211 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
212 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
213 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
214 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
215 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
216 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
217 },
218 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
219 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
220 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
221 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
222 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
223 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
224 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
225 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
226 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
227 },
228 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
229 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
230 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
231 },
232 },
233 &quot;diffUploadRequest&quot;: { # A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_UPLOAD_REQUEST.
234 &quot;checksumsInfo&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # The location of the checksums for the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. For details on the format of the checksums, see http://go/scotty-diff-protocol.
235 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
236 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
237 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
238 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
239 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
240 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
241 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
242 },
243 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
244 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
245 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
246 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
247 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
248 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
249 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
250 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
251 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
252 },
253 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
254 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
255 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
256 },
257 &quot;objectInfo&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # The location of the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received.
258 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
259 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
260 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
261 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
262 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
263 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
264 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
265 },
266 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
267 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
268 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
269 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
270 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
271 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
272 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
273 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
274 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
275 },
276 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
277 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
278 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
279 },
280 &quot;objectVersion&quot;: &quot;A String&quot;, # The object version of the object that is the base version the incoming diff script will be applied to. This field will always be filled in.
281 },
282 &quot;diffUploadResponse&quot;: { # Backend response for a Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_UPLOAD_RESPONSE.
283 &quot;objectVersion&quot;: &quot;A String&quot;, # The object version of the object at the server. Must be included in the end notification response. The version in the end notification response must correspond to the new version of the object that is now stored at the server, after the upload.
284 &quot;originalObject&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # The location of the original file for a diff upload request. Must be filled in if responding to an upload start notification.
285 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
286 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
287 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
288 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
289 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
290 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
291 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
292 },
293 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
294 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
295 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
296 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
297 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
298 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
299 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
300 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
301 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
302 },
303 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
304 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
305 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
306 },
307 },
308 &quot;diffVersionResponse&quot;: { # Backend response for a Diff get version response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_VERSION_RESPONSE.
309 &quot;objectSizeBytes&quot;: &quot;A String&quot;, # The total size of the server object.
310 &quot;objectVersion&quot;: &quot;A String&quot;, # The version of the object stored at the server.
311 },
312 &quot;downloadParameters&quot;: { # Parameters specific to media downloads. # Parameters for a media download.
313 &quot;allowGzipCompression&quot;: True or False, # A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content when the server thinks it&#x27;s advantageous (hence, does not guarantee compression) which allows Scotty to GZip the response to the client.
314 &quot;ignoreRange&quot;: True or False, # Determining whether or not Apiary should skip the inclusion of any Content-Range header on its response to Scotty.
315 },
316 &quot;filename&quot;: &quot;A String&quot;, # Original file name
317 &quot;hash&quot;: &quot;A String&quot;, # Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&amp;q=class:Hash Hex encoded hash value of the uploaded media.
318 &quot;hashVerified&quot;: True or False, # For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don&#x27;t match. This is set to true if Scotty performed this verification.
319 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
320 &quot;isPotentialRetry&quot;: True or False, # |is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence.
321 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
322 &quot;md5Hash&quot;: &quot;A String&quot;, # Scotty-provided MD5 hash for an upload.
323 &quot;mediaId&quot;: &quot;A String&quot;, # Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.
324 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
325 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
326 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
327 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
328 },
329 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
330 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
331 &quot;sha1Hash&quot;: &quot;A String&quot;, # Scotty-provided SHA1 hash for an upload.
332 &quot;sha256Hash&quot;: &quot;A String&quot;, # Scotty-provided SHA256 hash for an upload.
333 &quot;timestamp&quot;: &quot;A String&quot;, # Time at which the media data was last updated, in milliseconds since UNIX epoch
334 &quot;token&quot;: &quot;A String&quot;, # A unique fingerprint/version id for the media data
335 }</pre>
336 </div>
337
338 <div class="method">
339 <code class="details" id="download_media">download_media(name, fileId=None, viewId=None, x__xgafv=None)</code>
340 <pre>Downloads a file from the session.
341
342 Args:
343 name: string, Required. The resource name of the Session. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}` (required)
344 fileId: string, Required. The ID of the file to be downloaded.
345 viewId: string, Optional. The ID of the view to be downloaded.
346 x__xgafv: string, V1 error format.
347 Allowed values
348 1 - v1 error format
349 2 - v2 error format
350
351 Returns:
352 The media object as a string.
353
354 </pre>
355 </div>
356
357 <div class="method">
358 <code class="details" id="upload">upload(name, body=None, media_body=None, media_mime_type=None, x__xgafv=None)</code>
359 <pre>Uploads a file for the assistant to use as a source of information within the session.
360
361 Args:
362 name: string, Required. The resource name of the Session. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}` (required)
363 body: object, The request body.
364 The object takes the form of:
365
366 { # Request for the AssistantService.UploadSessionFile method.
367 &quot;blob&quot;: { # A reference to data stored on the filesystem, on GFS or in blobstore. # Information about the file being uploaded.
368 &quot;algorithm&quot;: &quot;A String&quot;, # Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, &quot;MD5&quot; is the only possible value for this field. New values may be added at any time.
369 &quot;bigstoreObjectRef&quot;: &quot;A String&quot;, # Use object_id instead.
370 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
371 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
372 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
373 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
374 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
375 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
376 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
377 },
378 &quot;compositeMedia&quot;: [ # A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified.
379 { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites.
380 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
381 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
382 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
383 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
384 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
385 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
386 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
387 },
388 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
389 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
390 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
391 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
392 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
393 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
394 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
395 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
396 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
397 },
398 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
399 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
400 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
401 },
402 ],
403 &quot;contentType&quot;: &quot;A String&quot;, # MIME type of the data
404 &quot;contentTypeInfo&quot;: { # Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty&#x27;s best_guess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty. # Extended content type information provided for Scotty uploads.
405 &quot;bestGuess&quot;: &quot;A String&quot;, # Scotty&#x27;s best guess of what the content type of the file is.
406 &quot;fromBytes&quot;: &quot;A String&quot;, # The content type of the file derived by looking at specific bytes (i.e. &quot;magic bytes&quot;) of the actual file.
407 &quot;fromFileName&quot;: &quot;A String&quot;, # The content type of the file derived from the file extension of the original file name used by the client.
408 &quot;fromHeader&quot;: &quot;A String&quot;, # The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.
409 &quot;fromUrlPath&quot;: &quot;A String&quot;, # The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API).
410 },
411 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
412 &quot;crc32cHash&quot;: 42, # For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported.
413 &quot;diffChecksumsResponse&quot;: { # Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_CHECKSUMS_RESPONSE.
414 &quot;checksumsLocation&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # Exactly one of these fields must be populated. If checksums_location is filled, the server will return the corresponding contents to the user. If object_location is filled, the server will calculate the checksums based on the content there and return that to the user. For details on the format of the checksums, see http://go/scotty-diff-protocol.
415 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
416 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
417 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
418 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
419 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
420 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
421 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
422 },
423 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
424 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
425 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
426 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
427 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
428 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
429 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
430 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
431 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
432 },
433 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
434 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
435 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
436 },
437 &quot;chunkSizeBytes&quot;: &quot;A String&quot;, # The chunk size of checksums. Must be a multiple of 256KB.
438 &quot;objectLocation&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # If set, calculate the checksums based on the contents and return them to the caller.
439 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
440 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
441 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
442 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
443 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
444 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
445 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
446 },
447 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
448 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
449 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
450 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
451 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
452 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
453 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
454 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
455 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
456 },
457 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
458 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
459 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
460 },
461 &quot;objectSizeBytes&quot;: &quot;A String&quot;, # The total size of the server object.
462 &quot;objectVersion&quot;: &quot;A String&quot;, # The object version of the object the checksums are being returned for.
463 },
464 &quot;diffDownloadResponse&quot;: { # Backend response for a Diff download response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_DOWNLOAD_RESPONSE.
465 &quot;objectLocation&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # The original object location.
466 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
467 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
468 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
469 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
470 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
471 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
472 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
473 },
474 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
475 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
476 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
477 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
478 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
479 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
480 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
481 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
482 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
483 },
484 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
485 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
486 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
487 },
488 },
489 &quot;diffUploadRequest&quot;: { # A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_UPLOAD_REQUEST.
490 &quot;checksumsInfo&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # The location of the checksums for the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. For details on the format of the checksums, see http://go/scotty-diff-protocol.
491 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
492 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
493 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
494 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
495 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
496 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
497 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
498 },
499 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
500 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
501 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
502 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
503 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
504 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
505 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
506 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
507 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
508 },
509 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
510 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
511 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
512 },
513 &quot;objectInfo&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # The location of the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received.
514 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
515 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
516 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
517 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
518 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
519 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
520 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
521 },
522 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
523 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
524 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
525 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
526 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
527 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
528 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
529 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
530 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
531 },
532 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
533 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
534 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
535 },
536 &quot;objectVersion&quot;: &quot;A String&quot;, # The object version of the object that is the base version the incoming diff script will be applied to. This field will always be filled in.
537 },
538 &quot;diffUploadResponse&quot;: { # Backend response for a Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_UPLOAD_RESPONSE.
539 &quot;objectVersion&quot;: &quot;A String&quot;, # The object version of the object at the server. Must be included in the end notification response. The version in the end notification response must correspond to the new version of the object that is now stored at the server, after the upload.
540 &quot;originalObject&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # The location of the original file for a diff upload request. Must be filled in if responding to an upload start notification.
541 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
542 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
543 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
544 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
545 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
546 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
547 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
548 },
549 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
550 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
551 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
552 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
553 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
554 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
555 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
556 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
557 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
558 },
559 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
560 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
561 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
562 },
563 },
564 &quot;diffVersionResponse&quot;: { # Backend response for a Diff get version response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_VERSION_RESPONSE.
565 &quot;objectSizeBytes&quot;: &quot;A String&quot;, # The total size of the server object.
566 &quot;objectVersion&quot;: &quot;A String&quot;, # The version of the object stored at the server.
567 },
568 &quot;downloadParameters&quot;: { # Parameters specific to media downloads. # Parameters for a media download.
569 &quot;allowGzipCompression&quot;: True or False, # A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content when the server thinks it&#x27;s advantageous (hence, does not guarantee compression) which allows Scotty to GZip the response to the client.
570 &quot;ignoreRange&quot;: True or False, # Determining whether or not Apiary should skip the inclusion of any Content-Range header on its response to Scotty.
571 },
572 &quot;filename&quot;: &quot;A String&quot;, # Original file name
573 &quot;hash&quot;: &quot;A String&quot;, # Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&amp;q=class:Hash Hex encoded hash value of the uploaded media.
574 &quot;hashVerified&quot;: True or False, # For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don&#x27;t match. This is set to true if Scotty performed this verification.
575 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
576 &quot;isPotentialRetry&quot;: True or False, # |is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence.
577 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
578 &quot;md5Hash&quot;: &quot;A String&quot;, # Scotty-provided MD5 hash for an upload.
579 &quot;mediaId&quot;: &quot;A String&quot;, # Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.
580 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
581 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
582 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
583 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
584 },
585 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
586 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
587 &quot;sha1Hash&quot;: &quot;A String&quot;, # Scotty-provided SHA1 hash for an upload.
588 &quot;sha256Hash&quot;: &quot;A String&quot;, # Scotty-provided SHA256 hash for an upload.
589 &quot;timestamp&quot;: &quot;A String&quot;, # Time at which the media data was last updated, in milliseconds since UNIX epoch
590 &quot;token&quot;: &quot;A String&quot;, # A unique fingerprint/version id for the media data
591 },
592 &quot;mediaRequestInfo&quot;: { # Extra information added to operations that support Scotty media requests. # Media upload request metadata.
593 &quot;currentBytes&quot;: &quot;A String&quot;, # The number of current bytes uploaded or downloaded.
594 &quot;customData&quot;: &quot;A String&quot;, # Data to be copied to backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications.
595 &quot;diffObjectVersion&quot;: &quot;A String&quot;, # Set if the http request info is diff encoded. The value of this field is the version number of the base revision. This is corresponding to Apiary&#x27;s mediaDiffObjectVersion (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionVariable.java). See go/esf-scotty-diff-upload for more information.
596 &quot;finalStatus&quot;: 42, # The existence of the final_status field indicates that this is the last call to the agent for this request_id. http://google3/uploader/agent/scotty_agent.proto?l=737&amp;rcl=347601929
597 &quot;notificationType&quot;: &quot;A String&quot;, # The type of notification received from Scotty.
598 &quot;physicalHeaders&quot;: &quot;A String&quot;, # The physical headers provided by RequestReceivedParameters in Scotty request. type is uploader_service.KeyValuePairs.
599 &quot;requestId&quot;: &quot;A String&quot;, # The Scotty request ID.
600 &quot;requestReceivedParamsServingInfo&quot;: &quot;A String&quot;, # The partition of the Scotty server handling this request. type is uploader_service.RequestReceivedParamsServingInfo LINT.IfChange(request_received_params_serving_info_annotations) LINT.ThenChange()
601 &quot;totalBytes&quot;: &quot;A String&quot;, # The total size of the file.
602 &quot;totalBytesIsEstimated&quot;: True or False, # Whether the total bytes field contains an estimated data.
603 },
604 }
605
606 media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
607 media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
608 x__xgafv: string, V1 error format.
609 Allowed values
610 1 - v1 error format
611 2 - v2 error format
612
613 Returns:
614 An object of the form:
615
616 { # Response for the AssistantService.UploadSessionFile method.
617 &quot;fileId&quot;: &quot;A String&quot;, # The ID of the uploaded file.
618 &quot;mediaResponseInfo&quot;: { # This message is for backends to pass their scotty media specific fields to ESF. Backend will include this in their response message to ESF. Example: ExportFile is an rpc defined for upload using scotty from ESF. rpc ExportFile(ExportFileRequest) returns (ExportFileResponse) Message ExportFileResponse will include apiserving.MediaResponseInfo to tell ESF about data like dynamic_dropzone it needs to pass to Scotty. message ExportFileResponse { optional gdata.Media blob = 1; optional apiserving.MediaResponseInfo media_response_info = 2 } # Media upload response metadata.
619 &quot;customData&quot;: &quot;A String&quot;, # Data to copy from backend response to the next backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications.
620 &quot;dataStorageTransform&quot;: &quot;A String&quot;, # Specifies any transformation to be applied to data before persisting it or retrieving from storage. E.g., encryption options for blobstore2. This should be of the form uploader_service.DataStorageTransform.
621 &quot;destinationBlobMintIndex&quot;: 42, # For the first notification of a |diff_encoded| HttpRequestInfo, this is the index of the blob mint that Scotty should use when writing the resulting blob. This field is optional. It&#x27;s not required ever, even if `original_object_blob_mint_index` is set. In situations like that, we will use the destination blob&#x27;s mint for the destination blob and regular blob ACL checks for the original object. Note: This field is only for use by Drive API for diff uploads.
622 &quot;dynamicDropTarget&quot;: &quot;A String&quot;, # Specifies the Scotty Drop Target to use for uploads. If present in a media response, Scotty does not upload to a standard drop zone. Instead, Scotty saves the upload directly to the location specified in this drop target. Unlike drop zones, the drop target is the final storage location for an upload. So, the agent does not need to clone the blob at the end of the upload. The agent is responsible for garbage collecting any orphaned blobs that may occur due to aborted uploads. For more information, see the drop target design doc here: http://goto/ScottyDropTarget This field will be preferred to dynamicDropzone. If provided, the identified field in the response must be of the type uploader.agent.DropTarget.
623 &quot;dynamicDropzone&quot;: &quot;A String&quot;, # Specifies the Scotty dropzone to use for uploads.
624 &quot;mediaForDiff&quot;: { # A reference to data stored on the filesystem, on GFS or in blobstore. # Diff Updates must respond to a START notification with this Media proto to tell Scotty to decode the diff encoded payload and apply the diff against this field. If the request was diff encoded, but this field is not set, Scotty will treat the encoding as identity. This is corresponding to Apiary&#x27;s DiffUploadResponse.original_object (//depot/google3/gdata/rosy/proto/data.proto?l=413). See go/esf-scotty-diff-upload for more information.
625 &quot;algorithm&quot;: &quot;A String&quot;, # Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, &quot;MD5&quot; is the only possible value for this field. New values may be added at any time.
626 &quot;bigstoreObjectRef&quot;: &quot;A String&quot;, # Use object_id instead.
627 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
628 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
629 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
630 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
631 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
632 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
633 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
634 },
635 &quot;compositeMedia&quot;: [ # A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified.
636 { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites.
637 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
638 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
639 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
640 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
641 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
642 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
643 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
644 },
645 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
646 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
647 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
648 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
649 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
650 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
651 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
652 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
653 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
654 },
655 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
656 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
657 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
658 },
659 ],
660 &quot;contentType&quot;: &quot;A String&quot;, # MIME type of the data
661 &quot;contentTypeInfo&quot;: { # Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty&#x27;s best_guess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty. # Extended content type information provided for Scotty uploads.
662 &quot;bestGuess&quot;: &quot;A String&quot;, # Scotty&#x27;s best guess of what the content type of the file is.
663 &quot;fromBytes&quot;: &quot;A String&quot;, # The content type of the file derived by looking at specific bytes (i.e. &quot;magic bytes&quot;) of the actual file.
664 &quot;fromFileName&quot;: &quot;A String&quot;, # The content type of the file derived from the file extension of the original file name used by the client.
665 &quot;fromHeader&quot;: &quot;A String&quot;, # The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.
666 &quot;fromUrlPath&quot;: &quot;A String&quot;, # The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API).
667 },
668 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
669 &quot;crc32cHash&quot;: 42, # For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported.
670 &quot;diffChecksumsResponse&quot;: { # Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_CHECKSUMS_RESPONSE.
671 &quot;checksumsLocation&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # Exactly one of these fields must be populated. If checksums_location is filled, the server will return the corresponding contents to the user. If object_location is filled, the server will calculate the checksums based on the content there and return that to the user. For details on the format of the checksums, see http://go/scotty-diff-protocol.
672 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
673 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
674 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
675 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
676 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
677 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
678 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
679 },
680 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
681 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
682 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
683 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
684 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
685 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
686 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
687 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
688 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
689 },
690 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
691 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
692 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
693 },
694 &quot;chunkSizeBytes&quot;: &quot;A String&quot;, # The chunk size of checksums. Must be a multiple of 256KB.
695 &quot;objectLocation&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # If set, calculate the checksums based on the contents and return them to the caller.
696 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
697 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
698 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
699 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
700 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
701 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
702 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
703 },
704 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
705 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
706 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
707 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
708 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
709 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
710 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
711 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
712 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
713 },
714 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
715 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
716 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
717 },
718 &quot;objectSizeBytes&quot;: &quot;A String&quot;, # The total size of the server object.
719 &quot;objectVersion&quot;: &quot;A String&quot;, # The object version of the object the checksums are being returned for.
720 },
721 &quot;diffDownloadResponse&quot;: { # Backend response for a Diff download response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_DOWNLOAD_RESPONSE.
722 &quot;objectLocation&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # The original object location.
723 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
724 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
725 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
726 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
727 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
728 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
729 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
730 },
731 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
732 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
733 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
734 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
735 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
736 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
737 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
738 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
739 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
740 },
741 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
742 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
743 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
744 },
745 },
746 &quot;diffUploadRequest&quot;: { # A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_UPLOAD_REQUEST.
747 &quot;checksumsInfo&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # The location of the checksums for the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. For details on the format of the checksums, see http://go/scotty-diff-protocol.
748 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
749 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
750 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
751 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
752 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
753 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
754 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
755 },
756 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
757 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
758 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
759 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
760 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
761 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
762 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
763 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
764 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
765 },
766 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
767 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
768 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
769 },
770 &quot;objectInfo&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # The location of the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received.
771 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
772 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
773 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
774 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
775 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
776 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
777 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
778 },
779 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
780 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
781 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
782 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
783 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
784 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
785 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
786 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
787 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
788 },
789 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
790 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
791 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
792 },
793 &quot;objectVersion&quot;: &quot;A String&quot;, # The object version of the object that is the base version the incoming diff script will be applied to. This field will always be filled in.
794 },
795 &quot;diffUploadResponse&quot;: { # Backend response for a Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_UPLOAD_RESPONSE.
796 &quot;objectVersion&quot;: &quot;A String&quot;, # The object version of the object at the server. Must be included in the end notification response. The version in the end notification response must correspond to the new version of the object that is now stored at the server, after the upload.
797 &quot;originalObject&quot;: { # A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites. # The location of the original file for a diff upload request. Must be filled in if responding to an upload start notification.
798 &quot;blobRef&quot;: &quot;A String&quot;, # Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.
799 &quot;blobstore2Info&quot;: { # Information to read/write to blobstore2. # Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.
800 &quot;blobGeneration&quot;: &quot;A String&quot;, # The blob generation id.
801 &quot;blobId&quot;: &quot;A String&quot;, # The blob id, e.g., /blobstore/prod/playground/scotty
802 &quot;downloadReadHandle&quot;: &quot;A String&quot;, # Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.
803 &quot;readToken&quot;: &quot;A String&quot;, # The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.
804 &quot;uploadMetadataContainer&quot;: &quot;A String&quot;, # Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
805 },
806 &quot;cosmoBinaryReference&quot;: &quot;A String&quot;, # A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn&#x27;t support JavaScript. This prevents us from including the actual type of this field.
807 &quot;crc32cHash&quot;: 42, # crc32.c hash for the payload.
808 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
809 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
810 &quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash for the payload.
811 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
812 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
813 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
814 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
815 },
816 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
817 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
818 &quot;sha1Hash&quot;: &quot;A String&quot;, # SHA-1 hash for the payload.
819 },
820 },
821 &quot;diffVersionResponse&quot;: { # Backend response for a Diff get version response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. # Set if reference_type is DIFF_VERSION_RESPONSE.
822 &quot;objectSizeBytes&quot;: &quot;A String&quot;, # The total size of the server object.
823 &quot;objectVersion&quot;: &quot;A String&quot;, # The version of the object stored at the server.
824 },
825 &quot;downloadParameters&quot;: { # Parameters specific to media downloads. # Parameters for a media download.
826 &quot;allowGzipCompression&quot;: True or False, # A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content when the server thinks it&#x27;s advantageous (hence, does not guarantee compression) which allows Scotty to GZip the response to the client.
827 &quot;ignoreRange&quot;: True or False, # Determining whether or not Apiary should skip the inclusion of any Content-Range header on its response to Scotty.
828 },
829 &quot;filename&quot;: &quot;A String&quot;, # Original file name
830 &quot;hash&quot;: &quot;A String&quot;, # Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&amp;q=class:Hash Hex encoded hash value of the uploaded media.
831 &quot;hashVerified&quot;: True or False, # For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don&#x27;t match. This is set to true if Scotty performed this verification.
832 &quot;inline&quot;: &quot;A String&quot;, # Media data, set if reference_type is INLINE
833 &quot;isPotentialRetry&quot;: True or False, # |is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence.
834 &quot;length&quot;: &quot;A String&quot;, # Size of the data, in bytes
835 &quot;md5Hash&quot;: &quot;A String&quot;, # Scotty-provided MD5 hash for an upload.
836 &quot;mediaId&quot;: &quot;A String&quot;, # Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.
837 &quot;objectId&quot;: { # This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763. # Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
838 &quot;bucketName&quot;: &quot;A String&quot;, # The name of the bucket to which this object belongs.
839 &quot;generation&quot;: &quot;A String&quot;, # Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
840 &quot;objectName&quot;: &quot;A String&quot;, # The name of the object.
841 },
842 &quot;path&quot;: &quot;A String&quot;, # Path to the data, set if reference_type is PATH
843 &quot;referenceType&quot;: &quot;A String&quot;, # Describes what the field reference contains.
844 &quot;sha1Hash&quot;: &quot;A String&quot;, # Scotty-provided SHA1 hash for an upload.
845 &quot;sha256Hash&quot;: &quot;A String&quot;, # Scotty-provided SHA256 hash for an upload.
846 &quot;timestamp&quot;: &quot;A String&quot;, # Time at which the media data was last updated, in milliseconds since UNIX epoch
847 &quot;token&quot;: &quot;A String&quot;, # A unique fingerprint/version id for the media data
848 },
849 &quot;originalObjectBlobMintIndex&quot;: 42, # For the first notification of a |diff_encoded| HttpRequestInfo, this is the index of the blob mint that Scotty should use when reading the original blob. This field is optional. It&#x27;s not required ever, even if `destination_blob_mint_index` is set. In situations like that, we will use the destination blob&#x27;s mint for the destination blob and regular blob ACL checks for the original object. Note: This field is only for use by Drive API for diff uploads.
850 &quot;requestClass&quot;: &quot;A String&quot;, # Request class to use for all Blobstore operations for this request.
851 &quot;scottyAgentUserId&quot;: &quot;A String&quot;, # Requester ID passed along to be recorded in the Scotty logs
852 &quot;scottyCustomerLog&quot;: &quot;A String&quot;, # Customer-specific data to be recorded in the Scotty logs type is logs_proto_scotty.CustomerLog
853 &quot;trafficClassField&quot;: &quot;A String&quot;, # Specifies the TrafficClass that Scotty should use for any RPCs to fetch the response bytes. Will override the traffic class GTOS of the incoming http request. This is a temporary field to facilitate whitelisting and experimentation by the bigstore agent only. For instance, this does not apply to RTMP reads. WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.
854 &quot;verifyHashFromHeader&quot;: True or False, # Tells Scotty to verify hashes on the agent&#x27;s behalf by parsing out the X-Goog-Hash header.
855 },
856 }</pre>
857 </div>
858
859 </body></html>