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

Commit 2e6b524

Browse files
feat: Sustainability Projection (#720)
- [ ] Regenerate this pull request now. Incorporate above new features, as well as update .bazel files. PiperOrigin-RevId: 427821134 Source-Link: googleapis/googleapis@44d6bef Source-Link: https://github.com/googleapis/googleapis-gen/commit/dd8ca7937e8e8e1e37322b8cc7dd08b9d7523c3b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGQ4Y2E3OTM3ZThlOGUxZTM3MzIyYjhjYzdkZDA4YjlkNzUyM2MzYiJ9
1 parent f662b7c commit 2e6b524

14 files changed

Lines changed: 1404 additions & 79 deletions

proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/Impact.java

Lines changed: 347 additions & 0 deletions
Large diffs are not rendered by default.

proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/ImpactOrBuilder.java

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,47 @@ public interface ImpactOrBuilder
118118
*/
119119
com.google.cloud.recommender.v1beta1.SecurityProjectionOrBuilder getSecurityProjectionOrBuilder();
120120

121+
/**
122+
*
123+
*
124+
* <pre>
125+
* Use with CategoryType.SUSTAINABILITY
126+
* </pre>
127+
*
128+
* <code>
129+
* .google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;
130+
* </code>
131+
*
132+
* @return Whether the sustainabilityProjection field is set.
133+
*/
134+
boolean hasSustainabilityProjection();
135+
/**
136+
*
137+
*
138+
* <pre>
139+
* Use with CategoryType.SUSTAINABILITY
140+
* </pre>
141+
*
142+
* <code>
143+
* .google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;
144+
* </code>
145+
*
146+
* @return The sustainabilityProjection.
147+
*/
148+
com.google.cloud.recommender.v1beta1.SustainabilityProjection getSustainabilityProjection();
149+
/**
150+
*
151+
*
152+
* <pre>
153+
* Use with CategoryType.SUSTAINABILITY
154+
* </pre>
155+
*
156+
* <code>
157+
* .google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;
158+
* </code>
159+
*/
160+
com.google.cloud.recommender.v1beta1.SustainabilityProjectionOrBuilder
161+
getSustainabilityProjectionOrBuilder();
162+
121163
public com.google.cloud.recommender.v1beta1.Impact.ProjectionCase getProjectionCase();
122164
}

proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/Insight.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ public interface RecommendationReferenceOrBuilder
659659
*
660660
* <pre>
661661
* Recommendation resource name, e.g.
662-
* `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]`
662+
* projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
663663
* </pre>
664664
*
665665
* <code>string recommendation = 1;</code>
@@ -672,7 +672,7 @@ public interface RecommendationReferenceOrBuilder
672672
*
673673
* <pre>
674674
* Recommendation resource name, e.g.
675-
* `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]`
675+
* projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
676676
* </pre>
677677
*
678678
* <code>string recommendation = 1;</code>
@@ -781,7 +781,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
781781
*
782782
* <pre>
783783
* Recommendation resource name, e.g.
784-
* `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]`
784+
* projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
785785
* </pre>
786786
*
787787
* <code>string recommendation = 1;</code>
@@ -805,7 +805,7 @@ public java.lang.String getRecommendation() {
805805
*
806806
* <pre>
807807
* Recommendation resource name, e.g.
808-
* `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]`
808+
* projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
809809
* </pre>
810810
*
811811
* <code>string recommendation = 1;</code>
@@ -1163,7 +1163,7 @@ public Builder mergeFrom(
11631163
*
11641164
* <pre>
11651165
* Recommendation resource name, e.g.
1166-
* `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]`
1166+
* projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
11671167
* </pre>
11681168
*
11691169
* <code>string recommendation = 1;</code>
@@ -1186,7 +1186,7 @@ public java.lang.String getRecommendation() {
11861186
*
11871187
* <pre>
11881188
* Recommendation resource name, e.g.
1189-
* `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]`
1189+
* projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
11901190
* </pre>
11911191
*
11921192
* <code>string recommendation = 1;</code>
@@ -1209,7 +1209,7 @@ public com.google.protobuf.ByteString getRecommendationBytes() {
12091209
*
12101210
* <pre>
12111211
* Recommendation resource name, e.g.
1212-
* `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]`
1212+
* projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
12131213
* </pre>
12141214
*
12151215
* <code>string recommendation = 1;</code>
@@ -1231,7 +1231,7 @@ public Builder setRecommendation(java.lang.String value) {
12311231
*
12321232
* <pre>
12331233
* Recommendation resource name, e.g.
1234-
* `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]`
1234+
* projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
12351235
* </pre>
12361236
*
12371237
* <code>string recommendation = 1;</code>
@@ -1249,7 +1249,7 @@ public Builder clearRecommendation() {
12491249
*
12501250
* <pre>
12511251
* Recommendation resource name, e.g.
1252-
* `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]`
1252+
* projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
12531253
* </pre>
12541254
*
12551255
* <code>string recommendation = 1;</code>

proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightTypeConfig.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ public int getAnnotationsCount() {
499499
* separated by a slash (/).
500500
* Prefix must be a DNS subdomain.
501501
* Name must be 63 characters or less, begin and end with alphanumerics,
502-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
502+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
503503
* </pre>
504504
*
505505
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -528,7 +528,7 @@ public java.util.Map<java.lang.String, java.lang.String> getAnnotations() {
528528
* separated by a slash (/).
529529
* Prefix must be a DNS subdomain.
530530
* Name must be 63 characters or less, begin and end with alphanumerics,
531-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
531+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
532532
* </pre>
533533
*
534534
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -548,7 +548,7 @@ public java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap() {
548548
* separated by a slash (/).
549549
* Prefix must be a DNS subdomain.
550550
* Name must be 63 characters or less, begin and end with alphanumerics,
551-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
551+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
552552
* </pre>
553553
*
554554
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -573,7 +573,7 @@ public java.lang.String getAnnotationsOrDefault(
573573
* separated by a slash (/).
574574
* Prefix must be a DNS subdomain.
575575
* Name must be 63 characters or less, begin and end with alphanumerics,
576-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
576+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
577577
* </pre>
578578
*
579579
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -1906,7 +1906,7 @@ public int getAnnotationsCount() {
19061906
* separated by a slash (/).
19071907
* Prefix must be a DNS subdomain.
19081908
* Name must be 63 characters or less, begin and end with alphanumerics,
1909-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
1909+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
19101910
* </pre>
19111911
*
19121912
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -1935,7 +1935,7 @@ public java.util.Map<java.lang.String, java.lang.String> getAnnotations() {
19351935
* separated by a slash (/).
19361936
* Prefix must be a DNS subdomain.
19371937
* Name must be 63 characters or less, begin and end with alphanumerics,
1938-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
1938+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
19391939
* </pre>
19401940
*
19411941
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -1955,7 +1955,7 @@ public java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap() {
19551955
* separated by a slash (/).
19561956
* Prefix must be a DNS subdomain.
19571957
* Name must be 63 characters or less, begin and end with alphanumerics,
1958-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
1958+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
19591959
* </pre>
19601960
*
19611961
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -1980,7 +1980,7 @@ public java.lang.String getAnnotationsOrDefault(
19801980
* separated by a slash (/).
19811981
* Prefix must be a DNS subdomain.
19821982
* Name must be 63 characters or less, begin and end with alphanumerics,
1983-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
1983+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
19841984
* </pre>
19851985
*
19861986
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -2012,7 +2012,7 @@ public Builder clearAnnotations() {
20122012
* separated by a slash (/).
20132013
* Prefix must be a DNS subdomain.
20142014
* Name must be 63 characters or less, begin and end with alphanumerics,
2015-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
2015+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
20162016
* </pre>
20172017
*
20182018
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -2040,7 +2040,7 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableAnnotations()
20402040
* separated by a slash (/).
20412041
* Prefix must be a DNS subdomain.
20422042
* Name must be 63 characters or less, begin and end with alphanumerics,
2043-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
2043+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
20442044
* </pre>
20452045
*
20462046
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -2066,7 +2066,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
20662066
* separated by a slash (/).
20672067
* Prefix must be a DNS subdomain.
20682068
* Name must be 63 characters or less, begin and end with alphanumerics,
2069-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
2069+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
20702070
* </pre>
20712071
*
20722072
* <code>map&lt;string, string&gt; annotations = 6;</code>

proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightTypeConfigOrBuilder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public interface InsightTypeConfigOrBuilder
203203
* separated by a slash (/).
204204
* Prefix must be a DNS subdomain.
205205
* Name must be 63 characters or less, begin and end with alphanumerics,
206-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
206+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
207207
* </pre>
208208
*
209209
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -220,7 +220,7 @@ public interface InsightTypeConfigOrBuilder
220220
* separated by a slash (/).
221221
* Prefix must be a DNS subdomain.
222222
* Name must be 63 characters or less, begin and end with alphanumerics,
223-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
223+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
224224
* </pre>
225225
*
226226
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -240,7 +240,7 @@ public interface InsightTypeConfigOrBuilder
240240
* separated by a slash (/).
241241
* Prefix must be a DNS subdomain.
242242
* Name must be 63 characters or less, begin and end with alphanumerics,
243-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
243+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
244244
* </pre>
245245
*
246246
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -257,7 +257,7 @@ public interface InsightTypeConfigOrBuilder
257257
* separated by a slash (/).
258258
* Prefix must be a DNS subdomain.
259259
* Name must be 63 characters or less, begin and end with alphanumerics,
260-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
260+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
261261
* </pre>
262262
*
263263
* <code>map&lt;string, string&gt; annotations = 6;</code>
@@ -274,7 +274,7 @@ public interface InsightTypeConfigOrBuilder
274274
* separated by a slash (/).
275275
* Prefix must be a DNS subdomain.
276276
* Name must be 63 characters or less, begin and end with alphanumerics,
277-
* with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
277+
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
278278
* </pre>
279279
*
280280
* <code>map&lt;string, string&gt; annotations = 6;</code>

0 commit comments

Comments
 (0)