Skip to content

Commit d0bc062

Browse files
yoshi-automationandrey-qlogic
authored andcommitted
---
yaml --- r: 24831 b: refs/heads/autosynth-spanner c: 8ec22d8 h: refs/heads/master i: 24829: 79be393 24827: 72afda1 24823: 59b5d1d 24815: 3c38d89 24799: 66fa98c 24767: 43be236 24703: 75d301b 24575: 54f9cc1
1 parent 8dfb759 commit d0bc062

24 files changed

Lines changed: 188 additions & 5494 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ refs/heads/autosynth-language: e73905aa7672afa47240e65b25c087207f4594f9
137137
refs/heads/autosynth-os-login: 123ba209c5769d0ee067e0ce5848bec13b42a4f4
138138
refs/heads/autosynth-redis: 6bedce4d7c7c6ca6a22e83ad1780e08fdc565a9e
139139
refs/heads/autosynth-scheduler: 57f9fdb1e7de30c85f4ec7198931a07f50603e55
140-
refs/heads/autosynth-spanner: a249d9564d8c27ab4439abc6562d7f3b9b7f655d
140+
refs/heads/autosynth-spanner: 8ec22d8221978381e443c9a58ef47467290d5a04
141141
refs/heads/autosynth-speech: 75d6c62a9d07d3a3642980502a25d07fbde0f232
142142
refs/heads/autosynth-tasks: 5d6a4f686ffef2080506d3b613fc7563a8bba1cb
143143
refs/heads/autosynth-texttospeech: 2dcc5dc22be0f456caa1b6a8a4bcdace2641239c

branches/autosynth-spanner/google-api-grpc/grpc-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerGrpc.java

Lines changed: 11 additions & 207 deletions
Original file line numberDiff line numberDiff line change
@@ -325,61 +325,6 @@ private SpannerGrpc() {}
325325
return getExecuteStreamingSqlMethod;
326326
}
327327

328-
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
329-
@java.lang.Deprecated // Use {@link #getExecuteBatchDmlMethod()} instead.
330-
public static final io.grpc.MethodDescriptor<
331-
com.google.spanner.v1.ExecuteBatchDmlRequest,
332-
com.google.spanner.v1.ExecuteBatchDmlResponse>
333-
METHOD_EXECUTE_BATCH_DML = getExecuteBatchDmlMethodHelper();
334-
335-
private static volatile io.grpc.MethodDescriptor<
336-
com.google.spanner.v1.ExecuteBatchDmlRequest,
337-
com.google.spanner.v1.ExecuteBatchDmlResponse>
338-
getExecuteBatchDmlMethod;
339-
340-
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
341-
public static io.grpc.MethodDescriptor<
342-
com.google.spanner.v1.ExecuteBatchDmlRequest,
343-
com.google.spanner.v1.ExecuteBatchDmlResponse>
344-
getExecuteBatchDmlMethod() {
345-
return getExecuteBatchDmlMethodHelper();
346-
}
347-
348-
private static io.grpc.MethodDescriptor<
349-
com.google.spanner.v1.ExecuteBatchDmlRequest,
350-
com.google.spanner.v1.ExecuteBatchDmlResponse>
351-
getExecuteBatchDmlMethodHelper() {
352-
io.grpc.MethodDescriptor<
353-
com.google.spanner.v1.ExecuteBatchDmlRequest,
354-
com.google.spanner.v1.ExecuteBatchDmlResponse>
355-
getExecuteBatchDmlMethod;
356-
if ((getExecuteBatchDmlMethod = SpannerGrpc.getExecuteBatchDmlMethod) == null) {
357-
synchronized (SpannerGrpc.class) {
358-
if ((getExecuteBatchDmlMethod = SpannerGrpc.getExecuteBatchDmlMethod) == null) {
359-
SpannerGrpc.getExecuteBatchDmlMethod =
360-
getExecuteBatchDmlMethod =
361-
io.grpc.MethodDescriptor
362-
.<com.google.spanner.v1.ExecuteBatchDmlRequest,
363-
com.google.spanner.v1.ExecuteBatchDmlResponse>
364-
newBuilder()
365-
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
366-
.setFullMethodName(
367-
generateFullMethodName("google.spanner.v1.Spanner", "ExecuteBatchDml"))
368-
.setSampledToLocalTracing(true)
369-
.setRequestMarshaller(
370-
io.grpc.protobuf.ProtoUtils.marshaller(
371-
com.google.spanner.v1.ExecuteBatchDmlRequest.getDefaultInstance()))
372-
.setResponseMarshaller(
373-
io.grpc.protobuf.ProtoUtils.marshaller(
374-
com.google.spanner.v1.ExecuteBatchDmlResponse.getDefaultInstance()))
375-
.setSchemaDescriptor(new SpannerMethodDescriptorSupplier("ExecuteBatchDml"))
376-
.build();
377-
}
378-
}
379-
}
380-
return getExecuteBatchDmlMethod;
381-
}
382-
383328
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
384329
@java.lang.Deprecated // Use {@link #getReadMethod()} instead.
385330
public static final io.grpc.MethodDescriptor<
@@ -812,9 +757,7 @@ public void listSessions(
812757
*
813758
*
814759
* <pre>
815-
* Ends a session, releasing server resources associated with it. This will
816-
* asynchronously trigger cancellation of any operations that are running with
817-
* this session.
760+
* Ends a session, releasing server resources associated with it.
818761
* </pre>
819762
*/
820763
public void deleteSession(
@@ -863,35 +806,6 @@ public void executeStreamingSql(
863806
asyncUnimplementedUnaryCall(getExecuteStreamingSqlMethodHelper(), responseObserver);
864807
}
865808

866-
/**
867-
*
868-
*
869-
* <pre>
870-
* Executes a batch of SQL DML statements. This method allows many statements
871-
* to be run with lower latency than submitting them sequentially with
872-
* [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
873-
* Statements are executed in order, sequentially.
874-
* [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse] will contain a
875-
* [ResultSet][google.spanner.v1.ResultSet] for each DML statement that has successfully executed. If a
876-
* statement fails, its error status will be returned as part of the
877-
* [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. Execution will
878-
* stop at the first failed statement; the remaining statements will not run.
879-
* ExecuteBatchDml is expected to return an OK status with a response even if
880-
* there was an error while processing one of the DML statements. Clients must
881-
* inspect response.status to determine if there were any errors while
882-
* processing the request.
883-
* See more details in
884-
* [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest] and
885-
* [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse].
886-
* </pre>
887-
*/
888-
public void executeBatchDml(
889-
com.google.spanner.v1.ExecuteBatchDmlRequest request,
890-
io.grpc.stub.StreamObserver<com.google.spanner.v1.ExecuteBatchDmlResponse>
891-
responseObserver) {
892-
asyncUnimplementedUnaryCall(getExecuteBatchDmlMethodHelper(), responseObserver);
893-
}
894-
895809
/**
896810
*
897811
*
@@ -1077,13 +991,6 @@ public final io.grpc.ServerServiceDefinition bindService() {
1077991
com.google.spanner.v1.ExecuteSqlRequest,
1078992
com.google.spanner.v1.PartialResultSet>(
1079993
this, METHODID_EXECUTE_STREAMING_SQL)))
1080-
.addMethod(
1081-
getExecuteBatchDmlMethodHelper(),
1082-
asyncUnaryCall(
1083-
new MethodHandlers<
1084-
com.google.spanner.v1.ExecuteBatchDmlRequest,
1085-
com.google.spanner.v1.ExecuteBatchDmlResponse>(
1086-
this, METHODID_EXECUTE_BATCH_DML)))
1087994
.addMethod(
1088995
getReadMethodHelper(),
1089996
asyncUnaryCall(
@@ -1222,9 +1129,7 @@ public void listSessions(
12221129
*
12231130
*
12241131
* <pre>
1225-
* Ends a session, releasing server resources associated with it. This will
1226-
* asynchronously trigger cancellation of any operations that are running with
1227-
* this session.
1132+
* Ends a session, releasing server resources associated with it.
12281133
* </pre>
12291134
*/
12301135
public void deleteSession(
@@ -1282,38 +1187,6 @@ public void executeStreamingSql(
12821187
responseObserver);
12831188
}
12841189

1285-
/**
1286-
*
1287-
*
1288-
* <pre>
1289-
* Executes a batch of SQL DML statements. This method allows many statements
1290-
* to be run with lower latency than submitting them sequentially with
1291-
* [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
1292-
* Statements are executed in order, sequentially.
1293-
* [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse] will contain a
1294-
* [ResultSet][google.spanner.v1.ResultSet] for each DML statement that has successfully executed. If a
1295-
* statement fails, its error status will be returned as part of the
1296-
* [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. Execution will
1297-
* stop at the first failed statement; the remaining statements will not run.
1298-
* ExecuteBatchDml is expected to return an OK status with a response even if
1299-
* there was an error while processing one of the DML statements. Clients must
1300-
* inspect response.status to determine if there were any errors while
1301-
* processing the request.
1302-
* See more details in
1303-
* [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest] and
1304-
* [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse].
1305-
* </pre>
1306-
*/
1307-
public void executeBatchDml(
1308-
com.google.spanner.v1.ExecuteBatchDmlRequest request,
1309-
io.grpc.stub.StreamObserver<com.google.spanner.v1.ExecuteBatchDmlResponse>
1310-
responseObserver) {
1311-
asyncUnaryCall(
1312-
getChannel().newCall(getExecuteBatchDmlMethodHelper(), getCallOptions()),
1313-
request,
1314-
responseObserver);
1315-
}
1316-
13171190
/**
13181191
*
13191192
*
@@ -1563,9 +1436,7 @@ public com.google.spanner.v1.ListSessionsResponse listSessions(
15631436
*
15641437
*
15651438
* <pre>
1566-
* Ends a session, releasing server resources associated with it. This will
1567-
* asynchronously trigger cancellation of any operations that are running with
1568-
* this session.
1439+
* Ends a session, releasing server resources associated with it.
15691440
* </pre>
15701441
*/
15711442
public com.google.protobuf.Empty deleteSession(
@@ -1614,34 +1485,6 @@ public java.util.Iterator<com.google.spanner.v1.PartialResultSet> executeStreami
16141485
getChannel(), getExecuteStreamingSqlMethodHelper(), getCallOptions(), request);
16151486
}
16161487

1617-
/**
1618-
*
1619-
*
1620-
* <pre>
1621-
* Executes a batch of SQL DML statements. This method allows many statements
1622-
* to be run with lower latency than submitting them sequentially with
1623-
* [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
1624-
* Statements are executed in order, sequentially.
1625-
* [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse] will contain a
1626-
* [ResultSet][google.spanner.v1.ResultSet] for each DML statement that has successfully executed. If a
1627-
* statement fails, its error status will be returned as part of the
1628-
* [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. Execution will
1629-
* stop at the first failed statement; the remaining statements will not run.
1630-
* ExecuteBatchDml is expected to return an OK status with a response even if
1631-
* there was an error while processing one of the DML statements. Clients must
1632-
* inspect response.status to determine if there were any errors while
1633-
* processing the request.
1634-
* See more details in
1635-
* [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest] and
1636-
* [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse].
1637-
* </pre>
1638-
*/
1639-
public com.google.spanner.v1.ExecuteBatchDmlResponse executeBatchDml(
1640-
com.google.spanner.v1.ExecuteBatchDmlRequest request) {
1641-
return blockingUnaryCall(
1642-
getChannel(), getExecuteBatchDmlMethodHelper(), getCallOptions(), request);
1643-
}
1644-
16451488
/**
16461489
*
16471490
*
@@ -1867,9 +1710,7 @@ protected SpannerFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
18671710
*
18681711
*
18691712
* <pre>
1870-
* Ends a session, releasing server resources associated with it. This will
1871-
* asynchronously trigger cancellation of any operations that are running with
1872-
* this session.
1713+
* Ends a session, releasing server resources associated with it.
18731714
* </pre>
18741715
*/
18751716
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
@@ -1901,35 +1742,6 @@ protected SpannerFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
19011742
getChannel().newCall(getExecuteSqlMethodHelper(), getCallOptions()), request);
19021743
}
19031744

1904-
/**
1905-
*
1906-
*
1907-
* <pre>
1908-
* Executes a batch of SQL DML statements. This method allows many statements
1909-
* to be run with lower latency than submitting them sequentially with
1910-
* [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
1911-
* Statements are executed in order, sequentially.
1912-
* [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse] will contain a
1913-
* [ResultSet][google.spanner.v1.ResultSet] for each DML statement that has successfully executed. If a
1914-
* statement fails, its error status will be returned as part of the
1915-
* [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. Execution will
1916-
* stop at the first failed statement; the remaining statements will not run.
1917-
* ExecuteBatchDml is expected to return an OK status with a response even if
1918-
* there was an error while processing one of the DML statements. Clients must
1919-
* inspect response.status to determine if there were any errors while
1920-
* processing the request.
1921-
* See more details in
1922-
* [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest] and
1923-
* [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse].
1924-
* </pre>
1925-
*/
1926-
public com.google.common.util.concurrent.ListenableFuture<
1927-
com.google.spanner.v1.ExecuteBatchDmlResponse>
1928-
executeBatchDml(com.google.spanner.v1.ExecuteBatchDmlRequest request) {
1929-
return futureUnaryCall(
1930-
getChannel().newCall(getExecuteBatchDmlMethodHelper(), getCallOptions()), request);
1931-
}
1932-
19331745
/**
19341746
*
19351747
*
@@ -2067,14 +1879,13 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Em
20671879
private static final int METHODID_DELETE_SESSION = 3;
20681880
private static final int METHODID_EXECUTE_SQL = 4;
20691881
private static final int METHODID_EXECUTE_STREAMING_SQL = 5;
2070-
private static final int METHODID_EXECUTE_BATCH_DML = 6;
2071-
private static final int METHODID_READ = 7;
2072-
private static final int METHODID_STREAMING_READ = 8;
2073-
private static final int METHODID_BEGIN_TRANSACTION = 9;
2074-
private static final int METHODID_COMMIT = 10;
2075-
private static final int METHODID_ROLLBACK = 11;
2076-
private static final int METHODID_PARTITION_QUERY = 12;
2077-
private static final int METHODID_PARTITION_READ = 13;
1882+
private static final int METHODID_READ = 6;
1883+
private static final int METHODID_STREAMING_READ = 7;
1884+
private static final int METHODID_BEGIN_TRANSACTION = 8;
1885+
private static final int METHODID_COMMIT = 9;
1886+
private static final int METHODID_ROLLBACK = 10;
1887+
private static final int METHODID_PARTITION_QUERY = 11;
1888+
private static final int METHODID_PARTITION_READ = 12;
20781889

20791890
private static final class MethodHandlers<Req, Resp>
20801891
implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
@@ -2125,12 +1936,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserv
21251936
(io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet>)
21261937
responseObserver);
21271938
break;
2128-
case METHODID_EXECUTE_BATCH_DML:
2129-
serviceImpl.executeBatchDml(
2130-
(com.google.spanner.v1.ExecuteBatchDmlRequest) request,
2131-
(io.grpc.stub.StreamObserver<com.google.spanner.v1.ExecuteBatchDmlResponse>)
2132-
responseObserver);
2133-
break;
21341939
case METHODID_READ:
21351940
serviceImpl.read(
21361941
(com.google.spanner.v1.ReadRequest) request,
@@ -2237,7 +2042,6 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
22372042
.addMethod(getDeleteSessionMethodHelper())
22382043
.addMethod(getExecuteSqlMethodHelper())
22392044
.addMethod(getExecuteStreamingSqlMethodHelper())
2240-
.addMethod(getExecuteBatchDmlMethodHelper())
22412045
.addMethod(getReadMethodHelper())
22422046
.addMethod(getStreamingReadMethodHelper())
22432047
.addMethod(getBeginTransactionMethodHelper())

0 commit comments

Comments
 (0)