Skip to content

Commit 9aafe21

Browse files
committed
chore: Update showcase tests
1 parent d1576e5 commit 9aafe21

File tree

6 files changed

+84
-0
lines changed

6 files changed

+84
-0
lines changed

java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public class GrpcComplianceStub extends ComplianceStub {
6262
.setFullMethodName("google.showcase.v1beta1.Compliance/RepeatDataBody")
6363
.setRequestMarshaller(ProtoUtils.marshaller(RepeatRequest.getDefaultInstance()))
6464
.setResponseMarshaller(ProtoUtils.marshaller(RepeatResponse.getDefaultInstance()))
65+
.setSampledToLocalTracing(true)
6566
.build();
6667

6768
private static final MethodDescriptor<RepeatRequest, RepeatResponse>
@@ -71,6 +72,7 @@ public class GrpcComplianceStub extends ComplianceStub {
7172
.setFullMethodName("google.showcase.v1beta1.Compliance/RepeatDataBodyInfo")
7273
.setRequestMarshaller(ProtoUtils.marshaller(RepeatRequest.getDefaultInstance()))
7374
.setResponseMarshaller(ProtoUtils.marshaller(RepeatResponse.getDefaultInstance()))
75+
.setSampledToLocalTracing(true)
7476
.build();
7577

7678
private static final MethodDescriptor<RepeatRequest, RepeatResponse>
@@ -80,6 +82,7 @@ public class GrpcComplianceStub extends ComplianceStub {
8082
.setFullMethodName("google.showcase.v1beta1.Compliance/RepeatDataQuery")
8183
.setRequestMarshaller(ProtoUtils.marshaller(RepeatRequest.getDefaultInstance()))
8284
.setResponseMarshaller(ProtoUtils.marshaller(RepeatResponse.getDefaultInstance()))
85+
.setSampledToLocalTracing(true)
8386
.build();
8487

8588
private static final MethodDescriptor<RepeatRequest, RepeatResponse>
@@ -89,6 +92,7 @@ public class GrpcComplianceStub extends ComplianceStub {
8992
.setFullMethodName("google.showcase.v1beta1.Compliance/RepeatDataSimplePath")
9093
.setRequestMarshaller(ProtoUtils.marshaller(RepeatRequest.getDefaultInstance()))
9194
.setResponseMarshaller(ProtoUtils.marshaller(RepeatResponse.getDefaultInstance()))
95+
.setSampledToLocalTracing(true)
9296
.build();
9397

9498
private static final MethodDescriptor<RepeatRequest, RepeatResponse>
@@ -98,6 +102,7 @@ public class GrpcComplianceStub extends ComplianceStub {
98102
.setFullMethodName("google.showcase.v1beta1.Compliance/RepeatDataPathResource")
99103
.setRequestMarshaller(ProtoUtils.marshaller(RepeatRequest.getDefaultInstance()))
100104
.setResponseMarshaller(ProtoUtils.marshaller(RepeatResponse.getDefaultInstance()))
105+
.setSampledToLocalTracing(true)
101106
.build();
102107

103108
private static final MethodDescriptor<RepeatRequest, RepeatResponse>
@@ -108,6 +113,7 @@ public class GrpcComplianceStub extends ComplianceStub {
108113
"google.showcase.v1beta1.Compliance/RepeatDataPathTrailingResource")
109114
.setRequestMarshaller(ProtoUtils.marshaller(RepeatRequest.getDefaultInstance()))
110115
.setResponseMarshaller(ProtoUtils.marshaller(RepeatResponse.getDefaultInstance()))
116+
.setSampledToLocalTracing(true)
111117
.build();
112118

113119
private static final MethodDescriptor<RepeatRequest, RepeatResponse>
@@ -117,6 +123,7 @@ public class GrpcComplianceStub extends ComplianceStub {
117123
.setFullMethodName("google.showcase.v1beta1.Compliance/RepeatDataBodyPut")
118124
.setRequestMarshaller(ProtoUtils.marshaller(RepeatRequest.getDefaultInstance()))
119125
.setResponseMarshaller(ProtoUtils.marshaller(RepeatResponse.getDefaultInstance()))
126+
.setSampledToLocalTracing(true)
120127
.build();
121128

122129
private static final MethodDescriptor<RepeatRequest, RepeatResponse>
@@ -126,6 +133,7 @@ public class GrpcComplianceStub extends ComplianceStub {
126133
.setFullMethodName("google.showcase.v1beta1.Compliance/RepeatDataBodyPatch")
127134
.setRequestMarshaller(ProtoUtils.marshaller(RepeatRequest.getDefaultInstance()))
128135
.setResponseMarshaller(ProtoUtils.marshaller(RepeatResponse.getDefaultInstance()))
136+
.setSampledToLocalTracing(true)
129137
.build();
130138

131139
private static final MethodDescriptor<EnumRequest, EnumResponse> getEnumMethodDescriptor =
@@ -134,6 +142,7 @@ public class GrpcComplianceStub extends ComplianceStub {
134142
.setFullMethodName("google.showcase.v1beta1.Compliance/GetEnum")
135143
.setRequestMarshaller(ProtoUtils.marshaller(EnumRequest.getDefaultInstance()))
136144
.setResponseMarshaller(ProtoUtils.marshaller(EnumResponse.getDefaultInstance()))
145+
.setSampledToLocalTracing(true)
137146
.build();
138147

139148
private static final MethodDescriptor<EnumResponse, EnumResponse> verifyEnumMethodDescriptor =
@@ -142,6 +151,7 @@ public class GrpcComplianceStub extends ComplianceStub {
142151
.setFullMethodName("google.showcase.v1beta1.Compliance/VerifyEnum")
143152
.setRequestMarshaller(ProtoUtils.marshaller(EnumResponse.getDefaultInstance()))
144153
.setResponseMarshaller(ProtoUtils.marshaller(EnumResponse.getDefaultInstance()))
154+
.setSampledToLocalTracing(true)
145155
.build();
146156

147157
private static final MethodDescriptor<ListLocationsRequest, ListLocationsResponse>
@@ -153,6 +163,7 @@ public class GrpcComplianceStub extends ComplianceStub {
153163
ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
154164
.setResponseMarshaller(
155165
ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
166+
.setSampledToLocalTracing(true)
156167
.build();
157168

158169
private static final MethodDescriptor<GetLocationRequest, Location> getLocationMethodDescriptor =
@@ -161,6 +172,7 @@ public class GrpcComplianceStub extends ComplianceStub {
161172
.setFullMethodName("google.cloud.location.Locations/GetLocation")
162173
.setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
163174
.setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
175+
.setSampledToLocalTracing(true)
164176
.build();
165177

166178
private static final MethodDescriptor<SetIamPolicyRequest, Policy> setIamPolicyMethodDescriptor =
@@ -169,6 +181,7 @@ public class GrpcComplianceStub extends ComplianceStub {
169181
.setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
170182
.setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
171183
.setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
184+
.setSampledToLocalTracing(true)
172185
.build();
173186

174187
private static final MethodDescriptor<GetIamPolicyRequest, Policy> getIamPolicyMethodDescriptor =
@@ -177,6 +190,7 @@ public class GrpcComplianceStub extends ComplianceStub {
177190
.setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
178191
.setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
179192
.setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
193+
.setSampledToLocalTracing(true)
180194
.build();
181195

182196
private static final MethodDescriptor<TestIamPermissionsRequest, TestIamPermissionsResponse>
@@ -188,6 +202,7 @@ public class GrpcComplianceStub extends ComplianceStub {
188202
ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
189203
.setResponseMarshaller(
190204
ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
205+
.setSampledToLocalTracing(true)
191206
.build();
192207

193208
private final UnaryCallable<RepeatRequest, RepeatResponse> repeatDataBodyCallable;

java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public class GrpcEchoStub extends EchoStub {
8383
.setFullMethodName("google.showcase.v1beta1.Echo/Echo")
8484
.setRequestMarshaller(ProtoUtils.marshaller(EchoRequest.getDefaultInstance()))
8585
.setResponseMarshaller(ProtoUtils.marshaller(EchoResponse.getDefaultInstance()))
86+
.setSampledToLocalTracing(true)
8687
.build();
8788

8889
private static final MethodDescriptor<EchoErrorDetailsRequest, EchoErrorDetailsResponse>
@@ -94,6 +95,7 @@ public class GrpcEchoStub extends EchoStub {
9495
ProtoUtils.marshaller(EchoErrorDetailsRequest.getDefaultInstance()))
9596
.setResponseMarshaller(
9697
ProtoUtils.marshaller(EchoErrorDetailsResponse.getDefaultInstance()))
98+
.setSampledToLocalTracing(true)
9799
.build();
98100

99101
private static final MethodDescriptor<FailEchoWithDetailsRequest, FailEchoWithDetailsResponse>
@@ -105,6 +107,7 @@ public class GrpcEchoStub extends EchoStub {
105107
ProtoUtils.marshaller(FailEchoWithDetailsRequest.getDefaultInstance()))
106108
.setResponseMarshaller(
107109
ProtoUtils.marshaller(FailEchoWithDetailsResponse.getDefaultInstance()))
110+
.setSampledToLocalTracing(true)
108111
.build();
109112

110113
private static final MethodDescriptor<ExpandRequest, EchoResponse> expandMethodDescriptor =
@@ -113,6 +116,7 @@ public class GrpcEchoStub extends EchoStub {
113116
.setFullMethodName("google.showcase.v1beta1.Echo/Expand")
114117
.setRequestMarshaller(ProtoUtils.marshaller(ExpandRequest.getDefaultInstance()))
115118
.setResponseMarshaller(ProtoUtils.marshaller(EchoResponse.getDefaultInstance()))
119+
.setSampledToLocalTracing(true)
116120
.build();
117121

118122
private static final MethodDescriptor<EchoRequest, EchoResponse> collectMethodDescriptor =
@@ -121,6 +125,7 @@ public class GrpcEchoStub extends EchoStub {
121125
.setFullMethodName("google.showcase.v1beta1.Echo/Collect")
122126
.setRequestMarshaller(ProtoUtils.marshaller(EchoRequest.getDefaultInstance()))
123127
.setResponseMarshaller(ProtoUtils.marshaller(EchoResponse.getDefaultInstance()))
128+
.setSampledToLocalTracing(true)
124129
.build();
125130

126131
private static final MethodDescriptor<EchoRequest, EchoResponse> chatMethodDescriptor =
@@ -129,6 +134,7 @@ public class GrpcEchoStub extends EchoStub {
129134
.setFullMethodName("google.showcase.v1beta1.Echo/Chat")
130135
.setRequestMarshaller(ProtoUtils.marshaller(EchoRequest.getDefaultInstance()))
131136
.setResponseMarshaller(ProtoUtils.marshaller(EchoResponse.getDefaultInstance()))
137+
.setSampledToLocalTracing(true)
132138
.build();
133139

134140
private static final MethodDescriptor<PagedExpandRequest, PagedExpandResponse>
@@ -139,6 +145,7 @@ public class GrpcEchoStub extends EchoStub {
139145
.setRequestMarshaller(ProtoUtils.marshaller(PagedExpandRequest.getDefaultInstance()))
140146
.setResponseMarshaller(
141147
ProtoUtils.marshaller(PagedExpandResponse.getDefaultInstance()))
148+
.setSampledToLocalTracing(true)
142149
.build();
143150

144151
private static final MethodDescriptor<PagedExpandLegacyRequest, PagedExpandResponse>
@@ -150,6 +157,7 @@ public class GrpcEchoStub extends EchoStub {
150157
ProtoUtils.marshaller(PagedExpandLegacyRequest.getDefaultInstance()))
151158
.setResponseMarshaller(
152159
ProtoUtils.marshaller(PagedExpandResponse.getDefaultInstance()))
160+
.setSampledToLocalTracing(true)
153161
.build();
154162

155163
private static final MethodDescriptor<PagedExpandRequest, PagedExpandLegacyMappedResponse>
@@ -160,6 +168,7 @@ public class GrpcEchoStub extends EchoStub {
160168
.setRequestMarshaller(ProtoUtils.marshaller(PagedExpandRequest.getDefaultInstance()))
161169
.setResponseMarshaller(
162170
ProtoUtils.marshaller(PagedExpandLegacyMappedResponse.getDefaultInstance()))
171+
.setSampledToLocalTracing(true)
163172
.build();
164173

165174
private static final MethodDescriptor<WaitRequest, Operation> waitMethodDescriptor =
@@ -168,6 +177,7 @@ public class GrpcEchoStub extends EchoStub {
168177
.setFullMethodName("google.showcase.v1beta1.Echo/Wait")
169178
.setRequestMarshaller(ProtoUtils.marshaller(WaitRequest.getDefaultInstance()))
170179
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
180+
.setSampledToLocalTracing(true)
171181
.build();
172182

173183
private static final MethodDescriptor<BlockRequest, BlockResponse> blockMethodDescriptor =
@@ -176,6 +186,7 @@ public class GrpcEchoStub extends EchoStub {
176186
.setFullMethodName("google.showcase.v1beta1.Echo/Block")
177187
.setRequestMarshaller(ProtoUtils.marshaller(BlockRequest.getDefaultInstance()))
178188
.setResponseMarshaller(ProtoUtils.marshaller(BlockResponse.getDefaultInstance()))
189+
.setSampledToLocalTracing(true)
179190
.build();
180191

181192
private static final MethodDescriptor<ListLocationsRequest, ListLocationsResponse>
@@ -187,6 +198,7 @@ public class GrpcEchoStub extends EchoStub {
187198
ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
188199
.setResponseMarshaller(
189200
ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
201+
.setSampledToLocalTracing(true)
190202
.build();
191203

192204
private static final MethodDescriptor<GetLocationRequest, Location> getLocationMethodDescriptor =
@@ -195,6 +207,7 @@ public class GrpcEchoStub extends EchoStub {
195207
.setFullMethodName("google.cloud.location.Locations/GetLocation")
196208
.setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
197209
.setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
210+
.setSampledToLocalTracing(true)
198211
.build();
199212

200213
private static final MethodDescriptor<SetIamPolicyRequest, Policy> setIamPolicyMethodDescriptor =
@@ -203,6 +216,7 @@ public class GrpcEchoStub extends EchoStub {
203216
.setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
204217
.setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
205218
.setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
219+
.setSampledToLocalTracing(true)
206220
.build();
207221

208222
private static final MethodDescriptor<GetIamPolicyRequest, Policy> getIamPolicyMethodDescriptor =
@@ -211,6 +225,7 @@ public class GrpcEchoStub extends EchoStub {
211225
.setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
212226
.setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
213227
.setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
228+
.setSampledToLocalTracing(true)
214229
.build();
215230

216231
private static final MethodDescriptor<TestIamPermissionsRequest, TestIamPermissionsResponse>
@@ -222,6 +237,7 @@ public class GrpcEchoStub extends EchoStub {
222237
ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
223238
.setResponseMarshaller(
224239
ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
240+
.setSampledToLocalTracing(true)
225241
.build();
226242

227243
private final UnaryCallable<EchoRequest, EchoResponse> echoCallable;

java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public class GrpcIdentityStub extends IdentityStub {
6666
.setFullMethodName("google.showcase.v1beta1.Identity/CreateUser")
6767
.setRequestMarshaller(ProtoUtils.marshaller(CreateUserRequest.getDefaultInstance()))
6868
.setResponseMarshaller(ProtoUtils.marshaller(User.getDefaultInstance()))
69+
.setSampledToLocalTracing(true)
6970
.build();
7071

7172
private static final MethodDescriptor<GetUserRequest, User> getUserMethodDescriptor =
@@ -74,6 +75,7 @@ public class GrpcIdentityStub extends IdentityStub {
7475
.setFullMethodName("google.showcase.v1beta1.Identity/GetUser")
7576
.setRequestMarshaller(ProtoUtils.marshaller(GetUserRequest.getDefaultInstance()))
7677
.setResponseMarshaller(ProtoUtils.marshaller(User.getDefaultInstance()))
78+
.setSampledToLocalTracing(true)
7779
.build();
7880

7981
private static final MethodDescriptor<UpdateUserRequest, User> updateUserMethodDescriptor =
@@ -82,6 +84,7 @@ public class GrpcIdentityStub extends IdentityStub {
8284
.setFullMethodName("google.showcase.v1beta1.Identity/UpdateUser")
8385
.setRequestMarshaller(ProtoUtils.marshaller(UpdateUserRequest.getDefaultInstance()))
8486
.setResponseMarshaller(ProtoUtils.marshaller(User.getDefaultInstance()))
87+
.setSampledToLocalTracing(true)
8588
.build();
8689

8790
private static final MethodDescriptor<DeleteUserRequest, Empty> deleteUserMethodDescriptor =
@@ -90,6 +93,7 @@ public class GrpcIdentityStub extends IdentityStub {
9093
.setFullMethodName("google.showcase.v1beta1.Identity/DeleteUser")
9194
.setRequestMarshaller(ProtoUtils.marshaller(DeleteUserRequest.getDefaultInstance()))
9295
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
96+
.setSampledToLocalTracing(true)
9397
.build();
9498

9599
private static final MethodDescriptor<ListUsersRequest, ListUsersResponse>
@@ -99,6 +103,7 @@ public class GrpcIdentityStub extends IdentityStub {
99103
.setFullMethodName("google.showcase.v1beta1.Identity/ListUsers")
100104
.setRequestMarshaller(ProtoUtils.marshaller(ListUsersRequest.getDefaultInstance()))
101105
.setResponseMarshaller(ProtoUtils.marshaller(ListUsersResponse.getDefaultInstance()))
106+
.setSampledToLocalTracing(true)
102107
.build();
103108

104109
private static final MethodDescriptor<ListLocationsRequest, ListLocationsResponse>
@@ -110,6 +115,7 @@ public class GrpcIdentityStub extends IdentityStub {
110115
ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
111116
.setResponseMarshaller(
112117
ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
118+
.setSampledToLocalTracing(true)
113119
.build();
114120

115121
private static final MethodDescriptor<GetLocationRequest, Location> getLocationMethodDescriptor =
@@ -118,6 +124,7 @@ public class GrpcIdentityStub extends IdentityStub {
118124
.setFullMethodName("google.cloud.location.Locations/GetLocation")
119125
.setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
120126
.setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
127+
.setSampledToLocalTracing(true)
121128
.build();
122129

123130
private static final MethodDescriptor<SetIamPolicyRequest, Policy> setIamPolicyMethodDescriptor =
@@ -126,6 +133,7 @@ public class GrpcIdentityStub extends IdentityStub {
126133
.setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
127134
.setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
128135
.setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
136+
.setSampledToLocalTracing(true)
129137
.build();
130138

131139
private static final MethodDescriptor<GetIamPolicyRequest, Policy> getIamPolicyMethodDescriptor =
@@ -134,6 +142,7 @@ public class GrpcIdentityStub extends IdentityStub {
134142
.setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
135143
.setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
136144
.setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
145+
.setSampledToLocalTracing(true)
137146
.build();
138147

139148
private static final MethodDescriptor<TestIamPermissionsRequest, TestIamPermissionsResponse>
@@ -145,6 +154,7 @@ public class GrpcIdentityStub extends IdentityStub {
145154
ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
146155
.setResponseMarshaller(
147156
ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
157+
.setSampledToLocalTracing(true)
148158
.build();
149159

150160
private final UnaryCallable<CreateUserRequest, User> createUserCallable;

0 commit comments

Comments
 (0)