Skip to content

Commit cb23968

Browse files
authored
Merge branch 'main' into nodejs-promisify-migration
2 parents e5cb488 + 44f9995 commit cb23968

39 files changed

Lines changed: 218 additions & 99 deletions

File tree

packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,14 @@ message TrainProcessorVersionRequest {
11181118
// values are between 0.1 and 10. If not provided, recommended learning rate
11191119
// will be used.
11201120
float learning_rate_multiplier = 3 [(google.api.field_behavior) = OPTIONAL];
1121+
1122+
// Optional. Resource name of a previously fine tuned version id to copy the
1123+
// overwritten configs from. The base_processor_version should be newer than
1124+
// the base processor version used to fine tune this provided processor
1125+
// version. Format:
1126+
// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`.
1127+
string previous_fine_tuned_processor_version_name = 5
1128+
[(google.api.field_behavior) = OPTIONAL];
11211129
}
11221130

11231131
oneof processor_flags {

packages/google-cloud-documentai/protos/protos.d.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-documentai/protos/protos.js

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-documentai/protos/protos.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-storage-control/samples/generated/v2/storage.create_bucket.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ function main(parent, bucketId) {
6868
// const enableObjectRetention = true
6969

7070
// Imports the Storage library
71-
const {StorageClient} = require('@google-cloud/storage').v2;
71+
const {StorageControlClient} = require('@google-cloud/storage-control');
7272

7373
// Instantiates a client
74-
const storageClient = new StorageClient();
74+
const storageControlClient = new StorageControlClient();
7575

7676
async function callCreateBucket() {
7777
// Construct request
@@ -81,7 +81,7 @@ function main(parent, bucketId) {
8181
};
8282

8383
// Run request
84-
const response = await storageClient.createBucket(request);
84+
const response = await storageControlClient.createBucket(request);
8585
console.log(response);
8686
}
8787

packages/google-storage-control/samples/generated/v2/storage.delete_bucket.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ function main(name) {
4343
// const ifMetagenerationNotMatch = 1234
4444

4545
// Imports the Storage library
46-
const {StorageClient} = require('@google-cloud/storage').v2;
46+
const {StorageControlClient} = require('@google-cloud/storage-control');
4747

4848
// Instantiates a client
49-
const storageClient = new StorageClient();
49+
const storageControlClient = new StorageControlClient();
5050

5151
async function callDeleteBucket() {
5252
// Construct request
@@ -55,7 +55,7 @@ function main(name) {
5555
};
5656

5757
// Run request
58-
const response = await storageClient.deleteBucket(request);
58+
const response = await storageControlClient.deleteBucket(request);
5959
console.log(response);
6060
}
6161

packages/google-storage-control/samples/generated/v2/storage.get_bucket.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ function main(name) {
5050
// const readMask = {}
5151

5252
// Imports the Storage library
53-
const {StorageClient} = require('@google-cloud/storage').v2;
53+
const {StorageControlClient} = require('@google-cloud/storage-control');
5454

5555
// Instantiates a client
56-
const storageClient = new StorageClient();
56+
const storageControlClient = new StorageControlClient();
5757

5858
async function callGetBucket() {
5959
// Construct request
@@ -62,7 +62,7 @@ function main(name) {
6262
};
6363

6464
// Run request
65-
const response = await storageClient.getBucket(request);
65+
const response = await storageControlClient.getBucket(request);
6666
console.log(response);
6767
}
6868

packages/google-storage-control/samples/generated/v2/storage.list_buckets.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ function main(parent) {
6262
// const returnPartialSuccess = true
6363

6464
// Imports the Storage library
65-
const {StorageClient} = require('@google-cloud/storage').v2;
65+
const {StorageControlClient} = require('@google-cloud/storage-control');
6666

6767
// Instantiates a client
68-
const storageClient = new StorageClient();
68+
const storageControlClient = new StorageControlClient();
6969

7070
async function callListBuckets() {
7171
// Construct request
@@ -74,7 +74,7 @@ function main(parent) {
7474
};
7575

7676
// Run request
77-
const iterable = storageClient.listBucketsAsync(request);
77+
const iterable = storageControlClient.listBucketsAsync(request);
7878
for await (const response of iterable) {
7979
console.log(response);
8080
}

packages/google-storage-control/samples/generated/v2/storage.lock_bucket_retention_policy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ function main(bucket, ifMetagenerationMatch) {
3939
// const ifMetagenerationMatch = 1234
4040

4141
// Imports the Storage library
42-
const {StorageClient} = require('@google-cloud/storage').v2;
42+
const {StorageControlClient} = require('@google-cloud/storage-control');
4343

4444
// Instantiates a client
45-
const storageClient = new StorageClient();
45+
const storageControlClient = new StorageControlClient();
4646

4747
async function callLockBucketRetentionPolicy() {
4848
// Construct request
@@ -52,7 +52,7 @@ function main(bucket, ifMetagenerationMatch) {
5252
};
5353

5454
// Run request
55-
const response = await storageClient.lockBucketRetentionPolicy(request);
55+
const response = await storageControlClient.lockBucketRetentionPolicy(request);
5656
console.log(response);
5757
}
5858

packages/google-storage-control/samples/generated/v2/storage.update_bucket.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ function main(bucket, updateMask) {
6666
// const updateMask = {}
6767

6868
// Imports the Storage library
69-
const {StorageClient} = require('@google-cloud/storage').v2;
69+
const {StorageControlClient} = require('@google-cloud/storage-control');
7070

7171
// Instantiates a client
72-
const storageClient = new StorageClient();
72+
const storageControlClient = new StorageControlClient();
7373

7474
async function callUpdateBucket() {
7575
// Construct request
@@ -79,7 +79,7 @@ function main(bucket, updateMask) {
7979
};
8080

8181
// Run request
82-
const response = await storageClient.updateBucket(request);
82+
const response = await storageControlClient.updateBucket(request);
8383
console.log(response);
8484
}
8585

0 commit comments

Comments
 (0)