com.google.cloud.dataplex.v1.stub.HttpJsonDataTaxonomyServiceStub Maven / Gradle / Ivy
Show all versions of google-cloud-dataplex Show documentation
/*
* Copyright 2023 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.
*/
package com.google.cloud.dataplex.v1.stub;
import static com.google.cloud.dataplex.v1.DataTaxonomyServiceClient.ListDataAttributeBindingsPagedResponse;
import static com.google.cloud.dataplex.v1.DataTaxonomyServiceClient.ListDataAttributesPagedResponse;
import static com.google.cloud.dataplex.v1.DataTaxonomyServiceClient.ListDataTaxonomiesPagedResponse;
import static com.google.cloud.dataplex.v1.DataTaxonomyServiceClient.ListLocationsPagedResponse;
import com.google.api.HttpRule;
import com.google.api.core.BetaApi;
import com.google.api.core.InternalApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.httpjson.ApiMethodDescriptor;
import com.google.api.gax.httpjson.HttpJsonCallSettings;
import com.google.api.gax.httpjson.HttpJsonOperationSnapshot;
import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
import com.google.api.gax.httpjson.ProtoMessageRequestFormatter;
import com.google.api.gax.httpjson.ProtoMessageResponseParser;
import com.google.api.gax.httpjson.ProtoRestSerializer;
import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.dataplex.v1.CreateDataAttributeBindingRequest;
import com.google.cloud.dataplex.v1.CreateDataAttributeRequest;
import com.google.cloud.dataplex.v1.CreateDataTaxonomyRequest;
import com.google.cloud.dataplex.v1.DataAttribute;
import com.google.cloud.dataplex.v1.DataAttributeBinding;
import com.google.cloud.dataplex.v1.DataTaxonomy;
import com.google.cloud.dataplex.v1.DeleteDataAttributeBindingRequest;
import com.google.cloud.dataplex.v1.DeleteDataAttributeRequest;
import com.google.cloud.dataplex.v1.DeleteDataTaxonomyRequest;
import com.google.cloud.dataplex.v1.GetDataAttributeBindingRequest;
import com.google.cloud.dataplex.v1.GetDataAttributeRequest;
import com.google.cloud.dataplex.v1.GetDataTaxonomyRequest;
import com.google.cloud.dataplex.v1.ListDataAttributeBindingsRequest;
import com.google.cloud.dataplex.v1.ListDataAttributeBindingsResponse;
import com.google.cloud.dataplex.v1.ListDataAttributesRequest;
import com.google.cloud.dataplex.v1.ListDataAttributesResponse;
import com.google.cloud.dataplex.v1.ListDataTaxonomiesRequest;
import com.google.cloud.dataplex.v1.ListDataTaxonomiesResponse;
import com.google.cloud.dataplex.v1.OperationMetadata;
import com.google.cloud.dataplex.v1.UpdateDataAttributeBindingRequest;
import com.google.cloud.dataplex.v1.UpdateDataAttributeRequest;
import com.google.cloud.dataplex.v1.UpdateDataTaxonomyRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
import com.google.common.collect.ImmutableMap;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import com.google.protobuf.TypeRegistry;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* REST stub implementation for the DataTaxonomyService service API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator-java")
@BetaApi
public class HttpJsonDataTaxonomyServiceStub extends DataTaxonomyServiceStub {
private static final TypeRegistry typeRegistry =
TypeRegistry.newBuilder()
.add(Empty.getDescriptor())
.add(DataAttribute.getDescriptor())
.add(DataAttributeBinding.getDescriptor())
.add(OperationMetadata.getDescriptor())
.add(DataTaxonomy.getDescriptor())
.build();
private static final ApiMethodDescriptor
createDataTaxonomyMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/CreateDataTaxonomy")
.setHttpMethod("POST")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{parent=projects/*/locations/*}/dataTaxonomies",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "parent", request.getParent());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(
fields, "dataTaxonomyId", request.getDataTaxonomyId());
serializer.putQueryParam(
fields, "validateOnly", request.getValidateOnly());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("dataTaxonomy", request.getDataTaxonomy(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(Operation.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.setOperationSnapshotFactory(
(CreateDataTaxonomyRequest request, Operation response) ->
HttpJsonOperationSnapshot.create(response))
.build();
private static final ApiMethodDescriptor
updateDataTaxonomyMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/UpdateDataTaxonomy")
.setHttpMethod("PATCH")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{dataTaxonomy.name=projects/*/locations/*/dataTaxonomies/*}",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(
fields, "dataTaxonomy.name", request.getDataTaxonomy().getName());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
serializer.putQueryParam(
fields, "validateOnly", request.getValidateOnly());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("dataTaxonomy", request.getDataTaxonomy(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(Operation.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.setOperationSnapshotFactory(
(UpdateDataTaxonomyRequest request, Operation response) ->
HttpJsonOperationSnapshot.create(response))
.build();
private static final ApiMethodDescriptor
deleteDataTaxonomyMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/DeleteDataTaxonomy")
.setHttpMethod("DELETE")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{name=projects/*/locations/*/dataTaxonomies/*}",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "name", request.getName());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "etag", request.getEtag());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(Operation.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.setOperationSnapshotFactory(
(DeleteDataTaxonomyRequest request, Operation response) ->
HttpJsonOperationSnapshot.create(response))
.build();
private static final ApiMethodDescriptor
listDataTaxonomiesMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/ListDataTaxonomies")
.setHttpMethod("GET")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{parent=projects/*/locations/*}/dataTaxonomies",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "parent", request.getParent());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "filter", request.getFilter());
serializer.putQueryParam(fields, "orderBy", request.getOrderBy());
serializer.putQueryParam(fields, "pageSize", request.getPageSize());
serializer.putQueryParam(fields, "pageToken", request.getPageToken());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(ListDataTaxonomiesResponse.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.build();
private static final ApiMethodDescriptor
getDataTaxonomyMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/GetDataTaxonomy")
.setHttpMethod("GET")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{name=projects/*/locations/*/dataTaxonomies/*}",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "name", request.getName());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(DataTaxonomy.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.build();
private static final ApiMethodDescriptor
createDataAttributeBindingMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName(
"google.cloud.dataplex.v1.DataTaxonomyService/CreateDataAttributeBinding")
.setHttpMethod("POST")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{parent=projects/*/locations/*}/dataAttributeBindings",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "parent", request.getParent());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(
fields,
"dataAttributeBindingId",
request.getDataAttributeBindingId());
serializer.putQueryParam(
fields, "validateOnly", request.getValidateOnly());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody(
"dataAttributeBinding",
request.getDataAttributeBinding(),
true))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(Operation.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.setOperationSnapshotFactory(
(CreateDataAttributeBindingRequest request, Operation response) ->
HttpJsonOperationSnapshot.create(response))
.build();
private static final ApiMethodDescriptor
updateDataAttributeBindingMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName(
"google.cloud.dataplex.v1.DataTaxonomyService/UpdateDataAttributeBinding")
.setHttpMethod("PATCH")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{dataAttributeBinding.name=projects/*/locations/*/dataAttributeBindings/*}",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(
fields,
"dataAttributeBinding.name",
request.getDataAttributeBinding().getName());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
serializer.putQueryParam(
fields, "validateOnly", request.getValidateOnly());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody(
"dataAttributeBinding",
request.getDataAttributeBinding(),
true))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(Operation.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.setOperationSnapshotFactory(
(UpdateDataAttributeBindingRequest request, Operation response) ->
HttpJsonOperationSnapshot.create(response))
.build();
private static final ApiMethodDescriptor
deleteDataAttributeBindingMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName(
"google.cloud.dataplex.v1.DataTaxonomyService/DeleteDataAttributeBinding")
.setHttpMethod("DELETE")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{name=projects/*/locations/*/dataAttributeBindings/*}",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "name", request.getName());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "etag", request.getEtag());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(Operation.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.setOperationSnapshotFactory(
(DeleteDataAttributeBindingRequest request, Operation response) ->
HttpJsonOperationSnapshot.create(response))
.build();
private static final ApiMethodDescriptor<
ListDataAttributeBindingsRequest, ListDataAttributeBindingsResponse>
listDataAttributeBindingsMethodDescriptor =
ApiMethodDescriptor
.newBuilder()
.setFullMethodName(
"google.cloud.dataplex.v1.DataTaxonomyService/ListDataAttributeBindings")
.setHttpMethod("GET")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{parent=projects/*/locations/*}/dataAttributeBindings",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "parent", request.getParent());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "filter", request.getFilter());
serializer.putQueryParam(fields, "orderBy", request.getOrderBy());
serializer.putQueryParam(fields, "pageSize", request.getPageSize());
serializer.putQueryParam(fields, "pageToken", request.getPageToken());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(ListDataAttributeBindingsResponse.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.build();
private static final ApiMethodDescriptor
getDataAttributeBindingMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName(
"google.cloud.dataplex.v1.DataTaxonomyService/GetDataAttributeBinding")
.setHttpMethod("GET")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{name=projects/*/locations/*/dataAttributeBindings/*}",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "name", request.getName());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(DataAttributeBinding.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.build();
private static final ApiMethodDescriptor
createDataAttributeMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/CreateDataAttribute")
.setHttpMethod("POST")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "parent", request.getParent());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(
fields, "dataAttributeId", request.getDataAttributeId());
serializer.putQueryParam(
fields, "validateOnly", request.getValidateOnly());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("dataAttribute", request.getDataAttribute(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(Operation.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.setOperationSnapshotFactory(
(CreateDataAttributeRequest request, Operation response) ->
HttpJsonOperationSnapshot.create(response))
.build();
private static final ApiMethodDescriptor
updateDataAttributeMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/UpdateDataAttribute")
.setHttpMethod("PATCH")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{dataAttribute.name=projects/*/locations/*/dataTaxonomies/*/attributes/*}",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(
fields, "dataAttribute.name", request.getDataAttribute().getName());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
serializer.putQueryParam(
fields, "validateOnly", request.getValidateOnly());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("dataAttribute", request.getDataAttribute(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(Operation.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.setOperationSnapshotFactory(
(UpdateDataAttributeRequest request, Operation response) ->
HttpJsonOperationSnapshot.create(response))
.build();
private static final ApiMethodDescriptor
deleteDataAttributeMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/DeleteDataAttribute")
.setHttpMethod("DELETE")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "name", request.getName());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "etag", request.getEtag());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(Operation.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.setOperationSnapshotFactory(
(DeleteDataAttributeRequest request, Operation response) ->
HttpJsonOperationSnapshot.create(response))
.build();
private static final ApiMethodDescriptor
listDataAttributesMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/ListDataAttributes")
.setHttpMethod("GET")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "parent", request.getParent());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "filter", request.getFilter());
serializer.putQueryParam(fields, "orderBy", request.getOrderBy());
serializer.putQueryParam(fields, "pageSize", request.getPageSize());
serializer.putQueryParam(fields, "pageToken", request.getPageToken());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(ListDataAttributesResponse.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.build();
private static final ApiMethodDescriptor
getDataAttributeMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/GetDataAttribute")
.setHttpMethod("GET")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "name", request.getName());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(DataAttribute.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.build();
private static final ApiMethodDescriptor
listLocationsMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName("google.cloud.location.Locations/ListLocations")
.setHttpMethod("GET")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{name=projects/*}/locations",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "name", request.getName());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(ListLocationsResponse.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.build();
private static final ApiMethodDescriptor
getLocationMethodDescriptor =
ApiMethodDescriptor.newBuilder()
.setFullMethodName("google.cloud.location.Locations/GetLocation")
.setHttpMethod("GET")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.newBuilder()
.setPath(
"/v1/{name=projects/*/locations/*}",
request -> {
Map fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putPathParam(fields, "name", request.getName());
return fields;
})
.setQueryParamsExtractor(
request -> {
Map> fields = new HashMap<>();
ProtoRestSerializer serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(request -> null)
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
.setDefaultInstance(Location.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.build();
private final UnaryCallable createDataTaxonomyCallable;
private final OperationCallable
createDataTaxonomyOperationCallable;
private final UnaryCallable updateDataTaxonomyCallable;
private final OperationCallable
updateDataTaxonomyOperationCallable;
private final UnaryCallable deleteDataTaxonomyCallable;
private final OperationCallable
deleteDataTaxonomyOperationCallable;
private final UnaryCallable
listDataTaxonomiesCallable;
private final UnaryCallable
listDataTaxonomiesPagedCallable;
private final UnaryCallable getDataTaxonomyCallable;
private final UnaryCallable
createDataAttributeBindingCallable;
private final OperationCallable<
CreateDataAttributeBindingRequest, DataAttributeBinding, OperationMetadata>
createDataAttributeBindingOperationCallable;
private final UnaryCallable
updateDataAttributeBindingCallable;
private final OperationCallable<
UpdateDataAttributeBindingRequest, DataAttributeBinding, OperationMetadata>
updateDataAttributeBindingOperationCallable;
private final UnaryCallable
deleteDataAttributeBindingCallable;
private final OperationCallable
deleteDataAttributeBindingOperationCallable;
private final UnaryCallable
listDataAttributeBindingsCallable;
private final UnaryCallable<
ListDataAttributeBindingsRequest, ListDataAttributeBindingsPagedResponse>
listDataAttributeBindingsPagedCallable;
private final UnaryCallable
getDataAttributeBindingCallable;
private final UnaryCallable createDataAttributeCallable;
private final OperationCallable
createDataAttributeOperationCallable;
private final UnaryCallable updateDataAttributeCallable;
private final OperationCallable
updateDataAttributeOperationCallable;
private final UnaryCallable deleteDataAttributeCallable;
private final OperationCallable
deleteDataAttributeOperationCallable;
private final UnaryCallable
listDataAttributesCallable;
private final UnaryCallable
listDataAttributesPagedCallable;
private final UnaryCallable getDataAttributeCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
private final UnaryCallable getLocationCallable;
private final BackgroundResource backgroundResources;
private final HttpJsonOperationsStub httpJsonOperationsStub;
private final HttpJsonStubCallableFactory callableFactory;
public static final HttpJsonDataTaxonomyServiceStub create(
DataTaxonomyServiceStubSettings settings) throws IOException {
return new HttpJsonDataTaxonomyServiceStub(settings, ClientContext.create(settings));
}
public static final HttpJsonDataTaxonomyServiceStub create(ClientContext clientContext)
throws IOException {
return new HttpJsonDataTaxonomyServiceStub(
DataTaxonomyServiceStubSettings.newHttpJsonBuilder().build(), clientContext);
}
public static final HttpJsonDataTaxonomyServiceStub create(
ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException {
return new HttpJsonDataTaxonomyServiceStub(
DataTaxonomyServiceStubSettings.newHttpJsonBuilder().build(),
clientContext,
callableFactory);
}
/**
* Constructs an instance of HttpJsonDataTaxonomyServiceStub, using the given settings. This is
* protected so that it is easy to make a subclass, but otherwise, the static factory methods
* should be preferred.
*/
protected HttpJsonDataTaxonomyServiceStub(
DataTaxonomyServiceStubSettings settings, ClientContext clientContext) throws IOException {
this(settings, clientContext, new HttpJsonDataTaxonomyServiceCallableFactory());
}
/**
* Constructs an instance of HttpJsonDataTaxonomyServiceStub, using the given settings. This is
* protected so that it is easy to make a subclass, but otherwise, the static factory methods
* should be preferred.
*/
protected HttpJsonDataTaxonomyServiceStub(
DataTaxonomyServiceStubSettings settings,
ClientContext clientContext,
HttpJsonStubCallableFactory callableFactory)
throws IOException {
this.callableFactory = callableFactory;
this.httpJsonOperationsStub =
HttpJsonOperationsStub.create(
clientContext,
callableFactory,
typeRegistry,
ImmutableMap.builder()
.put(
"google.longrunning.Operations.CancelOperation",
HttpRule.newBuilder()
.setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel")
.build())
.put(
"google.longrunning.Operations.DeleteOperation",
HttpRule.newBuilder()
.setDelete("/v1/{name=projects/*/locations/*/operations/*}")
.build())
.put(
"google.longrunning.Operations.GetOperation",
HttpRule.newBuilder()
.setGet("/v1/{name=projects/*/locations/*/operations/*}")
.build())
.put(
"google.longrunning.Operations.ListOperations",
HttpRule.newBuilder()
.setGet("/v1/{name=projects/*/locations/*}/operations")
.build())
.build());
HttpJsonCallSettings createDataTaxonomyTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(createDataTaxonomyMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
HttpJsonCallSettings updateDataTaxonomyTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(updateDataTaxonomyMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(
"data_taxonomy.name", String.valueOf(request.getDataTaxonomy().getName()));
return builder.build();
})
.build();
HttpJsonCallSettings deleteDataTaxonomyTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(deleteDataTaxonomyMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
HttpJsonCallSettings
listDataTaxonomiesTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(listDataTaxonomiesMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
HttpJsonCallSettings getDataTaxonomyTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(getDataTaxonomyMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
HttpJsonCallSettings
createDataAttributeBindingTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(createDataAttributeBindingMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
HttpJsonCallSettings
updateDataAttributeBindingTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(updateDataAttributeBindingMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(
"data_attribute_binding.name",
String.valueOf(request.getDataAttributeBinding().getName()));
return builder.build();
})
.build();
HttpJsonCallSettings
deleteDataAttributeBindingTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(deleteDataAttributeBindingMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
HttpJsonCallSettings
listDataAttributeBindingsTransportSettings =
HttpJsonCallSettings
.newBuilder()
.setMethodDescriptor(listDataAttributeBindingsMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
HttpJsonCallSettings
getDataAttributeBindingTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(getDataAttributeBindingMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
HttpJsonCallSettings
createDataAttributeTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(createDataAttributeMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
HttpJsonCallSettings
updateDataAttributeTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(updateDataAttributeMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(
"data_attribute.name",
String.valueOf(request.getDataAttribute().getName()));
return builder.build();
})
.build();
HttpJsonCallSettings
deleteDataAttributeTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(deleteDataAttributeMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
HttpJsonCallSettings
listDataAttributesTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(listDataAttributesMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
HttpJsonCallSettings getDataAttributeTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(getDataAttributeMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
HttpJsonCallSettings
listLocationsTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
HttpJsonCallSettings getLocationTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(getLocationMethodDescriptor)
.setTypeRegistry(typeRegistry)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
this.createDataTaxonomyCallable =
callableFactory.createUnaryCallable(
createDataTaxonomyTransportSettings,
settings.createDataTaxonomySettings(),
clientContext);
this.createDataTaxonomyOperationCallable =
callableFactory.createOperationCallable(
createDataTaxonomyTransportSettings,
settings.createDataTaxonomyOperationSettings(),
clientContext,
httpJsonOperationsStub);
this.updateDataTaxonomyCallable =
callableFactory.createUnaryCallable(
updateDataTaxonomyTransportSettings,
settings.updateDataTaxonomySettings(),
clientContext);
this.updateDataTaxonomyOperationCallable =
callableFactory.createOperationCallable(
updateDataTaxonomyTransportSettings,
settings.updateDataTaxonomyOperationSettings(),
clientContext,
httpJsonOperationsStub);
this.deleteDataTaxonomyCallable =
callableFactory.createUnaryCallable(
deleteDataTaxonomyTransportSettings,
settings.deleteDataTaxonomySettings(),
clientContext);
this.deleteDataTaxonomyOperationCallable =
callableFactory.createOperationCallable(
deleteDataTaxonomyTransportSettings,
settings.deleteDataTaxonomyOperationSettings(),
clientContext,
httpJsonOperationsStub);
this.listDataTaxonomiesCallable =
callableFactory.createUnaryCallable(
listDataTaxonomiesTransportSettings,
settings.listDataTaxonomiesSettings(),
clientContext);
this.listDataTaxonomiesPagedCallable =
callableFactory.createPagedCallable(
listDataTaxonomiesTransportSettings,
settings.listDataTaxonomiesSettings(),
clientContext);
this.getDataTaxonomyCallable =
callableFactory.createUnaryCallable(
getDataTaxonomyTransportSettings, settings.getDataTaxonomySettings(), clientContext);
this.createDataAttributeBindingCallable =
callableFactory.createUnaryCallable(
createDataAttributeBindingTransportSettings,
settings.createDataAttributeBindingSettings(),
clientContext);
this.createDataAttributeBindingOperationCallable =
callableFactory.createOperationCallable(
createDataAttributeBindingTransportSettings,
settings.createDataAttributeBindingOperationSettings(),
clientContext,
httpJsonOperationsStub);
this.updateDataAttributeBindingCallable =
callableFactory.createUnaryCallable(
updateDataAttributeBindingTransportSettings,
settings.updateDataAttributeBindingSettings(),
clientContext);
this.updateDataAttributeBindingOperationCallable =
callableFactory.createOperationCallable(
updateDataAttributeBindingTransportSettings,
settings.updateDataAttributeBindingOperationSettings(),
clientContext,
httpJsonOperationsStub);
this.deleteDataAttributeBindingCallable =
callableFactory.createUnaryCallable(
deleteDataAttributeBindingTransportSettings,
settings.deleteDataAttributeBindingSettings(),
clientContext);
this.deleteDataAttributeBindingOperationCallable =
callableFactory.createOperationCallable(
deleteDataAttributeBindingTransportSettings,
settings.deleteDataAttributeBindingOperationSettings(),
clientContext,
httpJsonOperationsStub);
this.listDataAttributeBindingsCallable =
callableFactory.createUnaryCallable(
listDataAttributeBindingsTransportSettings,
settings.listDataAttributeBindingsSettings(),
clientContext);
this.listDataAttributeBindingsPagedCallable =
callableFactory.createPagedCallable(
listDataAttributeBindingsTransportSettings,
settings.listDataAttributeBindingsSettings(),
clientContext);
this.getDataAttributeBindingCallable =
callableFactory.createUnaryCallable(
getDataAttributeBindingTransportSettings,
settings.getDataAttributeBindingSettings(),
clientContext);
this.createDataAttributeCallable =
callableFactory.createUnaryCallable(
createDataAttributeTransportSettings,
settings.createDataAttributeSettings(),
clientContext);
this.createDataAttributeOperationCallable =
callableFactory.createOperationCallable(
createDataAttributeTransportSettings,
settings.createDataAttributeOperationSettings(),
clientContext,
httpJsonOperationsStub);
this.updateDataAttributeCallable =
callableFactory.createUnaryCallable(
updateDataAttributeTransportSettings,
settings.updateDataAttributeSettings(),
clientContext);
this.updateDataAttributeOperationCallable =
callableFactory.createOperationCallable(
updateDataAttributeTransportSettings,
settings.updateDataAttributeOperationSettings(),
clientContext,
httpJsonOperationsStub);
this.deleteDataAttributeCallable =
callableFactory.createUnaryCallable(
deleteDataAttributeTransportSettings,
settings.deleteDataAttributeSettings(),
clientContext);
this.deleteDataAttributeOperationCallable =
callableFactory.createOperationCallable(
deleteDataAttributeTransportSettings,
settings.deleteDataAttributeOperationSettings(),
clientContext,
httpJsonOperationsStub);
this.listDataAttributesCallable =
callableFactory.createUnaryCallable(
listDataAttributesTransportSettings,
settings.listDataAttributesSettings(),
clientContext);
this.listDataAttributesPagedCallable =
callableFactory.createPagedCallable(
listDataAttributesTransportSettings,
settings.listDataAttributesSettings(),
clientContext);
this.getDataAttributeCallable =
callableFactory.createUnaryCallable(
getDataAttributeTransportSettings, settings.getDataAttributeSettings(), clientContext);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
this.listLocationsPagedCallable =
callableFactory.createPagedCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
this.getLocationCallable =
callableFactory.createUnaryCallable(
getLocationTransportSettings, settings.getLocationSettings(), clientContext);
this.backgroundResources =
new BackgroundResourceAggregation(clientContext.getBackgroundResources());
}
@InternalApi
public static List getMethodDescriptors() {
List methodDescriptors = new ArrayList<>();
methodDescriptors.add(createDataTaxonomyMethodDescriptor);
methodDescriptors.add(updateDataTaxonomyMethodDescriptor);
methodDescriptors.add(deleteDataTaxonomyMethodDescriptor);
methodDescriptors.add(listDataTaxonomiesMethodDescriptor);
methodDescriptors.add(getDataTaxonomyMethodDescriptor);
methodDescriptors.add(createDataAttributeBindingMethodDescriptor);
methodDescriptors.add(updateDataAttributeBindingMethodDescriptor);
methodDescriptors.add(deleteDataAttributeBindingMethodDescriptor);
methodDescriptors.add(listDataAttributeBindingsMethodDescriptor);
methodDescriptors.add(getDataAttributeBindingMethodDescriptor);
methodDescriptors.add(createDataAttributeMethodDescriptor);
methodDescriptors.add(updateDataAttributeMethodDescriptor);
methodDescriptors.add(deleteDataAttributeMethodDescriptor);
methodDescriptors.add(listDataAttributesMethodDescriptor);
methodDescriptors.add(getDataAttributeMethodDescriptor);
methodDescriptors.add(listLocationsMethodDescriptor);
methodDescriptors.add(getLocationMethodDescriptor);
return methodDescriptors;
}
public HttpJsonOperationsStub getHttpJsonOperationsStub() {
return httpJsonOperationsStub;
}
@Override
public UnaryCallable createDataTaxonomyCallable() {
return createDataTaxonomyCallable;
}
@Override
public OperationCallable
createDataTaxonomyOperationCallable() {
return createDataTaxonomyOperationCallable;
}
@Override
public UnaryCallable updateDataTaxonomyCallable() {
return updateDataTaxonomyCallable;
}
@Override
public OperationCallable
updateDataTaxonomyOperationCallable() {
return updateDataTaxonomyOperationCallable;
}
@Override
public UnaryCallable deleteDataTaxonomyCallable() {
return deleteDataTaxonomyCallable;
}
@Override
public OperationCallable
deleteDataTaxonomyOperationCallable() {
return deleteDataTaxonomyOperationCallable;
}
@Override
public UnaryCallable
listDataTaxonomiesCallable() {
return listDataTaxonomiesCallable;
}
@Override
public UnaryCallable
listDataTaxonomiesPagedCallable() {
return listDataTaxonomiesPagedCallable;
}
@Override
public UnaryCallable getDataTaxonomyCallable() {
return getDataTaxonomyCallable;
}
@Override
public UnaryCallable
createDataAttributeBindingCallable() {
return createDataAttributeBindingCallable;
}
@Override
public OperationCallable<
CreateDataAttributeBindingRequest, DataAttributeBinding, OperationMetadata>
createDataAttributeBindingOperationCallable() {
return createDataAttributeBindingOperationCallable;
}
@Override
public UnaryCallable
updateDataAttributeBindingCallable() {
return updateDataAttributeBindingCallable;
}
@Override
public OperationCallable<
UpdateDataAttributeBindingRequest, DataAttributeBinding, OperationMetadata>
updateDataAttributeBindingOperationCallable() {
return updateDataAttributeBindingOperationCallable;
}
@Override
public UnaryCallable
deleteDataAttributeBindingCallable() {
return deleteDataAttributeBindingCallable;
}
@Override
public OperationCallable
deleteDataAttributeBindingOperationCallable() {
return deleteDataAttributeBindingOperationCallable;
}
@Override
public UnaryCallable
listDataAttributeBindingsCallable() {
return listDataAttributeBindingsCallable;
}
@Override
public UnaryCallable
listDataAttributeBindingsPagedCallable() {
return listDataAttributeBindingsPagedCallable;
}
@Override
public UnaryCallable
getDataAttributeBindingCallable() {
return getDataAttributeBindingCallable;
}
@Override
public UnaryCallable createDataAttributeCallable() {
return createDataAttributeCallable;
}
@Override
public OperationCallable
createDataAttributeOperationCallable() {
return createDataAttributeOperationCallable;
}
@Override
public UnaryCallable updateDataAttributeCallable() {
return updateDataAttributeCallable;
}
@Override
public OperationCallable
updateDataAttributeOperationCallable() {
return updateDataAttributeOperationCallable;
}
@Override
public UnaryCallable deleteDataAttributeCallable() {
return deleteDataAttributeCallable;
}
@Override
public OperationCallable
deleteDataAttributeOperationCallable() {
return deleteDataAttributeOperationCallable;
}
@Override
public UnaryCallable
listDataAttributesCallable() {
return listDataAttributesCallable;
}
@Override
public UnaryCallable
listDataAttributesPagedCallable() {
return listDataAttributesPagedCallable;
}
@Override
public UnaryCallable getDataAttributeCallable() {
return getDataAttributeCallable;
}
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
}
@Override
public UnaryCallable
listLocationsPagedCallable() {
return listLocationsPagedCallable;
}
@Override
public UnaryCallable getLocationCallable() {
return getLocationCallable;
}
@Override
public final void close() {
try {
backgroundResources.close();
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw new IllegalStateException("Failed to close resource", e);
}
}
@Override
public void shutdown() {
backgroundResources.shutdown();
}
@Override
public boolean isShutdown() {
return backgroundResources.isShutdown();
}
@Override
public boolean isTerminated() {
return backgroundResources.isTerminated();
}
@Override
public void shutdownNow() {
backgroundResources.shutdownNow();
}
@Override
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
return backgroundResources.awaitTermination(duration, unit);
}
}