Repository navigation
Expand file tree
/
Copy pathpackage-info.java
More file actions
188 lines (186 loc) · 8.53 KB
/
Copy pathpackage-info.java
File metadata and controls
188 lines (186 loc) · 8.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
/*
* Copyright 2026 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* A client to Client Libraries Showcase API
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>======================= ComplianceClient =======================
*
* <p>Service Description: This service is used to test that GAPICs implement various REST-related
* features correctly. This mostly means transcoding proto3 requests to REST format correctly for
* various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums
* received by clients can be round-tripped correctly.
*
* <p>Sample for ComplianceClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ComplianceClient complianceClient = ComplianceClient.create()) {
* RepeatRequest request =
* RepeatRequest.newBuilder()
* .setName("name3373707")
* .setInfo(ComplianceData.newBuilder().build())
* .setServerVerify(true)
* .setIntendedBindingUri("intendedBindingUri780142386")
* .setFInt32(-1143775883)
* .setFInt64(-1143775788)
* .setFDouble(-1239459382)
* .setPInt32(-858673665)
* .setPInt64(-858673570)
* .setPDouble(-991225216)
* .build();
* RepeatResponse response = complianceClient.repeatDataBody(request);
* }
* }</pre>
*
* <p>======================= EchoClient =======================
*
* <p>Service Description: This service is used showcase the four main types of rpcs - unary, server
* side streaming, client side streaming, and bidirectional streaming. This service also exposes
* methods that explicitly implement server delay, and paginated calls. Set the 'showcase-trailer'
* metadata key on any method to have the values echoed in the response trailers. Set the
* 'x-goog-request-params' metadata key on any method to have the values echoed in the response
* headers.
*
* <p>Sample for EchoClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (EchoClient echoClient = EchoClient.create()) {
* EchoRequest request =
* EchoRequest.newBuilder()
* .setSeverity(Severity.forNumber(0))
* .setHeader("header-1221270899")
* .setOtherHeader("otherHeader-2026585667")
* .setRequestId("requestId693933066")
* .setOtherRequestId("otherRequestId1248995034")
* .build();
* EchoResponse response = echoClient.echo(request);
* }
* }</pre>
*
* <p>======================= IdentityClient =======================
*
* <p>Service Description: A simple identity service.
*
* <p>Sample for IdentityClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (IdentityClient identityClient = IdentityClient.create()) {
* String displayName = "displayName1714148973";
* String email = "email96619420";
* User response = identityClient.createUser(displayName, email);
* }
* }</pre>
*
* <p>======================= MessagingClient =======================
*
* <p>Service Description: A simple messaging service that implements chat rooms and profile posts.
*
* <p>This messaging service showcases the features that API clients generated by gapic-generators
* implement.
*
* <p>Sample for MessagingClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (MessagingClient messagingClient = MessagingClient.create()) {
* String displayName = "displayName1714148973";
* String description = "description-1724546052";
* Room response = messagingClient.createRoom(displayName, description);
* }
* }</pre>
*
* <p>======================= ResumableUploadServiceClient =======================
*
* <p>Service Description: A service showcasing universal resumable upload protocol support.
*
* <p>Sample for ResumableUploadServiceClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ResumableUploadServiceClient resumableUploadServiceClient =
* ResumableUploadServiceClient.create()) {
* GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
* Location response = resumableUploadServiceClient.getLocation(request);
* }
* }</pre>
*
* <p>======================= SequenceServiceClient =======================
*
* <p>Service Description: A service that enables testing of unary and server streaming calls by
* specifying a specific, predictable sequence of responses from the service
*
* <p>Sample for SequenceServiceClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
* Sequence sequence = Sequence.newBuilder().build();
* Sequence response = sequenceServiceClient.createSequence(sequence);
* }
* }</pre>
*
* <p>======================= TestingClient =======================
*
* <p>Service Description: A service to facilitate running discrete sets of tests against Showcase.
* Adding this comment with special characters for comment formatting tests: 1.
* (abra->kadabra->alakazam) 2) [Nonsense][]: `pokemon/*/psychic/*`
*
* <p>Sample for TestingClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (TestingClient testingClient = TestingClient.create()) {
* CreateSessionRequest request =
* CreateSessionRequest.newBuilder().setSession(Session.newBuilder().build()).build();
* Session response = testingClient.createSession(request);
* }
* }</pre>
*/
@Generated("by gapic-generator-java")
package com.google.showcase.v1beta1;
import javax.annotation.Generated;