123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- syntax = "proto3";
- package google.cloud.contentwarehouse.v1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/contentwarehouse/v1/document_schema.proto";
- import "google/protobuf/empty.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse";
- option java_multiple_files = true;
- option java_outer_classname = "DocumentSchemaServiceProto";
- option java_package = "com.google.cloud.contentwarehouse.v1";
- service DocumentSchemaService {
- option (google.api.default_host) = "contentwarehouse.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc CreateDocumentSchema(CreateDocumentSchemaRequest) returns (DocumentSchema) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*/locations/*}/documentSchemas"
- body: "document_schema"
- };
- option (google.api.method_signature) = "parent,document_schema";
- }
-
-
-
-
-
-
- rpc UpdateDocumentSchema(UpdateDocumentSchemaRequest) returns (DocumentSchema) {
- option (google.api.http) = {
- patch: "/v1/{name=projects/*/locations/*/documentSchemas/*}"
- body: "*"
- };
- option (google.api.method_signature) = "name,document_schema";
- }
-
-
- rpc GetDocumentSchema(GetDocumentSchemaRequest) returns (DocumentSchema) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/documentSchemas/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
-
-
- rpc DeleteDocumentSchema(DeleteDocumentSchemaRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/locations/*/documentSchemas/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListDocumentSchemas(ListDocumentSchemasRequest) returns (ListDocumentSchemasResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*}/documentSchemas"
- };
- option (google.api.method_signature) = "parent";
- }
- }
- message CreateDocumentSchemaRequest {
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "contentwarehouse.googleapis.com/Location"
- }
- ];
-
- DocumentSchema document_schema = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message GetDocumentSchemaRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "contentwarehouse.googleapis.com/DocumentSchema"
- }
- ];
- }
- message UpdateDocumentSchemaRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "contentwarehouse.googleapis.com/DocumentSchema"
- }
- ];
-
- DocumentSchema document_schema = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message DeleteDocumentSchemaRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "contentwarehouse.googleapis.com/DocumentSchema"
- }
- ];
- }
- message ListDocumentSchemasRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "contentwarehouse.googleapis.com/Location"
- }
- ];
-
-
-
-
- int32 page_size = 2;
-
-
-
-
-
- string page_token = 3;
- }
- message ListDocumentSchemasResponse {
-
- repeated DocumentSchema document_schemas = 1;
-
-
- string next_page_token = 2;
- }
|