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

Commit

Permalink
feat: deprecate issue_matches (#104)
Browse files Browse the repository at this point in the history
* 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: googleapis/googleapis-gen@ff55b45
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Oct 4, 2021
1 parent 7b4e2a3 commit 8649d26
Show file tree
Hide file tree
Showing 7 changed files with 394 additions and 358 deletions.
Expand Up @@ -2974,6 +2974,7 @@ private static final class IssueMatchesDefaultEntryHolder {
return issueMatches_;
}

@java.lang.Deprecated
public int getIssueMatchesCount() {
return internalGetIssueMatches().getMap().size();
}
Expand All @@ -2985,10 +2986,12 @@ public int getIssueMatchesCount() {
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Deprecated
@java.lang.Override
public boolean containsIssueMatches(java.lang.String key) {
if (key == null) {
Expand All @@ -3010,11 +3013,13 @@ public java.util.Map<java.lang.String, java.lang.Integer> getIssueMatches() {
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.Integer> getIssueMatchesMap() {
return internalGetIssueMatches().getMap();
}
Expand All @@ -3026,11 +3031,13 @@ public java.util.Map<java.lang.String, java.lang.Integer> getIssueMatchesMap() {
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Override
@java.lang.Deprecated
public int getIssueMatchesOrDefault(java.lang.String key, int defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
Expand All @@ -3046,11 +3053,13 @@ public int getIssueMatchesOrDefault(java.lang.String key, int defaultValue) {
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Override
@java.lang.Deprecated
public int getIssueMatchesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
Expand Down Expand Up @@ -4286,6 +4295,7 @@ public Builder putAllCustomHighlighterMatches(
return issueMatches_;
}

@java.lang.Deprecated
public int getIssueMatchesCount() {
return internalGetIssueMatches().getMap().size();
}
Expand All @@ -4297,10 +4307,12 @@ public int getIssueMatchesCount() {
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Deprecated
@java.lang.Override
public boolean containsIssueMatches(java.lang.String key) {
if (key == null) {
Expand All @@ -4322,11 +4334,13 @@ public java.util.Map<java.lang.String, java.lang.Integer> getIssueMatches() {
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.Integer> getIssueMatchesMap() {
return internalGetIssueMatches().getMap();
}
Expand All @@ -4338,11 +4352,13 @@ public java.util.Map<java.lang.String, java.lang.Integer> getIssueMatchesMap() {
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Override
@java.lang.Deprecated
public int getIssueMatchesOrDefault(java.lang.String key, int defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
Expand All @@ -4358,11 +4374,13 @@ public int getIssueMatchesOrDefault(java.lang.String key, int defaultValue) {
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Override
@java.lang.Deprecated
public int getIssueMatchesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
Expand All @@ -4374,6 +4392,7 @@ public int getIssueMatchesOrThrow(java.lang.String key) {
return map.get(key);
}

@java.lang.Deprecated
public Builder clearIssueMatches() {
internalGetMutableIssueMatches().getMutableMap().clear();
return this;
Expand All @@ -4386,10 +4405,12 @@ public Builder clearIssueMatches() {
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Deprecated
public Builder removeIssueMatches(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
Expand All @@ -4410,10 +4431,12 @@ public java.util.Map<java.lang.String, java.lang.Integer> getMutableIssueMatches
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Deprecated
public Builder putIssueMatches(java.lang.String key, int value) {
if (key == null) {
throw new java.lang.NullPointerException();
Expand All @@ -4430,10 +4453,12 @@ public Builder putIssueMatches(java.lang.String key, int value) {
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Deprecated
public Builder putAllIssueMatches(java.util.Map<java.lang.String, java.lang.Integer> values) {
internalGetMutableIssueMatches().getMutableMap().putAll(values);
return this;
Expand Down
Expand Up @@ -213,10 +213,12 @@ public interface CalculateStatsResponseOrBuilder
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Deprecated
int getIssueMatchesCount();
/**
*
Expand All @@ -226,10 +228,12 @@ public interface CalculateStatsResponseOrBuilder
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Deprecated
boolean containsIssueMatches(java.lang.String key);
/** Use {@link #getIssueMatchesMap()} instead. */
@java.lang.Deprecated
Expand All @@ -242,10 +246,12 @@ public interface CalculateStatsResponseOrBuilder
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.Integer> getIssueMatchesMap();
/**
*
Expand All @@ -255,10 +261,12 @@ public interface CalculateStatsResponseOrBuilder
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Deprecated
int getIssueMatchesOrDefault(java.lang.String key, int defaultValue);
/**
*
Expand All @@ -268,10 +276,12 @@ public interface CalculateStatsResponseOrBuilder
* matches in the set of conversations. Key has the format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/issueModels/&lt;Issue Model
* ID&gt;/issues/&lt;Issue ID&gt;`
* Deprecated, use `issue_matches_stats` field instead.
* </pre>
*
* <code>map&lt;string, int32&gt; issue_matches = 6;</code>
* <code>map&lt;string, int32&gt; issue_matches = 6 [deprecated = true];</code>
*/
@java.lang.Deprecated
int getIssueMatchesOrThrow(java.lang.String key);

/**
Expand Down

0 comments on commit 8649d26

Please sign in to comment.