
com.google.cloud.dataplex.v1.ContentServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grpc-google-cloud-dataplex-v1 Show documentation
Show all versions of grpc-google-cloud-dataplex-v1 Show documentation
GRPC library for google-cloud-dataplex
/*
* 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;
/**
*
*
*
* ContentService manages Notebook and SQL Scripts for Dataplex.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/cloud/dataplex/v1/content.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ContentServiceGrpc {
private ContentServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "google.cloud.dataplex.v1.ContentService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.CreateContentRequest, com.google.cloud.dataplex.v1.Content>
getCreateContentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateContent",
requestType = com.google.cloud.dataplex.v1.CreateContentRequest.class,
responseType = com.google.cloud.dataplex.v1.Content.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.CreateContentRequest, com.google.cloud.dataplex.v1.Content>
getCreateContentMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.CreateContentRequest, com.google.cloud.dataplex.v1.Content>
getCreateContentMethod;
if ((getCreateContentMethod = ContentServiceGrpc.getCreateContentMethod) == null) {
synchronized (ContentServiceGrpc.class) {
if ((getCreateContentMethod = ContentServiceGrpc.getCreateContentMethod) == null) {
ContentServiceGrpc.getCreateContentMethod =
getCreateContentMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateContent"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dataplex.v1.CreateContentRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dataplex.v1.Content.getDefaultInstance()))
.setSchemaDescriptor(
new ContentServiceMethodDescriptorSupplier("CreateContent"))
.build();
}
}
}
return getCreateContentMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.UpdateContentRequest, com.google.cloud.dataplex.v1.Content>
getUpdateContentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateContent",
requestType = com.google.cloud.dataplex.v1.UpdateContentRequest.class,
responseType = com.google.cloud.dataplex.v1.Content.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.UpdateContentRequest, com.google.cloud.dataplex.v1.Content>
getUpdateContentMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.UpdateContentRequest, com.google.cloud.dataplex.v1.Content>
getUpdateContentMethod;
if ((getUpdateContentMethod = ContentServiceGrpc.getUpdateContentMethod) == null) {
synchronized (ContentServiceGrpc.class) {
if ((getUpdateContentMethod = ContentServiceGrpc.getUpdateContentMethod) == null) {
ContentServiceGrpc.getUpdateContentMethod =
getUpdateContentMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateContent"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dataplex.v1.UpdateContentRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dataplex.v1.Content.getDefaultInstance()))
.setSchemaDescriptor(
new ContentServiceMethodDescriptorSupplier("UpdateContent"))
.build();
}
}
}
return getUpdateContentMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.DeleteContentRequest, com.google.protobuf.Empty>
getDeleteContentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteContent",
requestType = com.google.cloud.dataplex.v1.DeleteContentRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.DeleteContentRequest, com.google.protobuf.Empty>
getDeleteContentMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.DeleteContentRequest, com.google.protobuf.Empty>
getDeleteContentMethod;
if ((getDeleteContentMethod = ContentServiceGrpc.getDeleteContentMethod) == null) {
synchronized (ContentServiceGrpc.class) {
if ((getDeleteContentMethod = ContentServiceGrpc.getDeleteContentMethod) == null) {
ContentServiceGrpc.getDeleteContentMethod =
getDeleteContentMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteContent"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dataplex.v1.DeleteContentRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(
new ContentServiceMethodDescriptorSupplier("DeleteContent"))
.build();
}
}
}
return getDeleteContentMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.GetContentRequest, com.google.cloud.dataplex.v1.Content>
getGetContentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetContent",
requestType = com.google.cloud.dataplex.v1.GetContentRequest.class,
responseType = com.google.cloud.dataplex.v1.Content.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.GetContentRequest, com.google.cloud.dataplex.v1.Content>
getGetContentMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.GetContentRequest, com.google.cloud.dataplex.v1.Content>
getGetContentMethod;
if ((getGetContentMethod = ContentServiceGrpc.getGetContentMethod) == null) {
synchronized (ContentServiceGrpc.class) {
if ((getGetContentMethod = ContentServiceGrpc.getGetContentMethod) == null) {
ContentServiceGrpc.getGetContentMethod =
getGetContentMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContent"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dataplex.v1.GetContentRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dataplex.v1.Content.getDefaultInstance()))
.setSchemaDescriptor(new ContentServiceMethodDescriptorSupplier("GetContent"))
.build();
}
}
}
return getGetContentMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
getGetIamPolicyMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy",
requestType = com.google.iam.v1.GetIamPolicyRequest.class,
responseType = com.google.iam.v1.Policy.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
getGetIamPolicyMethod() {
io.grpc.MethodDescriptor
getGetIamPolicyMethod;
if ((getGetIamPolicyMethod = ContentServiceGrpc.getGetIamPolicyMethod) == null) {
synchronized (ContentServiceGrpc.class) {
if ((getGetIamPolicyMethod = ContentServiceGrpc.getGetIamPolicyMethod) == null) {
ContentServiceGrpc.getGetIamPolicyMethod =
getGetIamPolicyMethod =
io.grpc.MethodDescriptor
.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.iam.v1.Policy.getDefaultInstance()))
.setSchemaDescriptor(
new ContentServiceMethodDescriptorSupplier("GetIamPolicy"))
.build();
}
}
}
return getGetIamPolicyMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
getSetIamPolicyMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy",
requestType = com.google.iam.v1.SetIamPolicyRequest.class,
responseType = com.google.iam.v1.Policy.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
getSetIamPolicyMethod() {
io.grpc.MethodDescriptor
getSetIamPolicyMethod;
if ((getSetIamPolicyMethod = ContentServiceGrpc.getSetIamPolicyMethod) == null) {
synchronized (ContentServiceGrpc.class) {
if ((getSetIamPolicyMethod = ContentServiceGrpc.getSetIamPolicyMethod) == null) {
ContentServiceGrpc.getSetIamPolicyMethod =
getSetIamPolicyMethod =
io.grpc.MethodDescriptor
.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.iam.v1.Policy.getDefaultInstance()))
.setSchemaDescriptor(
new ContentServiceMethodDescriptorSupplier("SetIamPolicy"))
.build();
}
}
}
return getSetIamPolicyMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
getTestIamPermissionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions",
requestType = com.google.iam.v1.TestIamPermissionsRequest.class,
responseType = com.google.iam.v1.TestIamPermissionsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
getTestIamPermissionsMethod() {
io.grpc.MethodDescriptor<
com.google.iam.v1.TestIamPermissionsRequest,
com.google.iam.v1.TestIamPermissionsResponse>
getTestIamPermissionsMethod;
if ((getTestIamPermissionsMethod = ContentServiceGrpc.getTestIamPermissionsMethod) == null) {
synchronized (ContentServiceGrpc.class) {
if ((getTestIamPermissionsMethod = ContentServiceGrpc.getTestIamPermissionsMethod)
== null) {
ContentServiceGrpc.getTestIamPermissionsMethod =
getTestIamPermissionsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance()))
.setSchemaDescriptor(
new ContentServiceMethodDescriptorSupplier("TestIamPermissions"))
.build();
}
}
}
return getTestIamPermissionsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.ListContentRequest,
com.google.cloud.dataplex.v1.ListContentResponse>
getListContentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListContent",
requestType = com.google.cloud.dataplex.v1.ListContentRequest.class,
responseType = com.google.cloud.dataplex.v1.ListContentResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.ListContentRequest,
com.google.cloud.dataplex.v1.ListContentResponse>
getListContentMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dataplex.v1.ListContentRequest,
com.google.cloud.dataplex.v1.ListContentResponse>
getListContentMethod;
if ((getListContentMethod = ContentServiceGrpc.getListContentMethod) == null) {
synchronized (ContentServiceGrpc.class) {
if ((getListContentMethod = ContentServiceGrpc.getListContentMethod) == null) {
ContentServiceGrpc.getListContentMethod =
getListContentMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListContent"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dataplex.v1.ListContentRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dataplex.v1.ListContentResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new ContentServiceMethodDescriptorSupplier("ListContent"))
.build();
}
}
}
return getListContentMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static ContentServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ContentServiceStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ContentServiceStub(channel, callOptions);
}
};
return ContentServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ContentServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ContentServiceBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ContentServiceBlockingStub(channel, callOptions);
}
};
return ContentServiceBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static ContentServiceFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ContentServiceFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ContentServiceFutureStub(channel, callOptions);
}
};
return ContentServiceFutureStub.newStub(factory, channel);
}
/**
*
*
*
* ContentService manages Notebook and SQL Scripts for Dataplex.
*
*/
public interface AsyncService {
/**
*
*
*
* Create a content.
*
*/
default void createContent(
com.google.cloud.dataplex.v1.CreateContentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateContentMethod(), responseObserver);
}
/**
*
*
*
* Update a content. Only supports full resource update.
*
*/
default void updateContent(
com.google.cloud.dataplex.v1.UpdateContentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateContentMethod(), responseObserver);
}
/**
*
*
*
* Delete a content.
*
*/
default void deleteContent(
com.google.cloud.dataplex.v1.DeleteContentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteContentMethod(), responseObserver);
}
/**
*
*
*
* Get a content resource.
*
*/
default void getContent(
com.google.cloud.dataplex.v1.GetContentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContentMethod(), responseObserver);
}
/**
*
*
*
* Gets the access control policy for a contentitem resource. A `NOT_FOUND`
* error is returned if the resource does not exist. An empty policy is
* returned if the resource exists but does not have a policy set on it.
* Caller must have Google IAM `dataplex.content.getIamPolicy` permission
* on the resource.
*
*/
default void getIamPolicy(
com.google.iam.v1.GetIamPolicyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetIamPolicyMethod(), responseObserver);
}
/**
*
*
*
* Sets the access control policy on the specified contentitem resource.
* Replaces any existing policy.
* Caller must have Google IAM `dataplex.content.setIamPolicy` permission
* on the resource.
*
*/
default void setIamPolicy(
com.google.iam.v1.SetIamPolicyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getSetIamPolicyMethod(), responseObserver);
}
/**
*
*
*
* Returns the caller's permissions on a resource.
* If the resource does not exist, an empty set of
* permissions is returned (a `NOT_FOUND` error is not returned).
* A caller is not required to have Google IAM permission to make this
* request.
* Note: This operation is designed to be used for building permission-aware
* UIs and command-line tools, not for authorization checking. This operation
* may "fail open" without warning.
*
*/
default void testIamPermissions(
com.google.iam.v1.TestIamPermissionsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getTestIamPermissionsMethod(), responseObserver);
}
/**
*
*
*
* List content.
*
*/
default void listContent(
com.google.cloud.dataplex.v1.ListContentRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListContentMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service ContentService.
*
*
* ContentService manages Notebook and SQL Scripts for Dataplex.
*
*/
public abstract static class ContentServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return ContentServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service ContentService.
*
*
* ContentService manages Notebook and SQL Scripts for Dataplex.
*
*/
public static final class ContentServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private ContentServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ContentServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ContentServiceStub(channel, callOptions);
}
/**
*
*
*
* Create a content.
*
*/
public void createContent(
com.google.cloud.dataplex.v1.CreateContentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateContentMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Update a content. Only supports full resource update.
*
*/
public void updateContent(
com.google.cloud.dataplex.v1.UpdateContentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateContentMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Delete a content.
*
*/
public void deleteContent(
com.google.cloud.dataplex.v1.DeleteContentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteContentMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Get a content resource.
*
*/
public void getContent(
com.google.cloud.dataplex.v1.GetContentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetContentMethod(), getCallOptions()), request, responseObserver);
}
/**
*
*
*
* Gets the access control policy for a contentitem resource. A `NOT_FOUND`
* error is returned if the resource does not exist. An empty policy is
* returned if the resource exists but does not have a policy set on it.
* Caller must have Google IAM `dataplex.content.getIamPolicy` permission
* on the resource.
*
*/
public void getIamPolicy(
com.google.iam.v1.GetIamPolicyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Sets the access control policy on the specified contentitem resource.
* Replaces any existing policy.
* Caller must have Google IAM `dataplex.content.setIamPolicy` permission
* on the resource.
*
*/
public void setIamPolicy(
com.google.iam.v1.SetIamPolicyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Returns the caller's permissions on a resource.
* If the resource does not exist, an empty set of
* permissions is returned (a `NOT_FOUND` error is not returned).
* A caller is not required to have Google IAM permission to make this
* request.
* Note: This operation is designed to be used for building permission-aware
* UIs and command-line tools, not for authorization checking. This operation
* may "fail open" without warning.
*
*/
public void testIamPermissions(
com.google.iam.v1.TestIamPermissionsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* List content.
*
*/
public void listContent(
com.google.cloud.dataplex.v1.ListContentRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListContentMethod(), getCallOptions()),
request,
responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service ContentService.
*
*
* ContentService manages Notebook and SQL Scripts for Dataplex.
*
*/
public static final class ContentServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private ContentServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ContentServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ContentServiceBlockingStub(channel, callOptions);
}
/**
*
*
*
* Create a content.
*
*/
public com.google.cloud.dataplex.v1.Content createContent(
com.google.cloud.dataplex.v1.CreateContentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateContentMethod(), getCallOptions(), request);
}
/**
*
*
*
* Update a content. Only supports full resource update.
*
*/
public com.google.cloud.dataplex.v1.Content updateContent(
com.google.cloud.dataplex.v1.UpdateContentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateContentMethod(), getCallOptions(), request);
}
/**
*
*
*
* Delete a content.
*
*/
public com.google.protobuf.Empty deleteContent(
com.google.cloud.dataplex.v1.DeleteContentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteContentMethod(), getCallOptions(), request);
}
/**
*
*
*
* Get a content resource.
*
*/
public com.google.cloud.dataplex.v1.Content getContent(
com.google.cloud.dataplex.v1.GetContentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetContentMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets the access control policy for a contentitem resource. A `NOT_FOUND`
* error is returned if the resource does not exist. An empty policy is
* returned if the resource exists but does not have a policy set on it.
* Caller must have Google IAM `dataplex.content.getIamPolicy` permission
* on the resource.
*
*/
public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetIamPolicyMethod(), getCallOptions(), request);
}
/**
*
*
*
* Sets the access control policy on the specified contentitem resource.
* Replaces any existing policy.
* Caller must have Google IAM `dataplex.content.setIamPolicy` permission
* on the resource.
*
*/
public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSetIamPolicyMethod(), getCallOptions(), request);
}
/**
*
*
*
* Returns the caller's permissions on a resource.
* If the resource does not exist, an empty set of
* permissions is returned (a `NOT_FOUND` error is not returned).
* A caller is not required to have Google IAM permission to make this
* request.
* Note: This operation is designed to be used for building permission-aware
* UIs and command-line tools, not for authorization checking. This operation
* may "fail open" without warning.
*
*/
public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(
com.google.iam.v1.TestIamPermissionsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request);
}
/**
*
*
*
* List content.
*
*/
public com.google.cloud.dataplex.v1.ListContentResponse listContent(
com.google.cloud.dataplex.v1.ListContentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListContentMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service ContentService.
*
*
* ContentService manages Notebook and SQL Scripts for Dataplex.
*
*/
public static final class ContentServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private ContentServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ContentServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ContentServiceFutureStub(channel, callOptions);
}
/**
*
*
*
* Create a content.
*
*/
public com.google.common.util.concurrent.ListenableFuture
createContent(com.google.cloud.dataplex.v1.CreateContentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateContentMethod(), getCallOptions()), request);
}
/**
*
*
*
* Update a content. Only supports full resource update.
*
*/
public com.google.common.util.concurrent.ListenableFuture
updateContent(com.google.cloud.dataplex.v1.UpdateContentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateContentMethod(), getCallOptions()), request);
}
/**
*
*
*
* Delete a content.
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteContent(com.google.cloud.dataplex.v1.DeleteContentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteContentMethod(), getCallOptions()), request);
}
/**
*
*
*
* Get a content resource.
*
*/
public com.google.common.util.concurrent.ListenableFuture
getContent(com.google.cloud.dataplex.v1.GetContentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetContentMethod(), getCallOptions()), request);
}
/**
*
*
*
* Gets the access control policy for a contentitem resource. A `NOT_FOUND`
* error is returned if the resource does not exist. An empty policy is
* returned if the resource exists but does not have a policy set on it.
* Caller must have Google IAM `dataplex.content.getIamPolicy` permission
* on the resource.
*
*/
public com.google.common.util.concurrent.ListenableFuture
getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request);
}
/**
*
*
*
* Sets the access control policy on the specified contentitem resource.
* Replaces any existing policy.
* Caller must have Google IAM `dataplex.content.setIamPolicy` permission
* on the resource.
*
*/
public com.google.common.util.concurrent.ListenableFuture
setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request);
}
/**
*
*
*
* Returns the caller's permissions on a resource.
* If the resource does not exist, an empty set of
* permissions is returned (a `NOT_FOUND` error is not returned).
* A caller is not required to have Google IAM permission to make this
* request.
* Note: This operation is designed to be used for building permission-aware
* UIs and command-line tools, not for authorization checking. This operation
* may "fail open" without warning.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request);
}
/**
*
*
*
* List content.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dataplex.v1.ListContentResponse>
listContent(com.google.cloud.dataplex.v1.ListContentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListContentMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_CONTENT = 0;
private static final int METHODID_UPDATE_CONTENT = 1;
private static final int METHODID_DELETE_CONTENT = 2;
private static final int METHODID_GET_CONTENT = 3;
private static final int METHODID_GET_IAM_POLICY = 4;
private static final int METHODID_SET_IAM_POLICY = 5;
private static final int METHODID_TEST_IAM_PERMISSIONS = 6;
private static final int METHODID_LIST_CONTENT = 7;
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_CONTENT:
serviceImpl.createContent(
(com.google.cloud.dataplex.v1.CreateContentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_CONTENT:
serviceImpl.updateContent(
(com.google.cloud.dataplex.v1.UpdateContentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_CONTENT:
serviceImpl.deleteContent(
(com.google.cloud.dataplex.v1.DeleteContentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_CONTENT:
serviceImpl.getContent(
(com.google.cloud.dataplex.v1.GetContentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_IAM_POLICY:
serviceImpl.getIamPolicy(
(com.google.iam.v1.GetIamPolicyRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SET_IAM_POLICY:
serviceImpl.setIamPolicy(
(com.google.iam.v1.SetIamPolicyRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_TEST_IAM_PERMISSIONS:
serviceImpl.testIamPermissions(
(com.google.iam.v1.TestIamPermissionsRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_LIST_CONTENT:
serviceImpl.listContent(
(com.google.cloud.dataplex.v1.ListContentRequest) 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(
getCreateContentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dataplex.v1.CreateContentRequest,
com.google.cloud.dataplex.v1.Content>(service, METHODID_CREATE_CONTENT)))
.addMethod(
getUpdateContentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dataplex.v1.UpdateContentRequest,
com.google.cloud.dataplex.v1.Content>(service, METHODID_UPDATE_CONTENT)))
.addMethod(
getDeleteContentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dataplex.v1.DeleteContentRequest, com.google.protobuf.Empty>(
service, METHODID_DELETE_CONTENT)))
.addMethod(
getGetContentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dataplex.v1.GetContentRequest,
com.google.cloud.dataplex.v1.Content>(service, METHODID_GET_CONTENT)))
.addMethod(
getGetIamPolicyMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers(
service, METHODID_GET_IAM_POLICY)))
.addMethod(
getSetIamPolicyMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers(
service, METHODID_SET_IAM_POLICY)))
.addMethod(
getTestIamPermissionsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.iam.v1.TestIamPermissionsRequest,
com.google.iam.v1.TestIamPermissionsResponse>(
service, METHODID_TEST_IAM_PERMISSIONS)))
.addMethod(
getListContentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dataplex.v1.ListContentRequest,
com.google.cloud.dataplex.v1.ListContentResponse>(
service, METHODID_LIST_CONTENT)))
.build();
}
private abstract static class ContentServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ContentServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.cloud.dataplex.v1.ContentProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("ContentService");
}
}
private static final class ContentServiceFileDescriptorSupplier
extends ContentServiceBaseDescriptorSupplier {
ContentServiceFileDescriptorSupplier() {}
}
private static final class ContentServiceMethodDescriptorSupplier
extends ContentServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
ContentServiceMethodDescriptorSupplier(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 (ContentServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor =
result =
io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ContentServiceFileDescriptorSupplier())
.addMethod(getCreateContentMethod())
.addMethod(getUpdateContentMethod())
.addMethod(getDeleteContentMethod())
.addMethod(getGetContentMethod())
.addMethod(getGetIamPolicyMethod())
.addMethod(getSetIamPolicyMethod())
.addMethod(getTestIamPermissionsMethod())
.addMethod(getListContentMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy