Skip to content
This repository was archived by the owner on Jul 15, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.longrunning.Operation;
Expand Down Expand Up @@ -90,4 +92,14 @@ OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
return HttpJsonCallableFactory.createOperationCallable(
callSettings, clientContext, operationsStub.longRunningClient(), initialCallable);
}

@Override
public <RequestT, ResponseT>
ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable(
HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings,
ServerStreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return HttpJsonCallableFactory.createServerStreamingCallable(
httpJsonCallSettings, callSettings, clientContext);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public class HttpJsonAcceleratorTypesStub extends AcceleratorTypesStub {
.<AggregatedListAcceleratorTypesRequest, AcceleratorTypeAggregatedList>newBuilder()
.setFullMethodName("google.cloud.compute.v1.AcceleratorTypes/AggregatedList")
.setHttpMethod(HttpMethods.GET)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<AggregatedListAcceleratorTypesRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -120,6 +121,7 @@ public class HttpJsonAcceleratorTypesStub extends AcceleratorTypesStub {
ApiMethodDescriptor.<GetAcceleratorTypeRequest, AcceleratorType>newBuilder()
.setFullMethodName("google.cloud.compute.v1.AcceleratorTypes/Get")
.setHttpMethod(HttpMethods.GET)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<GetAcceleratorTypeRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -155,6 +157,7 @@ public class HttpJsonAcceleratorTypesStub extends AcceleratorTypesStub {
ApiMethodDescriptor.<ListAcceleratorTypesRequest, AcceleratorTypeList>newBuilder()
.setFullMethodName("google.cloud.compute.v1.AcceleratorTypes/List")
.setHttpMethod(HttpMethods.GET)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<ListAcceleratorTypesRequest>newBuilder()
.setPath(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.compute.v1.Operation;
Expand Down Expand Up @@ -89,4 +91,14 @@ OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
return HttpJsonCallableFactory.createOperationCallable(
callSettings, clientContext, operationsStub.longRunningClient(), initialCallable);
}

@Override
public <RequestT, ResponseT>
ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable(
HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings,
ServerStreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return HttpJsonCallableFactory.createServerStreamingCallable(
httpJsonCallSettings, callSettings, clientContext);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public class HttpJsonAddressesStub extends AddressesStub {
ApiMethodDescriptor.<AggregatedListAddressesRequest, AddressAggregatedList>newBuilder()
.setFullMethodName("google.cloud.compute.v1.Addresses/AggregatedList")
.setHttpMethod(HttpMethods.GET)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<AggregatedListAddressesRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -124,6 +125,7 @@ public class HttpJsonAddressesStub extends AddressesStub {
ApiMethodDescriptor.<DeleteAddressRequest, Operation>newBuilder()
.setFullMethodName("google.cloud.compute.v1.Addresses/Delete")
.setHttpMethod(HttpMethods.DELETE)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<DeleteAddressRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -173,6 +175,7 @@ public class HttpJsonAddressesStub extends AddressesStub {
ApiMethodDescriptor.<GetAddressRequest, Address>newBuilder()
.setFullMethodName("google.cloud.compute.v1.Addresses/Get")
.setHttpMethod(HttpMethods.GET)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<GetAddressRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -206,6 +209,7 @@ public class HttpJsonAddressesStub extends AddressesStub {
ApiMethodDescriptor.<InsertAddressRequest, Operation>newBuilder()
.setFullMethodName("google.cloud.compute.v1.Addresses/Insert")
.setHttpMethod(HttpMethods.POST)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<InsertAddressRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -257,6 +261,7 @@ public class HttpJsonAddressesStub extends AddressesStub {
ApiMethodDescriptor.<ListAddressesRequest, AddressList>newBuilder()
.setFullMethodName("google.cloud.compute.v1.Addresses/List")
.setHttpMethod(HttpMethods.GET)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<ListAddressesRequest>newBuilder()
.setPath(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.compute.v1.Operation;
Expand Down Expand Up @@ -89,4 +91,14 @@ OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
return HttpJsonCallableFactory.createOperationCallable(
callSettings, clientContext, operationsStub.longRunningClient(), initialCallable);
}

@Override
public <RequestT, ResponseT>
ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable(
HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings,
ServerStreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return HttpJsonCallableFactory.createServerStreamingCallable(
httpJsonCallSettings, callSettings, clientContext);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public class HttpJsonAutoscalersStub extends AutoscalersStub {
.<AggregatedListAutoscalersRequest, AutoscalerAggregatedList>newBuilder()
.setFullMethodName("google.cloud.compute.v1.Autoscalers/AggregatedList")
.setHttpMethod(HttpMethods.GET)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<AggregatedListAutoscalersRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -129,6 +130,7 @@ public class HttpJsonAutoscalersStub extends AutoscalersStub {
ApiMethodDescriptor.<DeleteAutoscalerRequest, Operation>newBuilder()
.setFullMethodName("google.cloud.compute.v1.Autoscalers/Delete")
.setHttpMethod(HttpMethods.DELETE)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<DeleteAutoscalerRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -178,6 +180,7 @@ public class HttpJsonAutoscalersStub extends AutoscalersStub {
ApiMethodDescriptor.<GetAutoscalerRequest, Autoscaler>newBuilder()
.setFullMethodName("google.cloud.compute.v1.Autoscalers/Get")
.setHttpMethod(HttpMethods.GET)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<GetAutoscalerRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -212,6 +215,7 @@ public class HttpJsonAutoscalersStub extends AutoscalersStub {
ApiMethodDescriptor.<InsertAutoscalerRequest, Operation>newBuilder()
.setFullMethodName("google.cloud.compute.v1.Autoscalers/Insert")
.setHttpMethod(HttpMethods.POST)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<InsertAutoscalerRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -264,6 +268,7 @@ public class HttpJsonAutoscalersStub extends AutoscalersStub {
ApiMethodDescriptor.<ListAutoscalersRequest, AutoscalerList>newBuilder()
.setFullMethodName("google.cloud.compute.v1.Autoscalers/List")
.setHttpMethod(HttpMethods.GET)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<ListAutoscalersRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -316,6 +321,7 @@ public class HttpJsonAutoscalersStub extends AutoscalersStub {
ApiMethodDescriptor.<PatchAutoscalerRequest, Operation>newBuilder()
.setFullMethodName("google.cloud.compute.v1.Autoscalers/Patch")
.setHttpMethod(HttpMethods.PATCH)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<PatchAutoscalerRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -372,6 +378,7 @@ public class HttpJsonAutoscalersStub extends AutoscalersStub {
ApiMethodDescriptor.<UpdateAutoscalerRequest, Operation>newBuilder()
.setFullMethodName("google.cloud.compute.v1.Autoscalers/Update")
.setHttpMethod(HttpMethods.PUT)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<UpdateAutoscalerRequest>newBuilder()
.setPath(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.compute.v1.Operation;
Expand Down Expand Up @@ -89,4 +91,14 @@ OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
return HttpJsonCallableFactory.createOperationCallable(
callSettings, clientContext, operationsStub.longRunningClient(), initialCallable);
}

@Override
public <RequestT, ResponseT>
ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable(
HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings,
ServerStreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return HttpJsonCallableFactory.createServerStreamingCallable(
httpJsonCallSettings, callSettings, clientContext);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub {
ApiMethodDescriptor.<AddSignedUrlKeyBackendBucketRequest, Operation>newBuilder()
.setFullMethodName("google.cloud.compute.v1.BackendBuckets/AddSignedUrlKey")
.setHttpMethod(HttpMethods.POST)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<AddSignedUrlKeyBackendBucketRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -124,6 +125,7 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub {
ApiMethodDescriptor.<DeleteBackendBucketRequest, Operation>newBuilder()
.setFullMethodName("google.cloud.compute.v1.BackendBuckets/Delete")
.setHttpMethod(HttpMethods.DELETE)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<DeleteBackendBucketRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -173,6 +175,7 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub {
ApiMethodDescriptor.<DeleteSignedUrlKeyBackendBucketRequest, Operation>newBuilder()
.setFullMethodName("google.cloud.compute.v1.BackendBuckets/DeleteSignedUrlKey")
.setHttpMethod(HttpMethods.POST)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<DeleteSignedUrlKeyBackendBucketRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -223,6 +226,7 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub {
ApiMethodDescriptor.<GetBackendBucketRequest, BackendBucket>newBuilder()
.setFullMethodName("google.cloud.compute.v1.BackendBuckets/Get")
.setHttpMethod(HttpMethods.GET)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<GetBackendBucketRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -257,6 +261,7 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub {
ApiMethodDescriptor.<InsertBackendBucketRequest, Operation>newBuilder()
.setFullMethodName("google.cloud.compute.v1.BackendBuckets/Insert")
.setHttpMethod(HttpMethods.POST)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<InsertBackendBucketRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -308,6 +313,7 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub {
ApiMethodDescriptor.<ListBackendBucketsRequest, BackendBucketList>newBuilder()
.setFullMethodName("google.cloud.compute.v1.BackendBuckets/List")
.setHttpMethod(HttpMethods.GET)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<ListBackendBucketsRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -359,6 +365,7 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub {
ApiMethodDescriptor.<PatchBackendBucketRequest, Operation>newBuilder()
.setFullMethodName("google.cloud.compute.v1.BackendBuckets/Patch")
.setHttpMethod(HttpMethods.PATCH)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<PatchBackendBucketRequest>newBuilder()
.setPath(
Expand Down Expand Up @@ -412,6 +419,7 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub {
ApiMethodDescriptor.<UpdateBackendBucketRequest, Operation>newBuilder()
.setFullMethodName("google.cloud.compute.v1.BackendBuckets/Update")
.setHttpMethod(HttpMethods.PUT)
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<UpdateBackendBucketRequest>newBuilder()
.setPath(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.compute.v1.Operation;
Expand Down Expand Up @@ -89,4 +91,14 @@ OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
return HttpJsonCallableFactory.createOperationCallable(
callSettings, clientContext, operationsStub.longRunningClient(), initialCallable);
}

@Override
public <RequestT, ResponseT>
ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable(
HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings,
ServerStreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return HttpJsonCallableFactory.createServerStreamingCallable(
httpJsonCallSettings, callSettings, clientContext);
}
}
Loading