Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#143)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 474338479

Source-Link: googleapis/googleapis@d5d35e0

Source-Link: googleapis/googleapis-gen@efcd3f9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWZjZDNmOTM5NjJhMTAzZjY4ZjAwM2UyYTFlZWNkZTZmYTIxNmEyNyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 14, 2022
1 parent ec5ff60 commit cc63657
Show file tree
Hide file tree
Showing 2 changed files with 1,732 additions and 1,711 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createConversation(request, options, callback);
Expand Down Expand Up @@ -700,7 +700,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'conversation.name': request.conversation!.name || '',
'conversation.name': request.conversation!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateConversation(request, options, callback);
Expand Down Expand Up @@ -799,7 +799,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getConversation(request, options, callback);
Expand Down Expand Up @@ -900,7 +900,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteConversation(request, options, callback);
Expand Down Expand Up @@ -997,7 +997,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getAnalysis(request, options, callback);
Expand Down Expand Up @@ -1094,7 +1094,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteAnalysis(request, options, callback);
Expand Down Expand Up @@ -1193,7 +1193,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'issue_model.name': request.issueModel!.name || '',
'issue_model.name': request.issueModel!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateIssueModel(request, options, callback);
Expand Down Expand Up @@ -1290,7 +1290,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getIssueModel(request, options, callback);
Expand Down Expand Up @@ -1387,7 +1387,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listIssueModels(request, options, callback);
Expand Down Expand Up @@ -1478,7 +1478,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getIssue(request, options, callback);
Expand Down Expand Up @@ -1575,7 +1575,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listIssues(request, options, callback);
Expand Down Expand Up @@ -1674,7 +1674,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'issue.name': request.issue!.name || '',
'issue.name': request.issue!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateIssue(request, options, callback);
Expand Down Expand Up @@ -1771,7 +1771,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
issue_model: request.issueModel || '',
issue_model: request.issueModel ?? '',
});
this.initialize();
return this.innerApiCalls.calculateIssueModelStats(
Expand Down Expand Up @@ -1877,7 +1877,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createPhraseMatcher(request, options, callback);
Expand Down Expand Up @@ -1974,7 +1974,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getPhraseMatcher(request, options, callback);
Expand Down Expand Up @@ -2071,7 +2071,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deletePhraseMatcher(request, options, callback);
Expand Down Expand Up @@ -2170,7 +2170,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'phrase_matcher.name': request.phraseMatcher!.name || '',
'phrase_matcher.name': request.phraseMatcher!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updatePhraseMatcher(request, options, callback);
Expand Down Expand Up @@ -2270,7 +2270,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
location: request.location || '',
location: request.location ?? '',
});
this.initialize();
return this.innerApiCalls.calculateStats(request, options, callback);
Expand Down Expand Up @@ -2367,7 +2367,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getSettings(request, options, callback);
Expand Down Expand Up @@ -2466,7 +2466,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'settings.name': request.settings!.name || '',
'settings.name': request.settings!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateSettings(request, options, callback);
Expand Down Expand Up @@ -2568,7 +2568,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createView(request, options, callback);
Expand Down Expand Up @@ -2659,7 +2659,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getView(request, options, callback);
Expand Down Expand Up @@ -2758,7 +2758,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'view.name': request.view!.name || '',
'view.name': request.view!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateView(request, options, callback);
Expand Down Expand Up @@ -2855,7 +2855,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteView(request, options, callback);
Expand Down Expand Up @@ -2962,7 +2962,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createAnalysis(request, options, callback);
Expand Down Expand Up @@ -3111,7 +3111,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.exportInsightsData(request, options, callback);
Expand Down Expand Up @@ -3251,7 +3251,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createIssueModel(request, options, callback);
Expand Down Expand Up @@ -3389,7 +3389,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteIssueModel(request, options, callback);
Expand Down Expand Up @@ -3528,7 +3528,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deployIssueModel(request, options, callback);
Expand Down Expand Up @@ -3667,7 +3667,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.undeployIssueModel(request, options, callback);
Expand Down Expand Up @@ -3810,7 +3810,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listConversations(request, options, callback);
Expand Down Expand Up @@ -3858,7 +3858,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listConversations'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3915,7 +3915,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listConversations'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4027,7 +4027,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listAnalyses(request, options, callback);
Expand Down Expand Up @@ -4073,7 +4073,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listAnalyses'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4128,7 +4128,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listAnalyses'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4240,7 +4240,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listPhraseMatchers(request, options, callback);
Expand Down Expand Up @@ -4286,7 +4286,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listPhraseMatchers'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4341,7 +4341,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listPhraseMatchers'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4450,7 +4450,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listViews(request, options, callback);
Expand Down Expand Up @@ -4493,7 +4493,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listViews'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -4545,7 +4545,7 @@ export class ContactCenterInsightsClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listViews'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit cc63657

Please sign in to comment.