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

com.google.cloud.dataplex.v1.MetadataServiceGrpc Maven / Gradle / Ivy

There is a newer version: 1.54.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.dataplex.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 *
 *
 * 
 * Metadata service manages metadata resources such as tables, filesets and
 * partitions.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dataplex/v1/metadata.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MetadataServiceGrpc { private MetadataServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.dataplex.v1.MetadataService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.CreateEntityRequest, com.google.cloud.dataplex.v1.Entity> getCreateEntityMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateEntity", requestType = com.google.cloud.dataplex.v1.CreateEntityRequest.class, responseType = com.google.cloud.dataplex.v1.Entity.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.CreateEntityRequest, com.google.cloud.dataplex.v1.Entity> getCreateEntityMethod() { io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.CreateEntityRequest, com.google.cloud.dataplex.v1.Entity> getCreateEntityMethod; if ((getCreateEntityMethod = MetadataServiceGrpc.getCreateEntityMethod) == null) { synchronized (MetadataServiceGrpc.class) { if ((getCreateEntityMethod = MetadataServiceGrpc.getCreateEntityMethod) == null) { MetadataServiceGrpc.getCreateEntityMethod = getCreateEntityMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEntity")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.CreateEntityRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.Entity.getDefaultInstance())) .setSchemaDescriptor( new MetadataServiceMethodDescriptorSupplier("CreateEntity")) .build(); } } } return getCreateEntityMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.UpdateEntityRequest, com.google.cloud.dataplex.v1.Entity> getUpdateEntityMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateEntity", requestType = com.google.cloud.dataplex.v1.UpdateEntityRequest.class, responseType = com.google.cloud.dataplex.v1.Entity.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.UpdateEntityRequest, com.google.cloud.dataplex.v1.Entity> getUpdateEntityMethod() { io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.UpdateEntityRequest, com.google.cloud.dataplex.v1.Entity> getUpdateEntityMethod; if ((getUpdateEntityMethod = MetadataServiceGrpc.getUpdateEntityMethod) == null) { synchronized (MetadataServiceGrpc.class) { if ((getUpdateEntityMethod = MetadataServiceGrpc.getUpdateEntityMethod) == null) { MetadataServiceGrpc.getUpdateEntityMethod = getUpdateEntityMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEntity")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.UpdateEntityRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.Entity.getDefaultInstance())) .setSchemaDescriptor( new MetadataServiceMethodDescriptorSupplier("UpdateEntity")) .build(); } } } return getUpdateEntityMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.DeleteEntityRequest, com.google.protobuf.Empty> getDeleteEntityMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteEntity", requestType = com.google.cloud.dataplex.v1.DeleteEntityRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.DeleteEntityRequest, com.google.protobuf.Empty> getDeleteEntityMethod() { io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.DeleteEntityRequest, com.google.protobuf.Empty> getDeleteEntityMethod; if ((getDeleteEntityMethod = MetadataServiceGrpc.getDeleteEntityMethod) == null) { synchronized (MetadataServiceGrpc.class) { if ((getDeleteEntityMethod = MetadataServiceGrpc.getDeleteEntityMethod) == null) { MetadataServiceGrpc.getDeleteEntityMethod = getDeleteEntityMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEntity")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.DeleteEntityRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setSchemaDescriptor( new MetadataServiceMethodDescriptorSupplier("DeleteEntity")) .build(); } } } return getDeleteEntityMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.GetEntityRequest, com.google.cloud.dataplex.v1.Entity> getGetEntityMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetEntity", requestType = com.google.cloud.dataplex.v1.GetEntityRequest.class, responseType = com.google.cloud.dataplex.v1.Entity.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.GetEntityRequest, com.google.cloud.dataplex.v1.Entity> getGetEntityMethod() { io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.GetEntityRequest, com.google.cloud.dataplex.v1.Entity> getGetEntityMethod; if ((getGetEntityMethod = MetadataServiceGrpc.getGetEntityMethod) == null) { synchronized (MetadataServiceGrpc.class) { if ((getGetEntityMethod = MetadataServiceGrpc.getGetEntityMethod) == null) { MetadataServiceGrpc.getGetEntityMethod = getGetEntityMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEntity")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.GetEntityRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.Entity.getDefaultInstance())) .setSchemaDescriptor(new MetadataServiceMethodDescriptorSupplier("GetEntity")) .build(); } } } return getGetEntityMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.ListEntitiesRequest, com.google.cloud.dataplex.v1.ListEntitiesResponse> getListEntitiesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListEntities", requestType = com.google.cloud.dataplex.v1.ListEntitiesRequest.class, responseType = com.google.cloud.dataplex.v1.ListEntitiesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.ListEntitiesRequest, com.google.cloud.dataplex.v1.ListEntitiesResponse> getListEntitiesMethod() { io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.ListEntitiesRequest, com.google.cloud.dataplex.v1.ListEntitiesResponse> getListEntitiesMethod; if ((getListEntitiesMethod = MetadataServiceGrpc.getListEntitiesMethod) == null) { synchronized (MetadataServiceGrpc.class) { if ((getListEntitiesMethod = MetadataServiceGrpc.getListEntitiesMethod) == null) { MetadataServiceGrpc.getListEntitiesMethod = getListEntitiesMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEntities")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.ListEntitiesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.ListEntitiesResponse .getDefaultInstance())) .setSchemaDescriptor( new MetadataServiceMethodDescriptorSupplier("ListEntities")) .build(); } } } return getListEntitiesMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.CreatePartitionRequest, com.google.cloud.dataplex.v1.Partition> getCreatePartitionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreatePartition", requestType = com.google.cloud.dataplex.v1.CreatePartitionRequest.class, responseType = com.google.cloud.dataplex.v1.Partition.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.CreatePartitionRequest, com.google.cloud.dataplex.v1.Partition> getCreatePartitionMethod() { io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.CreatePartitionRequest, com.google.cloud.dataplex.v1.Partition> getCreatePartitionMethod; if ((getCreatePartitionMethod = MetadataServiceGrpc.getCreatePartitionMethod) == null) { synchronized (MetadataServiceGrpc.class) { if ((getCreatePartitionMethod = MetadataServiceGrpc.getCreatePartitionMethod) == null) { MetadataServiceGrpc.getCreatePartitionMethod = getCreatePartitionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePartition")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.CreatePartitionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.Partition.getDefaultInstance())) .setSchemaDescriptor( new MetadataServiceMethodDescriptorSupplier("CreatePartition")) .build(); } } } return getCreatePartitionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.DeletePartitionRequest, com.google.protobuf.Empty> getDeletePartitionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeletePartition", requestType = com.google.cloud.dataplex.v1.DeletePartitionRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.DeletePartitionRequest, com.google.protobuf.Empty> getDeletePartitionMethod() { io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.DeletePartitionRequest, com.google.protobuf.Empty> getDeletePartitionMethod; if ((getDeletePartitionMethod = MetadataServiceGrpc.getDeletePartitionMethod) == null) { synchronized (MetadataServiceGrpc.class) { if ((getDeletePartitionMethod = MetadataServiceGrpc.getDeletePartitionMethod) == null) { MetadataServiceGrpc.getDeletePartitionMethod = getDeletePartitionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePartition")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.DeletePartitionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setSchemaDescriptor( new MetadataServiceMethodDescriptorSupplier("DeletePartition")) .build(); } } } return getDeletePartitionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.GetPartitionRequest, com.google.cloud.dataplex.v1.Partition> getGetPartitionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetPartition", requestType = com.google.cloud.dataplex.v1.GetPartitionRequest.class, responseType = com.google.cloud.dataplex.v1.Partition.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.GetPartitionRequest, com.google.cloud.dataplex.v1.Partition> getGetPartitionMethod() { io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.GetPartitionRequest, com.google.cloud.dataplex.v1.Partition> getGetPartitionMethod; if ((getGetPartitionMethod = MetadataServiceGrpc.getGetPartitionMethod) == null) { synchronized (MetadataServiceGrpc.class) { if ((getGetPartitionMethod = MetadataServiceGrpc.getGetPartitionMethod) == null) { MetadataServiceGrpc.getGetPartitionMethod = getGetPartitionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPartition")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.GetPartitionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.Partition.getDefaultInstance())) .setSchemaDescriptor( new MetadataServiceMethodDescriptorSupplier("GetPartition")) .build(); } } } return getGetPartitionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.ListPartitionsRequest, com.google.cloud.dataplex.v1.ListPartitionsResponse> getListPartitionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListPartitions", requestType = com.google.cloud.dataplex.v1.ListPartitionsRequest.class, responseType = com.google.cloud.dataplex.v1.ListPartitionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.ListPartitionsRequest, com.google.cloud.dataplex.v1.ListPartitionsResponse> getListPartitionsMethod() { io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.ListPartitionsRequest, com.google.cloud.dataplex.v1.ListPartitionsResponse> getListPartitionsMethod; if ((getListPartitionsMethod = MetadataServiceGrpc.getListPartitionsMethod) == null) { synchronized (MetadataServiceGrpc.class) { if ((getListPartitionsMethod = MetadataServiceGrpc.getListPartitionsMethod) == null) { MetadataServiceGrpc.getListPartitionsMethod = getListPartitionsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPartitions")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.ListPartitionsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.ListPartitionsResponse .getDefaultInstance())) .setSchemaDescriptor( new MetadataServiceMethodDescriptorSupplier("ListPartitions")) .build(); } } } return getListPartitionsMethod; } /** Creates a new async stub that supports all call types for the service */ public static MetadataServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MetadataServiceStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MetadataServiceStub(channel, callOptions); } }; return MetadataServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static MetadataServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MetadataServiceBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MetadataServiceBlockingStub(channel, callOptions); } }; return MetadataServiceBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static MetadataServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MetadataServiceFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MetadataServiceFutureStub(channel, callOptions); } }; return MetadataServiceFutureStub.newStub(factory, channel); } /** * * *
   * Metadata service manages metadata resources such as tables, filesets and
   * partitions.
   * 
*/ public interface AsyncService { /** * * *
     * Create a metadata entity.
     * 
*/ default void createEntity( com.google.cloud.dataplex.v1.CreateEntityRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateEntityMethod(), responseObserver); } /** * * *
     * Update a metadata entity. Only supports full resource update.
     * 
*/ default void updateEntity( com.google.cloud.dataplex.v1.UpdateEntityRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateEntityMethod(), responseObserver); } /** * * *
     * Delete a metadata entity.
     * 
*/ default void deleteEntity( com.google.cloud.dataplex.v1.DeleteEntityRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteEntityMethod(), responseObserver); } /** * * *
     * Get a metadata entity.
     * 
*/ default void getEntity( com.google.cloud.dataplex.v1.GetEntityRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEntityMethod(), responseObserver); } /** * * *
     * List metadata entities in a zone.
     * 
*/ default void listEntities( com.google.cloud.dataplex.v1.ListEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListEntitiesMethod(), responseObserver); } /** * * *
     * Create a metadata partition.
     * 
*/ default void createPartition( com.google.cloud.dataplex.v1.CreatePartitionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreatePartitionMethod(), responseObserver); } /** * * *
     * Delete a metadata partition.
     * 
*/ default void deletePartition( com.google.cloud.dataplex.v1.DeletePartitionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeletePartitionMethod(), responseObserver); } /** * * *
     * Get a metadata partition of an entity.
     * 
*/ default void getPartition( com.google.cloud.dataplex.v1.GetPartitionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetPartitionMethod(), responseObserver); } /** * * *
     * List metadata partitions of an entity.
     * 
*/ default void listPartitions( com.google.cloud.dataplex.v1.ListPartitionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListPartitionsMethod(), responseObserver); } } /** * Base class for the server implementation of the service MetadataService. * *
   * Metadata service manages metadata resources such as tables, filesets and
   * partitions.
   * 
*/ public abstract static class MetadataServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return MetadataServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service MetadataService. * *
   * Metadata service manages metadata resources such as tables, filesets and
   * partitions.
   * 
*/ public static final class MetadataServiceStub extends io.grpc.stub.AbstractAsyncStub { private MetadataServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MetadataServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MetadataServiceStub(channel, callOptions); } /** * * *
     * Create a metadata entity.
     * 
*/ public void createEntity( com.google.cloud.dataplex.v1.CreateEntityRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateEntityMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Update a metadata entity. Only supports full resource update.
     * 
*/ public void updateEntity( com.google.cloud.dataplex.v1.UpdateEntityRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateEntityMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Delete a metadata entity.
     * 
*/ public void deleteEntity( com.google.cloud.dataplex.v1.DeleteEntityRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteEntityMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Get a metadata entity.
     * 
*/ public void getEntity( com.google.cloud.dataplex.v1.GetEntityRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetEntityMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * List metadata entities in a zone.
     * 
*/ public void listEntities( com.google.cloud.dataplex.v1.ListEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListEntitiesMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Create a metadata partition.
     * 
*/ public void createPartition( com.google.cloud.dataplex.v1.CreatePartitionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreatePartitionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Delete a metadata partition.
     * 
*/ public void deletePartition( com.google.cloud.dataplex.v1.DeletePartitionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeletePartitionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Get a metadata partition of an entity.
     * 
*/ public void getPartition( com.google.cloud.dataplex.v1.GetPartitionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetPartitionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * List metadata partitions of an entity.
     * 
*/ public void listPartitions( com.google.cloud.dataplex.v1.ListPartitionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListPartitionsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service MetadataService. * *
   * Metadata service manages metadata resources such as tables, filesets and
   * partitions.
   * 
*/ public static final class MetadataServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private MetadataServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MetadataServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MetadataServiceBlockingStub(channel, callOptions); } /** * * *
     * Create a metadata entity.
     * 
*/ public com.google.cloud.dataplex.v1.Entity createEntity( com.google.cloud.dataplex.v1.CreateEntityRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateEntityMethod(), getCallOptions(), request); } /** * * *
     * Update a metadata entity. Only supports full resource update.
     * 
*/ public com.google.cloud.dataplex.v1.Entity updateEntity( com.google.cloud.dataplex.v1.UpdateEntityRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateEntityMethod(), getCallOptions(), request); } /** * * *
     * Delete a metadata entity.
     * 
*/ public com.google.protobuf.Empty deleteEntity( com.google.cloud.dataplex.v1.DeleteEntityRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteEntityMethod(), getCallOptions(), request); } /** * * *
     * Get a metadata entity.
     * 
*/ public com.google.cloud.dataplex.v1.Entity getEntity( com.google.cloud.dataplex.v1.GetEntityRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetEntityMethod(), getCallOptions(), request); } /** * * *
     * List metadata entities in a zone.
     * 
*/ public com.google.cloud.dataplex.v1.ListEntitiesResponse listEntities( com.google.cloud.dataplex.v1.ListEntitiesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListEntitiesMethod(), getCallOptions(), request); } /** * * *
     * Create a metadata partition.
     * 
*/ public com.google.cloud.dataplex.v1.Partition createPartition( com.google.cloud.dataplex.v1.CreatePartitionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreatePartitionMethod(), getCallOptions(), request); } /** * * *
     * Delete a metadata partition.
     * 
*/ public com.google.protobuf.Empty deletePartition( com.google.cloud.dataplex.v1.DeletePartitionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeletePartitionMethod(), getCallOptions(), request); } /** * * *
     * Get a metadata partition of an entity.
     * 
*/ public com.google.cloud.dataplex.v1.Partition getPartition( com.google.cloud.dataplex.v1.GetPartitionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetPartitionMethod(), getCallOptions(), request); } /** * * *
     * List metadata partitions of an entity.
     * 
*/ public com.google.cloud.dataplex.v1.ListPartitionsResponse listPartitions( com.google.cloud.dataplex.v1.ListPartitionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListPartitionsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service MetadataService. * *
   * Metadata service manages metadata resources such as tables, filesets and
   * partitions.
   * 
*/ public static final class MetadataServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private MetadataServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MetadataServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MetadataServiceFutureStub(channel, callOptions); } /** * * *
     * Create a metadata entity.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createEntity(com.google.cloud.dataplex.v1.CreateEntityRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateEntityMethod(), getCallOptions()), request); } /** * * *
     * Update a metadata entity. Only supports full resource update.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateEntity(com.google.cloud.dataplex.v1.UpdateEntityRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateEntityMethod(), getCallOptions()), request); } /** * * *
     * Delete a metadata entity.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteEntity(com.google.cloud.dataplex.v1.DeleteEntityRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteEntityMethod(), getCallOptions()), request); } /** * * *
     * Get a metadata entity.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getEntity(com.google.cloud.dataplex.v1.GetEntityRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetEntityMethod(), getCallOptions()), request); } /** * * *
     * List metadata entities in a zone.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataplex.v1.ListEntitiesResponse> listEntities(com.google.cloud.dataplex.v1.ListEntitiesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListEntitiesMethod(), getCallOptions()), request); } /** * * *
     * Create a metadata partition.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataplex.v1.Partition> createPartition(com.google.cloud.dataplex.v1.CreatePartitionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreatePartitionMethod(), getCallOptions()), request); } /** * * *
     * Delete a metadata partition.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deletePartition(com.google.cloud.dataplex.v1.DeletePartitionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeletePartitionMethod(), getCallOptions()), request); } /** * * *
     * Get a metadata partition of an entity.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataplex.v1.Partition> getPartition(com.google.cloud.dataplex.v1.GetPartitionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetPartitionMethod(), getCallOptions()), request); } /** * * *
     * List metadata partitions of an entity.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataplex.v1.ListPartitionsResponse> listPartitions(com.google.cloud.dataplex.v1.ListPartitionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListPartitionsMethod(), getCallOptions()), request); } } private static final int METHODID_CREATE_ENTITY = 0; private static final int METHODID_UPDATE_ENTITY = 1; private static final int METHODID_DELETE_ENTITY = 2; private static final int METHODID_GET_ENTITY = 3; private static final int METHODID_LIST_ENTITIES = 4; private static final int METHODID_CREATE_PARTITION = 5; private static final int METHODID_DELETE_PARTITION = 6; private static final int METHODID_GET_PARTITION = 7; private static final int METHODID_LIST_PARTITIONS = 8; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_ENTITY: serviceImpl.createEntity( (com.google.cloud.dataplex.v1.CreateEntityRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_ENTITY: serviceImpl.updateEntity( (com.google.cloud.dataplex.v1.UpdateEntityRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_ENTITY: serviceImpl.deleteEntity( (com.google.cloud.dataplex.v1.DeleteEntityRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_ENTITY: serviceImpl.getEntity( (com.google.cloud.dataplex.v1.GetEntityRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_ENTITIES: serviceImpl.listEntities( (com.google.cloud.dataplex.v1.ListEntitiesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_PARTITION: serviceImpl.createPartition( (com.google.cloud.dataplex.v1.CreatePartitionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_PARTITION: serviceImpl.deletePartition( (com.google.cloud.dataplex.v1.DeletePartitionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_PARTITION: serviceImpl.getPartition( (com.google.cloud.dataplex.v1.GetPartitionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_PARTITIONS: serviceImpl.listPartitions( (com.google.cloud.dataplex.v1.ListPartitionsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateEntityMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataplex.v1.CreateEntityRequest, com.google.cloud.dataplex.v1.Entity>(service, METHODID_CREATE_ENTITY))) .addMethod( getUpdateEntityMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataplex.v1.UpdateEntityRequest, com.google.cloud.dataplex.v1.Entity>(service, METHODID_UPDATE_ENTITY))) .addMethod( getDeleteEntityMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataplex.v1.DeleteEntityRequest, com.google.protobuf.Empty>( service, METHODID_DELETE_ENTITY))) .addMethod( getGetEntityMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataplex.v1.GetEntityRequest, com.google.cloud.dataplex.v1.Entity>(service, METHODID_GET_ENTITY))) .addMethod( getListEntitiesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataplex.v1.ListEntitiesRequest, com.google.cloud.dataplex.v1.ListEntitiesResponse>( service, METHODID_LIST_ENTITIES))) .addMethod( getCreatePartitionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataplex.v1.CreatePartitionRequest, com.google.cloud.dataplex.v1.Partition>(service, METHODID_CREATE_PARTITION))) .addMethod( getDeletePartitionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataplex.v1.DeletePartitionRequest, com.google.protobuf.Empty>( service, METHODID_DELETE_PARTITION))) .addMethod( getGetPartitionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataplex.v1.GetPartitionRequest, com.google.cloud.dataplex.v1.Partition>(service, METHODID_GET_PARTITION))) .addMethod( getListPartitionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataplex.v1.ListPartitionsRequest, com.google.cloud.dataplex.v1.ListPartitionsResponse>( service, METHODID_LIST_PARTITIONS))) .build(); } private abstract static class MetadataServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { MetadataServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.dataplex.v1.MetadataProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("MetadataService"); } } private static final class MetadataServiceFileDescriptorSupplier extends MetadataServiceBaseDescriptorSupplier { MetadataServiceFileDescriptorSupplier() {} } private static final class MetadataServiceMethodDescriptorSupplier extends MetadataServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; MetadataServiceMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (MetadataServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MetadataServiceFileDescriptorSupplier()) .addMethod(getCreateEntityMethod()) .addMethod(getUpdateEntityMethod()) .addMethod(getDeleteEntityMethod()) .addMethod(getGetEntityMethod()) .addMethod(getListEntitiesMethod()) .addMethod(getCreatePartitionMethod()) .addMethod(getDeletePartitionMethod()) .addMethod(getGetPartitionMethod()) .addMethod(getListPartitionsMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy