Skip to content

Commit

Permalink
feat: adds UNORDERED_LIST type (#1382)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/87402f31-167a-4401-921b-ef7b42214066/targets

- [ ] To automatically regenerate this PR, check this box.

PiperOrigin-RevId: 348046114
Source-Link: googleapis/googleapis@15af12e
  • Loading branch information
yoshi-automation committed Dec 21, 2020
1 parent f4899ce commit 5b43e7b
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dev/protos/firestore_admin_v1_proto_api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ export namespace google {

/** FieldBehavior enum. */
type FieldBehavior =
"FIELD_BEHAVIOR_UNSPECIFIED"| "OPTIONAL"| "REQUIRED"| "OUTPUT_ONLY"| "INPUT_ONLY"| "IMMUTABLE";
"FIELD_BEHAVIOR_UNSPECIFIED"| "OPTIONAL"| "REQUIRED"| "OUTPUT_ONLY"| "INPUT_ONLY"| "IMMUTABLE"| "UNORDERED_LIST";

/** Properties of a ResourceDescriptor. */
interface IResourceDescriptor {
Expand Down
6 changes: 6 additions & 0 deletions dev/protos/firestore_admin_v1_proto_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -3930,6 +3930,7 @@
* @property {string} OUTPUT_ONLY=OUTPUT_ONLY OUTPUT_ONLY value
* @property {string} INPUT_ONLY=INPUT_ONLY INPUT_ONLY value
* @property {string} IMMUTABLE=IMMUTABLE IMMUTABLE value
* @property {string} UNORDERED_LIST=UNORDERED_LIST UNORDERED_LIST value
*/
api.FieldBehavior = (function() {
var valuesById = {}, values = Object.create(valuesById);
Expand All @@ -3939,6 +3940,7 @@
values[valuesById[3] = "OUTPUT_ONLY"] = "OUTPUT_ONLY";
values[valuesById[4] = "INPUT_ONLY"] = "INPUT_ONLY";
values[valuesById[5] = "IMMUTABLE"] = "IMMUTABLE";
values[valuesById[6] = "UNORDERED_LIST"] = "UNORDERED_LIST";
return values;
})();

Expand Down Expand Up @@ -6913,6 +6915,10 @@
case 5:
message[".google.api.fieldBehavior"][i] = 5;
break;
case "UNORDERED_LIST":
case 6:
message[".google.api.fieldBehavior"][i] = 6;
break;
}
}
if (object[".google.api.resourceReference"] != null) {
Expand Down
2 changes: 1 addition & 1 deletion dev/protos/firestore_v1_proto_api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6369,7 +6369,7 @@ export namespace google {

/** FieldBehavior enum. */
type FieldBehavior =
"FIELD_BEHAVIOR_UNSPECIFIED"| "OPTIONAL"| "REQUIRED"| "OUTPUT_ONLY"| "INPUT_ONLY"| "IMMUTABLE";
"FIELD_BEHAVIOR_UNSPECIFIED"| "OPTIONAL"| "REQUIRED"| "OUTPUT_ONLY"| "INPUT_ONLY"| "IMMUTABLE"| "UNORDERED_LIST";

/** Properties of a ResourceDescriptor. */
interface IResourceDescriptor {
Expand Down
6 changes: 6 additions & 0 deletions dev/protos/firestore_v1_proto_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -3520,6 +3520,10 @@
case 5:
message[".google.api.fieldBehavior"][i] = 5;
break;
case "UNORDERED_LIST":
case 6:
message[".google.api.fieldBehavior"][i] = 6;
break;
}
}
if (object[".google.api.resourceReference"] != null) {
Expand Down Expand Up @@ -15387,6 +15391,7 @@
* @property {string} OUTPUT_ONLY=OUTPUT_ONLY OUTPUT_ONLY value
* @property {string} INPUT_ONLY=INPUT_ONLY INPUT_ONLY value
* @property {string} IMMUTABLE=IMMUTABLE IMMUTABLE value
* @property {string} UNORDERED_LIST=UNORDERED_LIST UNORDERED_LIST value
*/
api.FieldBehavior = (function() {
var valuesById = {}, values = Object.create(valuesById);
Expand All @@ -15396,6 +15401,7 @@
values[valuesById[3] = "OUTPUT_ONLY"] = "OUTPUT_ONLY";
values[valuesById[4] = "INPUT_ONLY"] = "INPUT_ONLY";
values[valuesById[5] = "IMMUTABLE"] = "IMMUTABLE";
values[valuesById[6] = "UNORDERED_LIST"] = "UNORDERED_LIST";
return values;
})();

Expand Down
2 changes: 1 addition & 1 deletion dev/protos/firestore_v1beta1_proto_api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5800,7 +5800,7 @@ export namespace google {

/** FieldBehavior enum. */
type FieldBehavior =
"FIELD_BEHAVIOR_UNSPECIFIED"| "OPTIONAL"| "REQUIRED"| "OUTPUT_ONLY"| "INPUT_ONLY"| "IMMUTABLE";
"FIELD_BEHAVIOR_UNSPECIFIED"| "OPTIONAL"| "REQUIRED"| "OUTPUT_ONLY"| "INPUT_ONLY"| "IMMUTABLE"| "UNORDERED_LIST";

/** Properties of a ResourceDescriptor. */
interface IResourceDescriptor {
Expand Down
6 changes: 6 additions & 0 deletions dev/protos/firestore_v1beta1_proto_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2783,6 +2783,10 @@
case 5:
message[".google.api.fieldBehavior"][i] = 5;
break;
case "UNORDERED_LIST":
case 6:
message[".google.api.fieldBehavior"][i] = 6;
break;
}
}
if (object[".google.api.resourceReference"] != null) {
Expand Down Expand Up @@ -13993,6 +13997,7 @@
* @property {string} OUTPUT_ONLY=OUTPUT_ONLY OUTPUT_ONLY value
* @property {string} INPUT_ONLY=INPUT_ONLY INPUT_ONLY value
* @property {string} IMMUTABLE=IMMUTABLE IMMUTABLE value
* @property {string} UNORDERED_LIST=UNORDERED_LIST UNORDERED_LIST value
*/
api.FieldBehavior = (function() {
var valuesById = {}, values = Object.create(valuesById);
Expand All @@ -14002,6 +14007,7 @@
values[valuesById[3] = "OUTPUT_ONLY"] = "OUTPUT_ONLY";
values[valuesById[4] = "INPUT_ONLY"] = "INPUT_ONLY";
values[valuesById[5] = "IMMUTABLE"] = "IMMUTABLE";
values[valuesById[6] = "UNORDERED_LIST"] = "UNORDERED_LIST";
return values;
})();

Expand Down
6 changes: 6 additions & 0 deletions dev/protos/google/api/field_behavior.proto
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,10 @@ enum FieldBehavior {
// This indicates that the field may be set once in a request to create a
// resource, but may not be changed thereafter.
IMMUTABLE = 5;

// Denotes that a (repeated) field is an unordered list.
// This indicates that the service may provide the elements of the list
// in any arbitrary order, rather than the order the user originally
// provided. Additionally, the list's order may or may not be stable.
UNORDERED_LIST = 6;
}
23 changes: 14 additions & 9 deletions dev/src/v1beta1/firestore_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"deadline_exceeded_resource_exhausted_unavailable": [
"DEADLINE_EXCEEDED",
"RESOURCE_EXHAUSTED",
"UNAVAILABLE"
]
},
"retry_params": {
Expand All @@ -22,12 +27,12 @@
"methods": {
"GetDocument": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_codes_name": "deadline_exceeded_resource_exhausted_unavailable",
"retry_params_name": "default"
},
"ListDocuments": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_codes_name": "deadline_exceeded_resource_exhausted_unavailable",
"retry_params_name": "default"
},
"CreateDocument": {
Expand All @@ -42,17 +47,17 @@
},
"DeleteDocument": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_codes_name": "deadline_exceeded_resource_exhausted_unavailable",
"retry_params_name": "default"
},
"BatchGetDocuments": {
"timeout_millis": 300000,
"retry_codes_name": "idempotent",
"retry_codes_name": "deadline_exceeded_resource_exhausted_unavailable",
"retry_params_name": "default"
},
"BeginTransaction": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_codes_name": "deadline_exceeded_resource_exhausted_unavailable",
"retry_params_name": "default"
},
"Commit": {
Expand All @@ -62,12 +67,12 @@
},
"Rollback": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_codes_name": "deadline_exceeded_resource_exhausted_unavailable",
"retry_params_name": "default"
},
"RunQuery": {
"timeout_millis": 300000,
"retry_codes_name": "idempotent",
"retry_codes_name": "deadline_exceeded_resource_exhausted_unavailable",
"retry_params_name": "default"
},
"Write": {
Expand All @@ -77,12 +82,12 @@
},
"Listen": {
"timeout_millis": 86400000,
"retry_codes_name": "idempotent",
"retry_codes_name": "deadline_exceeded_resource_exhausted_unavailable",
"retry_params_name": "default"
},
"ListCollectionIds": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_codes_name": "deadline_exceeded_resource_exhausted_unavailable",
"retry_params_name": "default"
}
}
Expand Down
6 changes: 3 additions & 3 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-firestore.git",
"sha": "30b8a1b2c74dec423ac6b54c8448055deee03053"
"sha": "f4899ce04a63a8feec4f372d0a36f875d70cfa75"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "d189e871205fea665a9648f7c4676f027495ccaf",
"internalRef": "345596855"
"sha": "15af12eb717cd30175825ad412045b9e59b133b4",
"internalRef": "348046114"
}
},
{
Expand Down

0 comments on commit 5b43e7b

Please sign in to comment.