Skip to content

Commit 9a120e9

Browse files
authored
deps: Update showcase version to 0.28.1 (#1673)
1 parent 0d9cfa1 commit 9a120e9

File tree

48 files changed

+10244
-126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+10244
-126
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66
name: ci
77
env:
8-
SHOWCASE_VERSION: 0.27.0
8+
SHOWCASE_VERSION: 0.28.0
99
jobs:
1010
build:
1111
runs-on: ubuntu-22.04

.github/workflows/sonar.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: SonarCloud Build
22
env:
3-
SHOWCASE_VERSION: 0.27.0
3+
SHOWCASE_VERSION: 0.28.0
44
on:
55
push:
66
branches:

.kokoro/presubmit/downstream-build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
set -eo pipefail
1717

18-
SHOWCASE_VERSION=0.27.0
18+
SHOWCASE_VERSION=0.28.0
1919

2020
## Get the directory of the build script
2121
scriptDir=$(realpath "$(dirname "${BASH_SOURCE[0]}")")

WORKSPACE

+3-7
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,13 @@ http_archive(
107107
)
108108

109109
# Showcase
110-
_showcase_commit = "656e5f46d125a69c82c0cb7edcfcd8b03ed77b89"
111-
112-
_showcase_sha256 = "26d4b71ac31cbca5e4ed4cdcb5bfeca185e405392d70d2020b4528b5b47c8022"
110+
_showcase_version = "0.28.1"
113111

114112
http_archive(
115113
name = "com_google_gapic_showcase",
116-
sha256 = _showcase_sha256,
117-
strip_prefix = "gapic-showcase-%s" % _showcase_commit,
114+
strip_prefix = "gapic-showcase-%s" % _showcase_version,
118115
urls = [
119-
# "https://github.com/googleapis/gapic-showcase/archive/refs/tags/v%s.zip" % _showcase_version,
120-
"https://github.com/googleapis/gapic-showcase/archive/%s.zip" % _showcase_commit,
116+
"https://github.com/googleapis/gapic-showcase/archive/refs/tags/v%s.zip" % _showcase_version,
121117
],
122118
)
123119

showcase/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ versions is not guaranteed. If changing the version of the server, it may also b
1616
update to a compatible client version in `./WORKSPACE`.
1717

1818
```shell
19-
$ GAPIC_SHOWCASE_VERSION=0.27.0
19+
$ GAPIC_SHOWCASE_VERSION=0.28.0
2020
$ go install github.com/googleapis/gapic-showcase/cmd/gapic-showcase@v"$GAPIC_SHOWCASE_VERSION"
2121
$ PATH=$PATH:`go env GOPATH`/bin
2222
$ gapic-showcase --help

showcase/gapic-showcase/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</parent>
2020

2121
<properties>
22-
<gapic-showcase.version>0.27.0</gapic-showcase.version>
22+
<gapic-showcase.version>0.28.0</gapic-showcase.version>
2323
</properties>
2424

2525
<profiles>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.showcase.v1beta1;
18+
19+
import com.google.api.pathtemplate.PathTemplate;
20+
import com.google.api.resourcenames.ResourceName;
21+
import com.google.common.base.Preconditions;
22+
import com.google.common.collect.ImmutableMap;
23+
import java.util.ArrayList;
24+
import java.util.List;
25+
import java.util.Map;
26+
import java.util.Objects;
27+
import javax.annotation.Generated;
28+
29+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
30+
@Generated("by gapic-generator-java")
31+
public class StreamingSequenceName implements ResourceName {
32+
private static final PathTemplate STREAMING_SEQUENCE =
33+
PathTemplate.createWithoutUrlEncoding("streamingSequences/{streaming_sequence}");
34+
private volatile Map<String, String> fieldValuesMap;
35+
private final String streamingSequence;
36+
37+
@Deprecated
38+
protected StreamingSequenceName() {
39+
streamingSequence = null;
40+
}
41+
42+
private StreamingSequenceName(Builder builder) {
43+
streamingSequence = Preconditions.checkNotNull(builder.getStreamingSequence());
44+
}
45+
46+
public String getStreamingSequence() {
47+
return streamingSequence;
48+
}
49+
50+
public static Builder newBuilder() {
51+
return new Builder();
52+
}
53+
54+
public Builder toBuilder() {
55+
return new Builder(this);
56+
}
57+
58+
public static StreamingSequenceName of(String streamingSequence) {
59+
return newBuilder().setStreamingSequence(streamingSequence).build();
60+
}
61+
62+
public static String format(String streamingSequence) {
63+
return newBuilder().setStreamingSequence(streamingSequence).build().toString();
64+
}
65+
66+
public static StreamingSequenceName parse(String formattedString) {
67+
if (formattedString.isEmpty()) {
68+
return null;
69+
}
70+
Map<String, String> matchMap =
71+
STREAMING_SEQUENCE.validatedMatch(
72+
formattedString, "StreamingSequenceName.parse: formattedString not in valid format");
73+
return of(matchMap.get("streaming_sequence"));
74+
}
75+
76+
public static List<StreamingSequenceName> parseList(List<String> formattedStrings) {
77+
List<StreamingSequenceName> list = new ArrayList<>(formattedStrings.size());
78+
for (String formattedString : formattedStrings) {
79+
list.add(parse(formattedString));
80+
}
81+
return list;
82+
}
83+
84+
public static List<String> toStringList(List<StreamingSequenceName> values) {
85+
List<String> list = new ArrayList<>(values.size());
86+
for (StreamingSequenceName value : values) {
87+
if (value == null) {
88+
list.add("");
89+
} else {
90+
list.add(value.toString());
91+
}
92+
}
93+
return list;
94+
}
95+
96+
public static boolean isParsableFrom(String formattedString) {
97+
return STREAMING_SEQUENCE.matches(formattedString);
98+
}
99+
100+
@Override
101+
public Map<String, String> getFieldValuesMap() {
102+
if (fieldValuesMap == null) {
103+
synchronized (this) {
104+
if (fieldValuesMap == null) {
105+
ImmutableMap.Builder<String, String> fieldMapBuilder = ImmutableMap.builder();
106+
if (streamingSequence != null) {
107+
fieldMapBuilder.put("streaming_sequence", streamingSequence);
108+
}
109+
fieldValuesMap = fieldMapBuilder.build();
110+
}
111+
}
112+
}
113+
return fieldValuesMap;
114+
}
115+
116+
public String getFieldValue(String fieldName) {
117+
return getFieldValuesMap().get(fieldName);
118+
}
119+
120+
@Override
121+
public String toString() {
122+
return STREAMING_SEQUENCE.instantiate("streaming_sequence", streamingSequence);
123+
}
124+
125+
@Override
126+
public boolean equals(Object o) {
127+
if (o == this) {
128+
return true;
129+
}
130+
if (o != null || getClass() == o.getClass()) {
131+
StreamingSequenceName that = ((StreamingSequenceName) o);
132+
return Objects.equals(this.streamingSequence, that.streamingSequence);
133+
}
134+
return false;
135+
}
136+
137+
@Override
138+
public int hashCode() {
139+
int h = 1;
140+
h *= 1000003;
141+
h ^= Objects.hashCode(streamingSequence);
142+
return h;
143+
}
144+
145+
/** Builder for streamingSequences/{streaming_sequence}. */
146+
public static class Builder {
147+
private String streamingSequence;
148+
149+
protected Builder() {}
150+
151+
public String getStreamingSequence() {
152+
return streamingSequence;
153+
}
154+
155+
public Builder setStreamingSequence(String streamingSequence) {
156+
this.streamingSequence = streamingSequence;
157+
return this;
158+
}
159+
160+
private Builder(StreamingSequenceName streamingSequenceName) {
161+
this.streamingSequence = streamingSequenceName.streamingSequence;
162+
}
163+
164+
public StreamingSequenceName build() {
165+
return new StreamingSequenceName(this);
166+
}
167+
}
168+
}

0 commit comments

Comments
 (0)