| 1 |
// Copyright 2022 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.26.0 |
| 18 |
// protoc v3.12.2 |
| 19 |
// source: google/cloud/contentwarehouse/v1/ruleset_service.proto |
| 20 |
|
| 21 |
package contentwarehouse |
| 22 |
|
| 23 |
import ( |
| 24 |
context "context" |
| 25 |
reflect "reflect" |
| 26 |
|
| 27 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 28 |
grpc "google.golang.org/grpc" |
| 29 |
codes "google.golang.org/grpc/codes" |
| 30 |
status "google.golang.org/grpc/status" |
| 31 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 32 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 33 |
emptypb "google.golang.org/protobuf/types/known/emptypb" |
| 34 |
) |
| 35 |
|
| 36 |
const ( |
| 37 |
// Verify that this generated code is sufficiently up-to-date. |
| 38 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 39 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 40 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 41 |
) |
| 42 |
|
| 43 |
var File_google_cloud_contentwarehouse_v1_ruleset_service_proto protoreflect.FileDescriptor |
| 44 |
|
| 45 |
var file_google_cloud_contentwarehouse_v1_ruleset_service_proto_rawDesc = []byte{ |
| 46 |
0x0a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, |
| 47 |
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2f, |
| 48 |
0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, |
| 49 |
0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 50 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, |
| 51 |
0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, |
| 52 |
0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, |
| 53 |
0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 54 |
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 55 |
0x6f, 0x1a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, |
| 56 |
0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, |
| 57 |
0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, |
| 58 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, |
| 59 |
0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, |
| 60 |
0x6f, 0x75, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x65, 0x74, 0x5f, |
| 61 |
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, |
| 62 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, |
| 63 |
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, |
| 64 |
0x74, 0x6f, 0x32, 0xf4, 0x07, 0x0a, 0x0e, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x53, 0x65, |
| 65 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xc4, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, |
| 66 |
0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 67 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, |
| 68 |
0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, |
| 69 |
0x65, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, |
| 70 |
0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, |
| 71 |
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, |
| 72 |
0x76, 0x31, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x22, 0x50, 0x82, 0xd3, 0xe4, 0x93, |
| 73 |
0x02, 0x38, 0x22, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, |
| 74 |
0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, |
| 75 |
0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x73, |
| 76 |
0x3a, 0x08, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x74, 0xda, 0x41, 0x0f, 0x70, 0x61, 0x72, |
| 77 |
0x65, 0x6e, 0x74, 0x2c, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x12, 0xa9, 0x01, 0x0a, |
| 78 |
0x0a, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x12, 0x33, 0x2e, 0x67, 0x6f, |
| 79 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, |
| 80 |
0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, |
| 81 |
0x65, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
| 82 |
0x1a, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 83 |
0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, |
| 84 |
0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x22, 0x3b, 0x82, 0xd3, 0xe4, |
| 85 |
0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, |
| 86 |
0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, |
| 87 |
0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x73, 0x2f, 0x2a, |
| 88 |
0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xbb, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, |
| 89 |
0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, |
| 90 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, |
| 91 |
0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, |
| 92 |
0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, |
| 93 |
0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 94 |
0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, |
| 95 |
0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x22, 0x47, 0x82, |
| 96 |
0xd3, 0xe4, 0x93, 0x02, 0x31, 0x32, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, |
| 97 |
0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, |
| 98 |
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x73, |
| 99 |
0x2f, 0x2a, 0x7d, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0d, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x72, 0x75, |
| 100 |
0x6c, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x12, 0x9c, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, |
| 101 |
0x65, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 102 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, |
| 103 |
0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, |
| 104 |
0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
| 105 |
0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, |
| 106 |
0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, |
| 107 |
0x2a, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, |
| 108 |
0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, |
| 109 |
0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, |
| 110 |
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xbc, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x75, |
| 111 |
0x6c, 0x65, 0x53, 0x65, 0x74, 0x73, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 112 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, |
| 113 |
0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x75, |
| 114 |
0x6c, 0x65, 0x53, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, |
| 115 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, |
| 116 |
0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x76, 0x31, |
| 117 |
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, |
| 118 |
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, |
| 119 |
0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, |
| 120 |
0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, |
| 121 |
0x2a, 0x7d, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, |
| 122 |
0x72, 0x65, 0x6e, 0x74, 0x1a, 0x53, 0xca, 0x41, 0x1f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, |
| 123 |
0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 124 |
0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, |
| 125 |
0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, |
| 126 |
0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 127 |
0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x8f, 0x01, 0x0a, 0x24, 0x63, 0x6f, |
| 128 |
0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, |
| 129 |
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, |
| 130 |
0x76, 0x31, 0x42, 0x13, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, |
| 131 |
0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x50, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 132 |
0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, |
| 133 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, |
| 134 |
0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, |
| 135 |
0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x74, 0x65, |
| 136 |
0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, |
| 137 |
0x74, 0x6f, 0x33, |
| 138 |
} |
| 139 |
|
| 140 |
var file_google_cloud_contentwarehouse_v1_ruleset_service_proto_goTypes = []interface{}{ |
| 141 |
(*CreateRuleSetRequest)(nil), // 0: google.cloud.contentwarehouse.v1.CreateRuleSetRequest |
| 142 |
(*GetRuleSetRequest)(nil), // 1: google.cloud.contentwarehouse.v1.GetRuleSetRequest |
| 143 |
(*UpdateRuleSetRequest)(nil), // 2: google.cloud.contentwarehouse.v1.UpdateRuleSetRequest |
| 144 |
(*DeleteRuleSetRequest)(nil), // 3: google.cloud.contentwarehouse.v1.DeleteRuleSetRequest |
| 145 |
(*ListRuleSetsRequest)(nil), // 4: google.cloud.contentwarehouse.v1.ListRuleSetsRequest |
| 146 |
(*RuleSet)(nil), // 5: google.cloud.contentwarehouse.v1.RuleSet |
| 147 |
(*emptypb.Empty)(nil), // 6: google.protobuf.Empty |
| 148 |
(*ListRuleSetsResponse)(nil), // 7: google.cloud.contentwarehouse.v1.ListRuleSetsResponse |
| 149 |
} |
| 150 |
var file_google_cloud_contentwarehouse_v1_ruleset_service_proto_depIdxs = []int32{ |
| 151 |
0, // 0: google.cloud.contentwarehouse.v1.RuleSetService.CreateRuleSet:input_type -> google.cloud.contentwarehouse.v1.CreateRuleSetRequest |
| 152 |
1, // 1: google.cloud.contentwarehouse.v1.RuleSetService.GetRuleSet:input_type -> google.cloud.contentwarehouse.v1.GetRuleSetRequest |
| 153 |
2, // 2: google.cloud.contentwarehouse.v1.RuleSetService.UpdateRuleSet:input_type -> google.cloud.contentwarehouse.v1.UpdateRuleSetRequest |
| 154 |
3, // 3: google.cloud.contentwarehouse.v1.RuleSetService.DeleteRuleSet:input_type -> google.cloud.contentwarehouse.v1.DeleteRuleSetRequest |
| 155 |
4, // 4: google.cloud.contentwarehouse.v1.RuleSetService.ListRuleSets:input_type -> google.cloud.contentwarehouse.v1.ListRuleSetsRequest |
| 156 |
5, // 5: google.cloud.contentwarehouse.v1.RuleSetService.CreateRuleSet:output_type -> google.cloud.contentwarehouse.v1.RuleSet |
| 157 |
5, // 6: google.cloud.contentwarehouse.v1.RuleSetService.GetRuleSet:output_type -> google.cloud.contentwarehouse.v1.RuleSet |
| 158 |
5, // 7: google.cloud.contentwarehouse.v1.RuleSetService.UpdateRuleSet:output_type -> google.cloud.contentwarehouse.v1.RuleSet |
| 159 |
6, // 8: google.cloud.contentwarehouse.v1.RuleSetService.DeleteRuleSet:output_type -> google.protobuf.Empty |
| 160 |
7, // 9: google.cloud.contentwarehouse.v1.RuleSetService.ListRuleSets:output_type -> google.cloud.contentwarehouse.v1.ListRuleSetsResponse |
| 161 |
5, // [5:10] is the sub-list for method output_type |
| 162 |
0, // [0:5] is the sub-list for method input_type |
| 163 |
0, // [0:0] is the sub-list for extension type_name |
| 164 |
0, // [0:0] is the sub-list for extension extendee |
| 165 |
0, // [0:0] is the sub-list for field type_name |
| 166 |
} |
| 167 |
|
| 168 |
func init() { file_google_cloud_contentwarehouse_v1_ruleset_service_proto_init() } |
| 169 |
func file_google_cloud_contentwarehouse_v1_ruleset_service_proto_init() { |
| 170 |
if File_google_cloud_contentwarehouse_v1_ruleset_service_proto != nil { |
| 171 |
return |
| 172 |
} |
| 173 |
file_google_cloud_contentwarehouse_v1_rule_engine_proto_init() |
| 174 |
file_google_cloud_contentwarehouse_v1_ruleset_service_request_proto_init() |
| 175 |
type x struct{} |
| 176 |
out := protoimpl.TypeBuilder{ |
| 177 |
File: protoimpl.DescBuilder{ |
| 178 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 179 |
RawDescriptor: file_google_cloud_contentwarehouse_v1_ruleset_service_proto_rawDesc, |
| 180 |
NumEnums: 0, |
| 181 |
NumMessages: 0, |
| 182 |
NumExtensions: 0, |
| 183 |
NumServices: 1, |
| 184 |
}, |
| 185 |
GoTypes: file_google_cloud_contentwarehouse_v1_ruleset_service_proto_goTypes, |
| 186 |
DependencyIndexes: file_google_cloud_contentwarehouse_v1_ruleset_service_proto_depIdxs, |
| 187 |
}.Build() |
| 188 |
File_google_cloud_contentwarehouse_v1_ruleset_service_proto = out.File |
| 189 |
file_google_cloud_contentwarehouse_v1_ruleset_service_proto_rawDesc = nil |
| 190 |
file_google_cloud_contentwarehouse_v1_ruleset_service_proto_goTypes = nil |
| 191 |
file_google_cloud_contentwarehouse_v1_ruleset_service_proto_depIdxs = nil |
| 192 |
} |
| 193 |
|
| 194 |
// Reference imports to suppress errors if they are not otherwise used. |
| 195 |
var _ context.Context |
| 196 |
var _ grpc.ClientConnInterface |
| 197 |
|
| 198 |
// This is a compile-time assertion to ensure that this generated file |
| 199 |
// is compatible with the grpc package it is being compiled against. |
| 200 |
const _ = grpc.SupportPackageIsVersion6 |
| 201 |
|
| 202 |
// RuleSetServiceClient is the client API for RuleSetService service. |
| 203 |
// |
| 204 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 205 |
type RuleSetServiceClient interface { |
| 206 |
// Creates a ruleset. |
| 207 |
CreateRuleSet(ctx context.Context, in *CreateRuleSetRequest, opts ...grpc.CallOption) (*RuleSet, error) |
| 208 |
// Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist. |
| 209 |
GetRuleSet(ctx context.Context, in *GetRuleSetRequest, opts ...grpc.CallOption) (*RuleSet, error) |
| 210 |
// Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset |
| 211 |
// is non-empty and does not equal the existing name. |
| 212 |
UpdateRuleSet(ctx context.Context, in *UpdateRuleSetRequest, opts ...grpc.CallOption) (*RuleSet, error) |
| 213 |
// Deletes a ruleset. Returns NOT_FOUND if the document does not exist. |
| 214 |
DeleteRuleSet(ctx context.Context, in *DeleteRuleSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) |
| 215 |
// Lists rulesets. |
| 216 |
ListRuleSets(ctx context.Context, in *ListRuleSetsRequest, opts ...grpc.CallOption) (*ListRuleSetsResponse, error) |
| 217 |
} |
| 218 |
|
| 219 |
type ruleSetServiceClient struct { |
| 220 |
cc grpc.ClientConnInterface |
| 221 |
} |
| 222 |
|
| 223 |
func NewRuleSetServiceClient(cc grpc.ClientConnInterface) RuleSetServiceClient { |
| 224 |
return &ruleSetServiceClient{cc} |
| 225 |
} |
| 226 |
|
| 227 |
func (c *ruleSetServiceClient) CreateRuleSet(ctx context.Context, in *CreateRuleSetRequest, opts ...grpc.CallOption) (*RuleSet, error) { |
| 228 |
out := new(RuleSet) |
| 229 |
err := c.cc.Invoke(ctx, "/google.cloud.contentwarehouse.v1.RuleSetService/CreateRuleSet", in, out, opts...) |
| 230 |
if err != nil { |
| 231 |
return nil, err |
| 232 |
} |
| 233 |
return out, nil |
| 234 |
} |
| 235 |
|
| 236 |
func (c *ruleSetServiceClient) GetRuleSet(ctx context.Context, in *GetRuleSetRequest, opts ...grpc.CallOption) (*RuleSet, error) { |
| 237 |
out := new(RuleSet) |
| 238 |
err := c.cc.Invoke(ctx, "/google.cloud.contentwarehouse.v1.RuleSetService/GetRuleSet", in, out, opts...) |
| 239 |
if err != nil { |
| 240 |
return nil, err |
| 241 |
} |
| 242 |
return out, nil |
| 243 |
} |
| 244 |
|
| 245 |
func (c *ruleSetServiceClient) UpdateRuleSet(ctx context.Context, in *UpdateRuleSetRequest, opts ...grpc.CallOption) (*RuleSet, error) { |
| 246 |
out := new(RuleSet) |
| 247 |
err := c.cc.Invoke(ctx, "/google.cloud.contentwarehouse.v1.RuleSetService/UpdateRuleSet", in, out, opts...) |
| 248 |
if err != nil { |
| 249 |
return nil, err |
| 250 |
} |
| 251 |
return out, nil |
| 252 |
} |
| 253 |
|
| 254 |
func (c *ruleSetServiceClient) DeleteRuleSet(ctx context.Context, in *DeleteRuleSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { |
| 255 |
out := new(emptypb.Empty) |
| 256 |
err := c.cc.Invoke(ctx, "/google.cloud.contentwarehouse.v1.RuleSetService/DeleteRuleSet", in, out, opts...) |
| 257 |
if err != nil { |
| 258 |
return nil, err |
| 259 |
} |
| 260 |
return out, nil |
| 261 |
} |
| 262 |
|
| 263 |
func (c *ruleSetServiceClient) ListRuleSets(ctx context.Context, in *ListRuleSetsRequest, opts ...grpc.CallOption) (*ListRuleSetsResponse, error) { |
| 264 |
out := new(ListRuleSetsResponse) |
| 265 |
err := c.cc.Invoke(ctx, "/google.cloud.contentwarehouse.v1.RuleSetService/ListRuleSets", in, out, opts...) |
| 266 |
if err != nil { |
| 267 |
return nil, err |
| 268 |
} |
| 269 |
return out, nil |
| 270 |
} |
| 271 |
|
| 272 |
// RuleSetServiceServer is the server API for RuleSetService service. |
| 273 |
type RuleSetServiceServer interface { |
| 274 |
// Creates a ruleset. |
| 275 |
CreateRuleSet(context.Context, *CreateRuleSetRequest) (*RuleSet, error) |
| 276 |
// Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist. |
| 277 |
GetRuleSet(context.Context, *GetRuleSetRequest) (*RuleSet, error) |
| 278 |
// Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset |
| 279 |
// is non-empty and does not equal the existing name. |
| 280 |
UpdateRuleSet(context.Context, *UpdateRuleSetRequest) (*RuleSet, error) |
| 281 |
// Deletes a ruleset. Returns NOT_FOUND if the document does not exist. |
| 282 |
DeleteRuleSet(context.Context, *DeleteRuleSetRequest) (*emptypb.Empty, error) |
| 283 |
// Lists rulesets. |
| 284 |
ListRuleSets(context.Context, *ListRuleSetsRequest) (*ListRuleSetsResponse, error) |
| 285 |
} |
| 286 |
|
| 287 |
// UnimplementedRuleSetServiceServer can be embedded to have forward compatible implementations. |
| 288 |
type UnimplementedRuleSetServiceServer struct { |
| 289 |
} |
| 290 |
|
| 291 |
func (*UnimplementedRuleSetServiceServer) CreateRuleSet(context.Context, *CreateRuleSetRequest) (*RuleSet, error) { |
| 292 |
return nil, status.Errorf(codes.Unimplemented, "method CreateRuleSet not implemented") |
| 293 |
} |
| 294 |
func (*UnimplementedRuleSetServiceServer) GetRuleSet(context.Context, *GetRuleSetRequest) (*RuleSet, error) { |
| 295 |
return nil, status.Errorf(codes.Unimplemented, "method GetRuleSet not implemented") |
| 296 |
} |
| 297 |
func (*UnimplementedRuleSetServiceServer) UpdateRuleSet(context.Context, *UpdateRuleSetRequest) (*RuleSet, error) { |
| 298 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateRuleSet not implemented") |
| 299 |
} |
| 300 |
func (*UnimplementedRuleSetServiceServer) DeleteRuleSet(context.Context, *DeleteRuleSetRequest) (*emptypb.Empty, error) { |
| 301 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteRuleSet not implemented") |
| 302 |
} |
| 303 |
func (*UnimplementedRuleSetServiceServer) ListRuleSets(context.Context, *ListRuleSetsRequest) (*ListRuleSetsResponse, error) { |
| 304 |
return nil, status.Errorf(codes.Unimplemented, "method ListRuleSets not implemented") |
| 305 |
} |
| 306 |
|
| 307 |
func RegisterRuleSetServiceServer(s *grpc.Server, srv RuleSetServiceServer) { |
| 308 |
s.RegisterService(&_RuleSetService_serviceDesc, srv) |
| 309 |
} |
| 310 |
|
| 311 |
func _RuleSetService_CreateRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 312 |
in := new(CreateRuleSetRequest) |
| 313 |
if err := dec(in); err != nil { |
| 314 |
return nil, err |
| 315 |
} |
| 316 |
if interceptor == nil { |
| 317 |
return srv.(RuleSetServiceServer).CreateRuleSet(ctx, in) |
| 318 |
} |
| 319 |
info := &grpc.UnaryServerInfo{ |
| 320 |
Server: srv, |
| 321 |
FullMethod: "/google.cloud.contentwarehouse.v1.RuleSetService/CreateRuleSet", |
| 322 |
} |
| 323 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 324 |
return srv.(RuleSetServiceServer).CreateRuleSet(ctx, req.(*CreateRuleSetRequest)) |
| 325 |
} |
| 326 |
return interceptor(ctx, in, info, handler) |
| 327 |
} |
| 328 |
|
| 329 |
func _RuleSetService_GetRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 330 |
in := new(GetRuleSetRequest) |
| 331 |
if err := dec(in); err != nil { |
| 332 |
return nil, err |
| 333 |
} |
| 334 |
if interceptor == nil { |
| 335 |
return srv.(RuleSetServiceServer).GetRuleSet(ctx, in) |
| 336 |
} |
| 337 |
info := &grpc.UnaryServerInfo{ |
| 338 |
Server: srv, |
| 339 |
FullMethod: "/google.cloud.contentwarehouse.v1.RuleSetService/GetRuleSet", |
| 340 |
} |
| 341 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 342 |
return srv.(RuleSetServiceServer).GetRuleSet(ctx, req.(*GetRuleSetRequest)) |
| 343 |
} |
| 344 |
return interceptor(ctx, in, info, handler) |
| 345 |
} |
| 346 |
|
| 347 |
func _RuleSetService_UpdateRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 348 |
in := new(UpdateRuleSetRequest) |
| 349 |
if err := dec(in); err != nil { |
| 350 |
return nil, err |
| 351 |
} |
| 352 |
if interceptor == nil { |
| 353 |
return srv.(RuleSetServiceServer).UpdateRuleSet(ctx, in) |
| 354 |
} |
| 355 |
info := &grpc.UnaryServerInfo{ |
| 356 |
Server: srv, |
| 357 |
FullMethod: "/google.cloud.contentwarehouse.v1.RuleSetService/UpdateRuleSet", |
| 358 |
} |
| 359 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 360 |
return srv.(RuleSetServiceServer).UpdateRuleSet(ctx, req.(*UpdateRuleSetRequest)) |
| 361 |
} |
| 362 |
return interceptor(ctx, in, info, handler) |
| 363 |
} |
| 364 |
|
| 365 |
func _RuleSetService_DeleteRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 366 |
in := new(DeleteRuleSetRequest) |
| 367 |
if err := dec(in); err != nil { |
| 368 |
return nil, err |
| 369 |
} |
| 370 |
if interceptor == nil { |
| 371 |
return srv.(RuleSetServiceServer).DeleteRuleSet(ctx, in) |
| 372 |
} |
| 373 |
info := &grpc.UnaryServerInfo{ |
| 374 |
Server: srv, |
| 375 |
FullMethod: "/google.cloud.contentwarehouse.v1.RuleSetService/DeleteRuleSet", |
| 376 |
} |
| 377 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 378 |
return srv.(RuleSetServiceServer).DeleteRuleSet(ctx, req.(*DeleteRuleSetRequest)) |
| 379 |
} |
| 380 |
return interceptor(ctx, in, info, handler) |
| 381 |
} |
| 382 |
|
| 383 |
func _RuleSetService_ListRuleSets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 384 |
in := new(ListRuleSetsRequest) |
| 385 |
if err := dec(in); err != nil { |
| 386 |
return nil, err |
| 387 |
} |
| 388 |
if interceptor == nil { |
| 389 |
return srv.(RuleSetServiceServer).ListRuleSets(ctx, in) |
| 390 |
} |
| 391 |
info := &grpc.UnaryServerInfo{ |
| 392 |
Server: srv, |
| 393 |
FullMethod: "/google.cloud.contentwarehouse.v1.RuleSetService/ListRuleSets", |
| 394 |
} |
| 395 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 396 |
return srv.(RuleSetServiceServer).ListRuleSets(ctx, req.(*ListRuleSetsRequest)) |
| 397 |
} |
| 398 |
return interceptor(ctx, in, info, handler) |
| 399 |
} |
| 400 |
|
| 401 |
var _RuleSetService_serviceDesc = grpc.ServiceDesc{ |
| 402 |
ServiceName: "google.cloud.contentwarehouse.v1.RuleSetService", |
| 403 |
HandlerType: (*RuleSetServiceServer)(nil), |
| 404 |
Methods: []grpc.MethodDesc{ |
| 405 |
{ |
| 406 |
MethodName: "CreateRuleSet", |
| 407 |
Handler: _RuleSetService_CreateRuleSet_Handler, |
| 408 |
}, |
| 409 |
{ |
| 410 |
MethodName: "GetRuleSet", |
| 411 |
Handler: _RuleSetService_GetRuleSet_Handler, |
| 412 |
}, |
| 413 |
{ |
| 414 |
MethodName: "UpdateRuleSet", |
| 415 |
Handler: _RuleSetService_UpdateRuleSet_Handler, |
| 416 |
}, |
| 417 |
{ |
| 418 |
MethodName: "DeleteRuleSet", |
| 419 |
Handler: _RuleSetService_DeleteRuleSet_Handler, |
| 420 |
}, |
| 421 |
{ |
| 422 |
MethodName: "ListRuleSets", |
| 423 |
Handler: _RuleSetService_ListRuleSets_Handler, |
| 424 |
}, |
| 425 |
}, |
| 426 |
Streams: []grpc.StreamDesc{}, |
| 427 |
Metadata: "google/cloud/contentwarehouse/v1/ruleset_service.proto", |
| 428 |
} |