Class DocumentSchemaServiceGrpc.DocumentSchemaServiceBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<DocumentSchemaServiceGrpc.DocumentSchemaServiceBlockingStub>
-
- com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceGrpc.DocumentSchemaServiceBlockingStub
-
- Enclosing class:
- DocumentSchemaServiceGrpc
public static final class DocumentSchemaServiceGrpc.DocumentSchemaServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<DocumentSchemaServiceGrpc.DocumentSchemaServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service DocumentSchemaService.This service lets you manage document schema.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DocumentSchemaServiceGrpc.DocumentSchemaServiceBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
DocumentSchema
createDocumentSchema(CreateDocumentSchemaRequest request)
Creates a document schema.com.google.protobuf.Empty
deleteDocumentSchema(DeleteDocumentSchemaRequest request)
Deletes a document schema.DocumentSchema
getDocumentSchema(GetDocumentSchemaRequest request)
Gets a document schema.ListDocumentSchemasResponse
listDocumentSchemas(ListDocumentSchemasRequest request)
Lists document schemas.DocumentSchema
updateDocumentSchema(UpdateDocumentSchemaRequest request)
Updates a Document Schema.
-
-
-
Method Detail
-
build
protected DocumentSchemaServiceGrpc.DocumentSchemaServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<DocumentSchemaServiceGrpc.DocumentSchemaServiceBlockingStub>
-
createDocumentSchema
public DocumentSchema createDocumentSchema(CreateDocumentSchemaRequest request)
Creates a document schema.
-
updateDocumentSchema
public DocumentSchema updateDocumentSchema(UpdateDocumentSchemaRequest request)
Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the Document Schema is non-empty and does not equal the existing name. Supports only appending new properties, adding new ENUM possible values, and updating the [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled] flag for ENUM possible values. Updating existing properties will result into INVALID_ARGUMENT.
-
getDocumentSchema
public DocumentSchema getDocumentSchema(GetDocumentSchemaRequest request)
Gets a document schema. Returns NOT_FOUND if the document schema does not exist.
-
deleteDocumentSchema
public com.google.protobuf.Empty deleteDocumentSchema(DeleteDocumentSchemaRequest request)
Deletes a document schema. Returns NOT_FOUND if the document schema does not exist. Returns BAD_REQUEST if the document schema has documents depending on it.
-
listDocumentSchemas
public ListDocumentSchemasResponse listDocumentSchemas(ListDocumentSchemasRequest request)
Lists document schemas.
-
-