Skip to content
This repository was archived by the owner on Jul 17, 2023. It is now read-only.

Commit 8649d26

Browse files
feat: deprecate issue_matches (#104)
* feat: deprecate issue_matches docs: if conversation medium is unspecified, it will default to PHONE_CALL PiperOrigin-RevId: 400004079 Source-Link: googleapis/googleapis@e202ad3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ff55b45bfbb15b79bcf7b0ba65d92ad548d2f95a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmY1NWI0NWJmYmIxNWI3OWJjZjdiMGJhNjVkOTJhZDU0OGQyZjk1YSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 7b4e2a3 commit 8649d26

7 files changed

Lines changed: 394 additions & 358 deletions

File tree

proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CalculateStatsResponse.java

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2974,6 +2974,7 @@ private static final class IssueMatchesDefaultEntryHolder {
29742974
return issueMatches_;
29752975
}
29762976

2977+
@java.lang.Deprecated
29772978
public int getIssueMatchesCount() {
29782979
return internalGetIssueMatches().getMap().size();
29792980
}
@@ -2985,10 +2986,12 @@ public int getIssueMatchesCount() {
29852986
* matches in the set of conversations. Key has the format:
29862987
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
29872988
* ID&gt;/issues/&lt;Issue ID&gt;`
2989+
* Deprecated, use `issue_matches_stats` field instead.
29882990
* </pre>
29892991
*
2990-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
2992+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
29912993
*/
2994+
@java.lang.Deprecated
29922995
@java.lang.Override
29932996
public boolean containsIssueMatches(java.lang.String key) {
29942997
if (key == null) {
@@ -3010,11 +3013,13 @@ public java.util.Map<java.lang.String, java.lang.Integer> getIssueMatches() {
30103013
* matches in the set of conversations. Key has the format:
30113014
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
30123015
* ID&gt;/issues/&lt;Issue ID&gt;`
3016+
* Deprecated, use `issue_matches_stats` field instead.
30133017
* </pre>
30143018
*
3015-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
3019+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
30163020
*/
30173021
@java.lang.Override
3022+
@java.lang.Deprecated
30183023
public java.util.Map<java.lang.String, java.lang.Integer> getIssueMatchesMap() {
30193024
return internalGetIssueMatches().getMap();
30203025
}
@@ -3026,11 +3031,13 @@ public java.util.Map<java.lang.String, java.lang.Integer> getIssueMatchesMap() {
30263031
* matches in the set of conversations. Key has the format:
30273032
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
30283033
* ID&gt;/issues/&lt;Issue ID&gt;`
3034+
* Deprecated, use `issue_matches_stats` field instead.
30293035
* </pre>
30303036
*
3031-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
3037+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
30323038
*/
30333039
@java.lang.Override
3040+
@java.lang.Deprecated
30343041
public int getIssueMatchesOrDefault(java.lang.String key, int defaultValue) {
30353042
if (key == null) {
30363043
throw new java.lang.NullPointerException();
@@ -3046,11 +3053,13 @@ public int getIssueMatchesOrDefault(java.lang.String key, int defaultValue) {
30463053
* matches in the set of conversations. Key has the format:
30473054
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
30483055
* ID&gt;/issues/&lt;Issue ID&gt;`
3056+
* Deprecated, use `issue_matches_stats` field instead.
30493057
* </pre>
30503058
*
3051-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
3059+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
30523060
*/
30533061
@java.lang.Override
3062+
@java.lang.Deprecated
30543063
public int getIssueMatchesOrThrow(java.lang.String key) {
30553064
if (key == null) {
30563065
throw new java.lang.NullPointerException();
@@ -4286,6 +4295,7 @@ public Builder putAllCustomHighlighterMatches(
42864295
return issueMatches_;
42874296
}
42884297

4298+
@java.lang.Deprecated
42894299
public int getIssueMatchesCount() {
42904300
return internalGetIssueMatches().getMap().size();
42914301
}
@@ -4297,10 +4307,12 @@ public int getIssueMatchesCount() {
42974307
* matches in the set of conversations. Key has the format:
42984308
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
42994309
* ID&gt;/issues/&lt;Issue ID&gt;`
4310+
* Deprecated, use `issue_matches_stats` field instead.
43004311
* </pre>
43014312
*
4302-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
4313+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
43034314
*/
4315+
@java.lang.Deprecated
43044316
@java.lang.Override
43054317
public boolean containsIssueMatches(java.lang.String key) {
43064318
if (key == null) {
@@ -4322,11 +4334,13 @@ public java.util.Map<java.lang.String, java.lang.Integer> getIssueMatches() {
43224334
* matches in the set of conversations. Key has the format:
43234335
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
43244336
* ID&gt;/issues/&lt;Issue ID&gt;`
4337+
* Deprecated, use `issue_matches_stats` field instead.
43254338
* </pre>
43264339
*
4327-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
4340+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
43284341
*/
43294342
@java.lang.Override
4343+
@java.lang.Deprecated
43304344
public java.util.Map<java.lang.String, java.lang.Integer> getIssueMatchesMap() {
43314345
return internalGetIssueMatches().getMap();
43324346
}
@@ -4338,11 +4352,13 @@ public java.util.Map<java.lang.String, java.lang.Integer> getIssueMatchesMap() {
43384352
* matches in the set of conversations. Key has the format:
43394353
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
43404354
* ID&gt;/issues/&lt;Issue ID&gt;`
4355+
* Deprecated, use `issue_matches_stats` field instead.
43414356
* </pre>
43424357
*
4343-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
4358+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
43444359
*/
43454360
@java.lang.Override
4361+
@java.lang.Deprecated
43464362
public int getIssueMatchesOrDefault(java.lang.String key, int defaultValue) {
43474363
if (key == null) {
43484364
throw new java.lang.NullPointerException();
@@ -4358,11 +4374,13 @@ public int getIssueMatchesOrDefault(java.lang.String key, int defaultValue) {
43584374
* matches in the set of conversations. Key has the format:
43594375
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
43604376
* ID&gt;/issues/&lt;Issue ID&gt;`
4377+
* Deprecated, use `issue_matches_stats` field instead.
43614378
* </pre>
43624379
*
4363-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
4380+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
43644381
*/
43654382
@java.lang.Override
4383+
@java.lang.Deprecated
43664384
public int getIssueMatchesOrThrow(java.lang.String key) {
43674385
if (key == null) {
43684386
throw new java.lang.NullPointerException();
@@ -4374,6 +4392,7 @@ public int getIssueMatchesOrThrow(java.lang.String key) {
43744392
return map.get(key);
43754393
}
43764394

4395+
@java.lang.Deprecated
43774396
public Builder clearIssueMatches() {
43784397
internalGetMutableIssueMatches().getMutableMap().clear();
43794398
return this;
@@ -4386,10 +4405,12 @@ public Builder clearIssueMatches() {
43864405
* matches in the set of conversations. Key has the format:
43874406
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
43884407
* ID&gt;/issues/&lt;Issue ID&gt;`
4408+
* Deprecated, use `issue_matches_stats` field instead.
43894409
* </pre>
43904410
*
4391-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
4411+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
43924412
*/
4413+
@java.lang.Deprecated
43934414
public Builder removeIssueMatches(java.lang.String key) {
43944415
if (key == null) {
43954416
throw new java.lang.NullPointerException();
@@ -4410,10 +4431,12 @@ public java.util.Map<java.lang.String, java.lang.Integer> getMutableIssueMatches
44104431
* matches in the set of conversations. Key has the format:
44114432
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
44124433
* ID&gt;/issues/&lt;Issue ID&gt;`
4434+
* Deprecated, use `issue_matches_stats` field instead.
44134435
* </pre>
44144436
*
4415-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
4437+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
44164438
*/
4439+
@java.lang.Deprecated
44174440
public Builder putIssueMatches(java.lang.String key, int value) {
44184441
if (key == null) {
44194442
throw new java.lang.NullPointerException();
@@ -4430,10 +4453,12 @@ public Builder putIssueMatches(java.lang.String key, int value) {
44304453
* matches in the set of conversations. Key has the format:
44314454
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
44324455
* ID&gt;/issues/&lt;Issue ID&gt;`
4456+
* Deprecated, use `issue_matches_stats` field instead.
44334457
* </pre>
44344458
*
4435-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
4459+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
44364460
*/
4461+
@java.lang.Deprecated
44374462
public Builder putAllIssueMatches(java.util.Map<java.lang.String, java.lang.Integer> values) {
44384463
internalGetMutableIssueMatches().getMutableMap().putAll(values);
44394464
return this;

proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CalculateStatsResponseOrBuilder.java

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,12 @@ public interface CalculateStatsResponseOrBuilder
213213
* matches in the set of conversations. Key has the format:
214214
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
215215
* ID&gt;/issues/&lt;Issue ID&gt;`
216+
* Deprecated, use `issue_matches_stats` field instead.
216217
* </pre>
217218
*
218-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
219+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
219220
*/
221+
@java.lang.Deprecated
220222
int getIssueMatchesCount();
221223
/**
222224
*
@@ -226,10 +228,12 @@ public interface CalculateStatsResponseOrBuilder
226228
* matches in the set of conversations. Key has the format:
227229
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
228230
* ID&gt;/issues/&lt;Issue ID&gt;`
231+
* Deprecated, use `issue_matches_stats` field instead.
229232
* </pre>
230233
*
231-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
234+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
232235
*/
236+
@java.lang.Deprecated
233237
boolean containsIssueMatches(java.lang.String key);
234238
/** Use {@link #getIssueMatchesMap()} instead. */
235239
@java.lang.Deprecated
@@ -242,10 +246,12 @@ public interface CalculateStatsResponseOrBuilder
242246
* matches in the set of conversations. Key has the format:
243247
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
244248
* ID&gt;/issues/&lt;Issue ID&gt;`
249+
* Deprecated, use `issue_matches_stats` field instead.
245250
* </pre>
246251
*
247-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
252+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
248253
*/
254+
@java.lang.Deprecated
249255
java.util.Map<java.lang.String, java.lang.Integer> getIssueMatchesMap();
250256
/**
251257
*
@@ -255,10 +261,12 @@ public interface CalculateStatsResponseOrBuilder
255261
* matches in the set of conversations. Key has the format:
256262
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
257263
* ID&gt;/issues/&lt;Issue ID&gt;`
264+
* Deprecated, use `issue_matches_stats` field instead.
258265
* </pre>
259266
*
260-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
267+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
261268
*/
269+
@java.lang.Deprecated
262270
int getIssueMatchesOrDefault(java.lang.String key, int defaultValue);
263271
/**
264272
*
@@ -268,10 +276,12 @@ public interface CalculateStatsResponseOrBuilder
268276
* matches in the set of conversations. Key has the format:
269277
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
270278
* ID&gt;/issues/&lt;Issue ID&gt;`
279+
* Deprecated, use `issue_matches_stats` field instead.
271280
* </pre>
272281
*
273-
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
282+
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
274283
*/
284+
@java.lang.Deprecated
275285
int getIssueMatchesOrThrow(java.lang.String key);
276286

277287
/**

0 commit comments

Comments
 (0)