All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.aiplatform.v1beta1.stub.GrpcMetadataServiceStub Maven / Gradle / Ivy

There is a newer version: 3.55.0
Show newest version
/*
 * Copyright 2024 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.aiplatform.v1beta1.stub;

import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListArtifactsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListContextsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListExecutionsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListLocationsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataSchemasPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataStoresPagedResponse;

import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
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.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest;
import com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse;
import com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest;
import com.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse;
import com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest;
import com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse;
import com.google.cloud.aiplatform.v1beta1.Artifact;
import com.google.cloud.aiplatform.v1beta1.Context;
import com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest;
import com.google.cloud.aiplatform.v1beta1.CreateContextRequest;
import com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest;
import com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest;
import com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteContextRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.Execution;
import com.google.cloud.aiplatform.v1beta1.GetArtifactRequest;
import com.google.cloud.aiplatform.v1beta1.GetContextRequest;
import com.google.cloud.aiplatform.v1beta1.GetExecutionRequest;
import com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest;
import com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest;
import com.google.cloud.aiplatform.v1beta1.LineageSubgraph;
import com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest;
import com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse;
import com.google.cloud.aiplatform.v1beta1.ListContextsRequest;
import com.google.cloud.aiplatform.v1beta1.ListContextsResponse;
import com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest;
import com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse;
import com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest;
import com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse;
import com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest;
import com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse;
import com.google.cloud.aiplatform.v1beta1.MetadataSchema;
import com.google.cloud.aiplatform.v1beta1.MetadataStore;
import com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata;
import com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest;
import com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse;
import com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata;
import com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest;
import com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse;
import com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata;
import com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest;
import com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse;
import com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest;
import com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest;
import com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest;
import com.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest;
import com.google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse;
import com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest;
import com.google.cloud.aiplatform.v1beta1.UpdateContextRequest;
import com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest;
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.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
import com.google.iam.v1.TestIamPermissionsRequest;
import com.google.iam.v1.TestIamPermissionsResponse;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.GrpcOperationsStub;
import com.google.protobuf.Empty;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
 * gRPC stub implementation for the MetadataService service API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @BetaApi @Generated("by gapic-generator-java") public class GrpcMetadataServiceStub extends MetadataServiceStub { private static final MethodDescriptor createMetadataStoreMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.aiplatform.v1beta1.MetadataService/CreateMetadataStore") .setRequestMarshaller( ProtoUtils.marshaller(CreateMetadataStoreRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getMetadataStoreMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/GetMetadataStore") .setRequestMarshaller( ProtoUtils.marshaller(GetMetadataStoreRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(MetadataStore.getDefaultInstance())) .build(); private static final MethodDescriptor listMetadataStoresMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.aiplatform.v1beta1.MetadataService/ListMetadataStores") .setRequestMarshaller( ProtoUtils.marshaller(ListMetadataStoresRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListMetadataStoresResponse.getDefaultInstance())) .build(); private static final MethodDescriptor deleteMetadataStoreMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.aiplatform.v1beta1.MetadataService/DeleteMetadataStore") .setRequestMarshaller( ProtoUtils.marshaller(DeleteMetadataStoreRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor createArtifactMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/CreateArtifact") .setRequestMarshaller( ProtoUtils.marshaller(CreateArtifactRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Artifact.getDefaultInstance())) .build(); private static final MethodDescriptor getArtifactMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/GetArtifact") .setRequestMarshaller(ProtoUtils.marshaller(GetArtifactRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Artifact.getDefaultInstance())) .build(); private static final MethodDescriptor listArtifactsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/ListArtifacts") .setRequestMarshaller( ProtoUtils.marshaller(ListArtifactsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListArtifactsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor updateArtifactMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/UpdateArtifact") .setRequestMarshaller( ProtoUtils.marshaller(UpdateArtifactRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Artifact.getDefaultInstance())) .build(); private static final MethodDescriptor deleteArtifactMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/DeleteArtifact") .setRequestMarshaller( ProtoUtils.marshaller(DeleteArtifactRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor purgeArtifactsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/PurgeArtifacts") .setRequestMarshaller( ProtoUtils.marshaller(PurgeArtifactsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor createContextMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/CreateContext") .setRequestMarshaller( ProtoUtils.marshaller(CreateContextRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Context.getDefaultInstance())) .build(); private static final MethodDescriptor getContextMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/GetContext") .setRequestMarshaller(ProtoUtils.marshaller(GetContextRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Context.getDefaultInstance())) .build(); private static final MethodDescriptor listContextsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/ListContexts") .setRequestMarshaller(ProtoUtils.marshaller(ListContextsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListContextsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor updateContextMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/UpdateContext") .setRequestMarshaller( ProtoUtils.marshaller(UpdateContextRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Context.getDefaultInstance())) .build(); private static final MethodDescriptor deleteContextMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/DeleteContext") .setRequestMarshaller( ProtoUtils.marshaller(DeleteContextRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor purgeContextsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/PurgeContexts") .setRequestMarshaller( ProtoUtils.marshaller(PurgeContextsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> addContextArtifactsAndExecutionsMethodDescriptor = MethodDescriptor . newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.aiplatform.v1beta1.MetadataService/AddContextArtifactsAndExecutions") .setRequestMarshaller( ProtoUtils.marshaller( AddContextArtifactsAndExecutionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller( AddContextArtifactsAndExecutionsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor addContextChildrenMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.aiplatform.v1beta1.MetadataService/AddContextChildren") .setRequestMarshaller( ProtoUtils.marshaller(AddContextChildrenRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(AddContextChildrenResponse.getDefaultInstance())) .build(); private static final MethodDescriptor removeContextChildrenMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.aiplatform.v1beta1.MetadataService/RemoveContextChildren") .setRequestMarshaller( ProtoUtils.marshaller(RemoveContextChildrenRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(RemoveContextChildrenResponse.getDefaultInstance())) .build(); private static final MethodDescriptor queryContextLineageSubgraphMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.aiplatform.v1beta1.MetadataService/QueryContextLineageSubgraph") .setRequestMarshaller( ProtoUtils.marshaller(QueryContextLineageSubgraphRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(LineageSubgraph.getDefaultInstance())) .build(); private static final MethodDescriptor createExecutionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/CreateExecution") .setRequestMarshaller( ProtoUtils.marshaller(CreateExecutionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Execution.getDefaultInstance())) .build(); private static final MethodDescriptor getExecutionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/GetExecution") .setRequestMarshaller(ProtoUtils.marshaller(GetExecutionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Execution.getDefaultInstance())) .build(); private static final MethodDescriptor listExecutionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/ListExecutions") .setRequestMarshaller( ProtoUtils.marshaller(ListExecutionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListExecutionsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor updateExecutionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/UpdateExecution") .setRequestMarshaller( ProtoUtils.marshaller(UpdateExecutionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Execution.getDefaultInstance())) .build(); private static final MethodDescriptor deleteExecutionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/DeleteExecution") .setRequestMarshaller( ProtoUtils.marshaller(DeleteExecutionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor purgeExecutionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/PurgeExecutions") .setRequestMarshaller( ProtoUtils.marshaller(PurgeExecutionsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor addExecutionEventsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.aiplatform.v1beta1.MetadataService/AddExecutionEvents") .setRequestMarshaller( ProtoUtils.marshaller(AddExecutionEventsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(AddExecutionEventsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor queryExecutionInputsAndOutputsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.aiplatform.v1beta1.MetadataService/QueryExecutionInputsAndOutputs") .setRequestMarshaller( ProtoUtils.marshaller(QueryExecutionInputsAndOutputsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(LineageSubgraph.getDefaultInstance())) .build(); private static final MethodDescriptor createMetadataSchemaMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.aiplatform.v1beta1.MetadataService/CreateMetadataSchema") .setRequestMarshaller( ProtoUtils.marshaller(CreateMetadataSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(MetadataSchema.getDefaultInstance())) .build(); private static final MethodDescriptor getMetadataSchemaMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.aiplatform.v1beta1.MetadataService/GetMetadataSchema") .setRequestMarshaller( ProtoUtils.marshaller(GetMetadataSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(MetadataSchema.getDefaultInstance())) .build(); private static final MethodDescriptor listMetadataSchemasMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.aiplatform.v1beta1.MetadataService/ListMetadataSchemas") .setRequestMarshaller( ProtoUtils.marshaller(ListMetadataSchemasRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListMetadataSchemasResponse.getDefaultInstance())) .build(); private static final MethodDescriptor queryArtifactLineageSubgraphMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.aiplatform.v1beta1.MetadataService/QueryArtifactLineageSubgraph") .setRequestMarshaller( ProtoUtils.marshaller(QueryArtifactLineageSubgraphRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(LineageSubgraph.getDefaultInstance())) .build(); private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.location.Locations/ListLocations") .setRequestMarshaller( ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getLocationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.location.Locations/GetLocation") .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) .build(); private static final MethodDescriptor setIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .build(); private static final MethodDescriptor getIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .build(); private static final MethodDescriptor testIamPermissionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") .setRequestMarshaller( ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) .build(); private final UnaryCallable createMetadataStoreCallable; private final OperationCallable< CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata> createMetadataStoreOperationCallable; private final UnaryCallable getMetadataStoreCallable; private final UnaryCallable listMetadataStoresCallable; private final UnaryCallable listMetadataStoresPagedCallable; private final UnaryCallable deleteMetadataStoreCallable; private final OperationCallable< DeleteMetadataStoreRequest, Empty, DeleteMetadataStoreOperationMetadata> deleteMetadataStoreOperationCallable; private final UnaryCallable createArtifactCallable; private final UnaryCallable getArtifactCallable; private final UnaryCallable listArtifactsCallable; private final UnaryCallable listArtifactsPagedCallable; private final UnaryCallable updateArtifactCallable; private final UnaryCallable deleteArtifactCallable; private final OperationCallable deleteArtifactOperationCallable; private final UnaryCallable purgeArtifactsCallable; private final OperationCallable< PurgeArtifactsRequest, PurgeArtifactsResponse, PurgeArtifactsMetadata> purgeArtifactsOperationCallable; private final UnaryCallable createContextCallable; private final UnaryCallable getContextCallable; private final UnaryCallable listContextsCallable; private final UnaryCallable listContextsPagedCallable; private final UnaryCallable updateContextCallable; private final UnaryCallable deleteContextCallable; private final OperationCallable deleteContextOperationCallable; private final UnaryCallable purgeContextsCallable; private final OperationCallable< PurgeContextsRequest, PurgeContextsResponse, PurgeContextsMetadata> purgeContextsOperationCallable; private final UnaryCallable< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> addContextArtifactsAndExecutionsCallable; private final UnaryCallable addContextChildrenCallable; private final UnaryCallable removeContextChildrenCallable; private final UnaryCallable queryContextLineageSubgraphCallable; private final UnaryCallable createExecutionCallable; private final UnaryCallable getExecutionCallable; private final UnaryCallable listExecutionsCallable; private final UnaryCallable listExecutionsPagedCallable; private final UnaryCallable updateExecutionCallable; private final UnaryCallable deleteExecutionCallable; private final OperationCallable deleteExecutionOperationCallable; private final UnaryCallable purgeExecutionsCallable; private final OperationCallable< PurgeExecutionsRequest, PurgeExecutionsResponse, PurgeExecutionsMetadata> purgeExecutionsOperationCallable; private final UnaryCallable addExecutionEventsCallable; private final UnaryCallable queryExecutionInputsAndOutputsCallable; private final UnaryCallable createMetadataSchemaCallable; private final UnaryCallable getMetadataSchemaCallable; private final UnaryCallable listMetadataSchemasCallable; private final UnaryCallable listMetadataSchemasPagedCallable; private final UnaryCallable queryArtifactLineageSubgraphCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; private final UnaryCallable getLocationCallable; private final UnaryCallable setIamPolicyCallable; private final UnaryCallable getIamPolicyCallable; private final UnaryCallable testIamPermissionsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcMetadataServiceStub create(MetadataServiceStubSettings settings) throws IOException { return new GrpcMetadataServiceStub(settings, ClientContext.create(settings)); } public static final GrpcMetadataServiceStub create(ClientContext clientContext) throws IOException { return new GrpcMetadataServiceStub( MetadataServiceStubSettings.newBuilder().build(), clientContext); } public static final GrpcMetadataServiceStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcMetadataServiceStub( MetadataServiceStubSettings.newBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of GrpcMetadataServiceStub, 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 GrpcMetadataServiceStub( MetadataServiceStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcMetadataServiceCallableFactory()); } /** * Constructs an instance of GrpcMetadataServiceStub, 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 GrpcMetadataServiceStub( MetadataServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings createMetadataStoreTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createMetadataStoreMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getMetadataStoreTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getMetadataStoreMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listMetadataStoresTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listMetadataStoresMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteMetadataStoreTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteMetadataStoreMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createArtifactTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createArtifactMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getArtifactTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getArtifactMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listArtifactsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listArtifactsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateArtifactTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateArtifactMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("artifact.name", String.valueOf(request.getArtifact().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteArtifactTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteArtifactMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings purgeArtifactsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(purgeArtifactsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings createContextTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createContextMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getContextTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getContextMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listContextsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listContextsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateContextTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateContextMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("context.name", String.valueOf(request.getContext().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteContextTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteContextMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings purgeContextsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(purgeContextsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> addContextArtifactsAndExecutionsTransportSettings = GrpcCallSettings . newBuilder() .setMethodDescriptor(addContextArtifactsAndExecutionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("context", String.valueOf(request.getContext())); return builder.build(); }) .build(); GrpcCallSettings addContextChildrenTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(addContextChildrenMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("context", String.valueOf(request.getContext())); return builder.build(); }) .build(); GrpcCallSettings removeContextChildrenTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(removeContextChildrenMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("context", String.valueOf(request.getContext())); return builder.build(); }) .build(); GrpcCallSettings queryContextLineageSubgraphTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(queryContextLineageSubgraphMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("context", String.valueOf(request.getContext())); return builder.build(); }) .build(); GrpcCallSettings createExecutionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createExecutionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getExecutionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getExecutionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listExecutionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listExecutionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateExecutionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateExecutionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("execution.name", String.valueOf(request.getExecution().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteExecutionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteExecutionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings purgeExecutionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(purgeExecutionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings addExecutionEventsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(addExecutionEventsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("execution", String.valueOf(request.getExecution())); return builder.build(); }) .build(); GrpcCallSettings queryExecutionInputsAndOutputsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(queryExecutionInputsAndOutputsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("execution", String.valueOf(request.getExecution())); return builder.build(); }) .build(); GrpcCallSettings createMetadataSchemaTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createMetadataSchemaMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getMetadataSchemaTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getMetadataSchemaMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listMetadataSchemasTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listMetadataSchemasMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings queryArtifactLineageSubgraphTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(queryArtifactLineageSubgraphMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("artifact", String.valueOf(request.getArtifact())); return builder.build(); }) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings getLocationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getLocationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) .build(); GrpcCallSettings testIamPermissionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) .build(); this.createMetadataStoreCallable = callableFactory.createUnaryCallable( createMetadataStoreTransportSettings, settings.createMetadataStoreSettings(), clientContext); this.createMetadataStoreOperationCallable = callableFactory.createOperationCallable( createMetadataStoreTransportSettings, settings.createMetadataStoreOperationSettings(), clientContext, operationsStub); this.getMetadataStoreCallable = callableFactory.createUnaryCallable( getMetadataStoreTransportSettings, settings.getMetadataStoreSettings(), clientContext); this.listMetadataStoresCallable = callableFactory.createUnaryCallable( listMetadataStoresTransportSettings, settings.listMetadataStoresSettings(), clientContext); this.listMetadataStoresPagedCallable = callableFactory.createPagedCallable( listMetadataStoresTransportSettings, settings.listMetadataStoresSettings(), clientContext); this.deleteMetadataStoreCallable = callableFactory.createUnaryCallable( deleteMetadataStoreTransportSettings, settings.deleteMetadataStoreSettings(), clientContext); this.deleteMetadataStoreOperationCallable = callableFactory.createOperationCallable( deleteMetadataStoreTransportSettings, settings.deleteMetadataStoreOperationSettings(), clientContext, operationsStub); this.createArtifactCallable = callableFactory.createUnaryCallable( createArtifactTransportSettings, settings.createArtifactSettings(), clientContext); this.getArtifactCallable = callableFactory.createUnaryCallable( getArtifactTransportSettings, settings.getArtifactSettings(), clientContext); this.listArtifactsCallable = callableFactory.createUnaryCallable( listArtifactsTransportSettings, settings.listArtifactsSettings(), clientContext); this.listArtifactsPagedCallable = callableFactory.createPagedCallable( listArtifactsTransportSettings, settings.listArtifactsSettings(), clientContext); this.updateArtifactCallable = callableFactory.createUnaryCallable( updateArtifactTransportSettings, settings.updateArtifactSettings(), clientContext); this.deleteArtifactCallable = callableFactory.createUnaryCallable( deleteArtifactTransportSettings, settings.deleteArtifactSettings(), clientContext); this.deleteArtifactOperationCallable = callableFactory.createOperationCallable( deleteArtifactTransportSettings, settings.deleteArtifactOperationSettings(), clientContext, operationsStub); this.purgeArtifactsCallable = callableFactory.createUnaryCallable( purgeArtifactsTransportSettings, settings.purgeArtifactsSettings(), clientContext); this.purgeArtifactsOperationCallable = callableFactory.createOperationCallable( purgeArtifactsTransportSettings, settings.purgeArtifactsOperationSettings(), clientContext, operationsStub); this.createContextCallable = callableFactory.createUnaryCallable( createContextTransportSettings, settings.createContextSettings(), clientContext); this.getContextCallable = callableFactory.createUnaryCallable( getContextTransportSettings, settings.getContextSettings(), clientContext); this.listContextsCallable = callableFactory.createUnaryCallable( listContextsTransportSettings, settings.listContextsSettings(), clientContext); this.listContextsPagedCallable = callableFactory.createPagedCallable( listContextsTransportSettings, settings.listContextsSettings(), clientContext); this.updateContextCallable = callableFactory.createUnaryCallable( updateContextTransportSettings, settings.updateContextSettings(), clientContext); this.deleteContextCallable = callableFactory.createUnaryCallable( deleteContextTransportSettings, settings.deleteContextSettings(), clientContext); this.deleteContextOperationCallable = callableFactory.createOperationCallable( deleteContextTransportSettings, settings.deleteContextOperationSettings(), clientContext, operationsStub); this.purgeContextsCallable = callableFactory.createUnaryCallable( purgeContextsTransportSettings, settings.purgeContextsSettings(), clientContext); this.purgeContextsOperationCallable = callableFactory.createOperationCallable( purgeContextsTransportSettings, settings.purgeContextsOperationSettings(), clientContext, operationsStub); this.addContextArtifactsAndExecutionsCallable = callableFactory.createUnaryCallable( addContextArtifactsAndExecutionsTransportSettings, settings.addContextArtifactsAndExecutionsSettings(), clientContext); this.addContextChildrenCallable = callableFactory.createUnaryCallable( addContextChildrenTransportSettings, settings.addContextChildrenSettings(), clientContext); this.removeContextChildrenCallable = callableFactory.createUnaryCallable( removeContextChildrenTransportSettings, settings.removeContextChildrenSettings(), clientContext); this.queryContextLineageSubgraphCallable = callableFactory.createUnaryCallable( queryContextLineageSubgraphTransportSettings, settings.queryContextLineageSubgraphSettings(), clientContext); this.createExecutionCallable = callableFactory.createUnaryCallable( createExecutionTransportSettings, settings.createExecutionSettings(), clientContext); this.getExecutionCallable = callableFactory.createUnaryCallable( getExecutionTransportSettings, settings.getExecutionSettings(), clientContext); this.listExecutionsCallable = callableFactory.createUnaryCallable( listExecutionsTransportSettings, settings.listExecutionsSettings(), clientContext); this.listExecutionsPagedCallable = callableFactory.createPagedCallable( listExecutionsTransportSettings, settings.listExecutionsSettings(), clientContext); this.updateExecutionCallable = callableFactory.createUnaryCallable( updateExecutionTransportSettings, settings.updateExecutionSettings(), clientContext); this.deleteExecutionCallable = callableFactory.createUnaryCallable( deleteExecutionTransportSettings, settings.deleteExecutionSettings(), clientContext); this.deleteExecutionOperationCallable = callableFactory.createOperationCallable( deleteExecutionTransportSettings, settings.deleteExecutionOperationSettings(), clientContext, operationsStub); this.purgeExecutionsCallable = callableFactory.createUnaryCallable( purgeExecutionsTransportSettings, settings.purgeExecutionsSettings(), clientContext); this.purgeExecutionsOperationCallable = callableFactory.createOperationCallable( purgeExecutionsTransportSettings, settings.purgeExecutionsOperationSettings(), clientContext, operationsStub); this.addExecutionEventsCallable = callableFactory.createUnaryCallable( addExecutionEventsTransportSettings, settings.addExecutionEventsSettings(), clientContext); this.queryExecutionInputsAndOutputsCallable = callableFactory.createUnaryCallable( queryExecutionInputsAndOutputsTransportSettings, settings.queryExecutionInputsAndOutputsSettings(), clientContext); this.createMetadataSchemaCallable = callableFactory.createUnaryCallable( createMetadataSchemaTransportSettings, settings.createMetadataSchemaSettings(), clientContext); this.getMetadataSchemaCallable = callableFactory.createUnaryCallable( getMetadataSchemaTransportSettings, settings.getMetadataSchemaSettings(), clientContext); this.listMetadataSchemasCallable = callableFactory.createUnaryCallable( listMetadataSchemasTransportSettings, settings.listMetadataSchemasSettings(), clientContext); this.listMetadataSchemasPagedCallable = callableFactory.createPagedCallable( listMetadataSchemasTransportSettings, settings.listMetadataSchemasSettings(), clientContext); this.queryArtifactLineageSubgraphCallable = callableFactory.createUnaryCallable( queryArtifactLineageSubgraphTransportSettings, settings.queryArtifactLineageSubgraphSettings(), 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.setIamPolicyCallable = callableFactory.createUnaryCallable( setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); this.getIamPolicyCallable = callableFactory.createUnaryCallable( getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.testIamPermissionsCallable = callableFactory.createUnaryCallable( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } public GrpcOperationsStub getOperationsStub() { return operationsStub; } @Override public UnaryCallable createMetadataStoreCallable() { return createMetadataStoreCallable; } @Override public OperationCallable< CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata> createMetadataStoreOperationCallable() { return createMetadataStoreOperationCallable; } @Override public UnaryCallable getMetadataStoreCallable() { return getMetadataStoreCallable; } @Override public UnaryCallable listMetadataStoresCallable() { return listMetadataStoresCallable; } @Override public UnaryCallable listMetadataStoresPagedCallable() { return listMetadataStoresPagedCallable; } @Override public UnaryCallable deleteMetadataStoreCallable() { return deleteMetadataStoreCallable; } @Override public OperationCallable deleteMetadataStoreOperationCallable() { return deleteMetadataStoreOperationCallable; } @Override public UnaryCallable createArtifactCallable() { return createArtifactCallable; } @Override public UnaryCallable getArtifactCallable() { return getArtifactCallable; } @Override public UnaryCallable listArtifactsCallable() { return listArtifactsCallable; } @Override public UnaryCallable listArtifactsPagedCallable() { return listArtifactsPagedCallable; } @Override public UnaryCallable updateArtifactCallable() { return updateArtifactCallable; } @Override public UnaryCallable deleteArtifactCallable() { return deleteArtifactCallable; } @Override public OperationCallable deleteArtifactOperationCallable() { return deleteArtifactOperationCallable; } @Override public UnaryCallable purgeArtifactsCallable() { return purgeArtifactsCallable; } @Override public OperationCallable purgeArtifactsOperationCallable() { return purgeArtifactsOperationCallable; } @Override public UnaryCallable createContextCallable() { return createContextCallable; } @Override public UnaryCallable getContextCallable() { return getContextCallable; } @Override public UnaryCallable listContextsCallable() { return listContextsCallable; } @Override public UnaryCallable listContextsPagedCallable() { return listContextsPagedCallable; } @Override public UnaryCallable updateContextCallable() { return updateContextCallable; } @Override public UnaryCallable deleteContextCallable() { return deleteContextCallable; } @Override public OperationCallable deleteContextOperationCallable() { return deleteContextOperationCallable; } @Override public UnaryCallable purgeContextsCallable() { return purgeContextsCallable; } @Override public OperationCallable purgeContextsOperationCallable() { return purgeContextsOperationCallable; } @Override public UnaryCallable< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> addContextArtifactsAndExecutionsCallable() { return addContextArtifactsAndExecutionsCallable; } @Override public UnaryCallable addContextChildrenCallable() { return addContextChildrenCallable; } @Override public UnaryCallable removeContextChildrenCallable() { return removeContextChildrenCallable; } @Override public UnaryCallable queryContextLineageSubgraphCallable() { return queryContextLineageSubgraphCallable; } @Override public UnaryCallable createExecutionCallable() { return createExecutionCallable; } @Override public UnaryCallable getExecutionCallable() { return getExecutionCallable; } @Override public UnaryCallable listExecutionsCallable() { return listExecutionsCallable; } @Override public UnaryCallable listExecutionsPagedCallable() { return listExecutionsPagedCallable; } @Override public UnaryCallable updateExecutionCallable() { return updateExecutionCallable; } @Override public UnaryCallable deleteExecutionCallable() { return deleteExecutionCallable; } @Override public OperationCallable deleteExecutionOperationCallable() { return deleteExecutionOperationCallable; } @Override public UnaryCallable purgeExecutionsCallable() { return purgeExecutionsCallable; } @Override public OperationCallable purgeExecutionsOperationCallable() { return purgeExecutionsOperationCallable; } @Override public UnaryCallable addExecutionEventsCallable() { return addExecutionEventsCallable; } @Override public UnaryCallable queryExecutionInputsAndOutputsCallable() { return queryExecutionInputsAndOutputsCallable; } @Override public UnaryCallable createMetadataSchemaCallable() { return createMetadataSchemaCallable; } @Override public UnaryCallable getMetadataSchemaCallable() { return getMetadataSchemaCallable; } @Override public UnaryCallable listMetadataSchemasCallable() { return listMetadataSchemasCallable; } @Override public UnaryCallable listMetadataSchemasPagedCallable() { return listMetadataSchemasPagedCallable; } @Override public UnaryCallable queryArtifactLineageSubgraphCallable() { return queryArtifactLineageSubgraphCallable; } @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; } @Override public UnaryCallable listLocationsPagedCallable() { return listLocationsPagedCallable; } @Override public UnaryCallable getLocationCallable() { return getLocationCallable; } @Override public UnaryCallable setIamPolicyCallable() { return setIamPolicyCallable; } @Override public UnaryCallable getIamPolicyCallable() { return getIamPolicyCallable; } @Override public UnaryCallable testIamPermissionsCallable() { return testIamPermissionsCallable; } @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); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy