Debian Codegraph @

googleapis/cloud/integrations/v1alpha/json_validation.pb.go

raw
1 // Copyright 2021 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/integrations/v1alpha/json_validation.proto
20
21 package integrations
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // Options for how to validate json schemas.
39 type JsonValidationOption int32
40
41 const (
42 // As per the default behavior, no validation will be run. Will not override
43 // any option set in a Task.
44 JsonValidationOption_JSON_VALIDATION_OPTION_UNSPECIFIED JsonValidationOption = 0
45 // Do not run any validation against JSON schemas.
46 JsonValidationOption_SKIP JsonValidationOption = 1
47 // Validate all potential input JSON parameters against schemas specified in
48 // IntegrationParameter.
49 JsonValidationOption_PRE_EXECUTION JsonValidationOption = 2
50 // Validate all potential output JSON parameters against schemas specified in
51 // IntegrationParameter.
52 JsonValidationOption_POST_EXECUTION JsonValidationOption = 3
53 // Perform both PRE_EXECUTION and POST_EXECUTION validations.
54 JsonValidationOption_PRE_POST_EXECUTION JsonValidationOption = 4
55 )
56
57 // Enum value maps for JsonValidationOption.
58 var (
59 JsonValidationOption_name = map[int32]string{
60 0: "JSON_VALIDATION_OPTION_UNSPECIFIED",
61 1: "SKIP",
62 2: "PRE_EXECUTION",
63 3: "POST_EXECUTION",
64 4: "PRE_POST_EXECUTION",
65 }
66 JsonValidationOption_value = map[string]int32{
67 "JSON_VALIDATION_OPTION_UNSPECIFIED": 0,
68 "SKIP": 1,
69 "PRE_EXECUTION": 2,
70 "POST_EXECUTION": 3,
71 "PRE_POST_EXECUTION": 4,
72 }
73 )
74
75 func (x JsonValidationOption) Enum() *JsonValidationOption {
76 p := new(JsonValidationOption)
77 *p = x
78 return p
79 }
80
81 func (x JsonValidationOption) String() string {
82 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
83 }
84
85 func (JsonValidationOption) Descriptor() protoreflect.EnumDescriptor {
86 return file_google_cloud_integrations_v1alpha_json_validation_proto_enumTypes[0].Descriptor()
87 }
88
89 func (JsonValidationOption) Type() protoreflect.EnumType {
90 return &file_google_cloud_integrations_v1alpha_json_validation_proto_enumTypes[0]
91 }
92
93 func (x JsonValidationOption) Number() protoreflect.EnumNumber {
94 return protoreflect.EnumNumber(x)
95 }
96
97 // Deprecated: Use JsonValidationOption.Descriptor instead.
98 func (JsonValidationOption) EnumDescriptor() ([]byte, []int) {
99 return file_google_cloud_integrations_v1alpha_json_validation_proto_rawDescGZIP(), []int{0}
100 }
101
102 var File_google_cloud_integrations_v1alpha_json_validation_proto protoreflect.FileDescriptor
103
104 var file_google_cloud_integrations_v1alpha_json_validation_proto_rawDesc = []byte{
105 0x0a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
106 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c,
107 0x70, 0x68, 0x61, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
108 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
109 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74,
110 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2a, 0x87, 0x01, 0x0a,
111 0x14, 0x4a, 0x73, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f,
112 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x22, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x56, 0x41,
113 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
114 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a,
115 0x04, 0x53, 0x4b, 0x49, 0x50, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x52, 0x45, 0x5f, 0x45,
116 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x4f,
117 0x53, 0x54, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x12, 0x16,
118 0x0a, 0x12, 0x50, 0x52, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55,
119 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x42, 0x8d, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
120 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x6e, 0x74, 0x65,
121 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
122 0x42, 0x13, 0x4a, 0x73, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e,
123 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
124 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72,
125 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63,
126 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
127 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72,
128 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
129 }
130
131 var (
132 file_google_cloud_integrations_v1alpha_json_validation_proto_rawDescOnce sync.Once
133 file_google_cloud_integrations_v1alpha_json_validation_proto_rawDescData = file_google_cloud_integrations_v1alpha_json_validation_proto_rawDesc
134 )
135
136 func file_google_cloud_integrations_v1alpha_json_validation_proto_rawDescGZIP() []byte {
137 file_google_cloud_integrations_v1alpha_json_validation_proto_rawDescOnce.Do(func() {
138 file_google_cloud_integrations_v1alpha_json_validation_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_integrations_v1alpha_json_validation_proto_rawDescData)
139 })
140 return file_google_cloud_integrations_v1alpha_json_validation_proto_rawDescData
141 }
142
143 var file_google_cloud_integrations_v1alpha_json_validation_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
144 var file_google_cloud_integrations_v1alpha_json_validation_proto_goTypes = []interface{}{
145 (JsonValidationOption)(0), // 0: google.cloud.integrations.v1alpha.JsonValidationOption
146 }
147 var file_google_cloud_integrations_v1alpha_json_validation_proto_depIdxs = []int32{
148 0, // [0:0] is the sub-list for method output_type
149 0, // [0:0] is the sub-list for method input_type
150 0, // [0:0] is the sub-list for extension type_name
151 0, // [0:0] is the sub-list for extension extendee
152 0, // [0:0] is the sub-list for field type_name
153 }
154
155 func init() { file_google_cloud_integrations_v1alpha_json_validation_proto_init() }
156 func file_google_cloud_integrations_v1alpha_json_validation_proto_init() {
157 if File_google_cloud_integrations_v1alpha_json_validation_proto != nil {
158 return
159 }
160 type x struct{}
161 out := protoimpl.TypeBuilder{
162 File: protoimpl.DescBuilder{
163 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
164 RawDescriptor: file_google_cloud_integrations_v1alpha_json_validation_proto_rawDesc,
165 NumEnums: 1,
166 NumMessages: 0,
167 NumExtensions: 0,
168 NumServices: 0,
169 },
170 GoTypes: file_google_cloud_integrations_v1alpha_json_validation_proto_goTypes,
171 DependencyIndexes: file_google_cloud_integrations_v1alpha_json_validation_proto_depIdxs,
172 EnumInfos: file_google_cloud_integrations_v1alpha_json_validation_proto_enumTypes,
173 }.Build()
174 File_google_cloud_integrations_v1alpha_json_validation_proto = out.File
175 file_google_cloud_integrations_v1alpha_json_validation_proto_rawDesc = nil
176 file_google_cloud_integrations_v1alpha_json_validation_proto_goTypes = nil
177 file_google_cloud_integrations_v1alpha_json_validation_proto_depIdxs = nil
178 }