Debian Codegraph @

dialogflow/cx/apiv3beta1/cxpb/import_strategy.pb.go

raw
1 // Copyright 2025 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.35.2
18 // protoc v4.25.7
19 // source: google/cloud/dialogflow/cx/v3beta1/import_strategy.proto
20
21 package cxpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // Import strategies for the conflict resolution of resources (i.e. intents,
38 // entities, and webhooks) with identical display names during import
39 // operations.
40 type ImportStrategy int32
41
42 const (
43 // Unspecified. Treated as 'CREATE_NEW'.
44 ImportStrategy_IMPORT_STRATEGY_UNSPECIFIED ImportStrategy = 0
45 // Create a new resource with a numeric suffix appended to the end of the
46 // existing display name.
47 ImportStrategy_IMPORT_STRATEGY_CREATE_NEW ImportStrategy = 1
48 // Replace existing resource with incoming resource in the content to be
49 // imported.
50 ImportStrategy_IMPORT_STRATEGY_REPLACE ImportStrategy = 2
51 // Keep existing resource and discard incoming resource in the content to be
52 // imported.
53 ImportStrategy_IMPORT_STRATEGY_KEEP ImportStrategy = 3
54 // Combine existing and incoming resources when a conflict is encountered.
55 ImportStrategy_IMPORT_STRATEGY_MERGE ImportStrategy = 4
56 // Throw error if a conflict is encountered.
57 ImportStrategy_IMPORT_STRATEGY_THROW_ERROR ImportStrategy = 5
58 )
59
60 // Enum value maps for ImportStrategy.
61 var (
62 ImportStrategy_name = map[int32]string{
63 0: "IMPORT_STRATEGY_UNSPECIFIED",
64 1: "IMPORT_STRATEGY_CREATE_NEW",
65 2: "IMPORT_STRATEGY_REPLACE",
66 3: "IMPORT_STRATEGY_KEEP",
67 4: "IMPORT_STRATEGY_MERGE",
68 5: "IMPORT_STRATEGY_THROW_ERROR",
69 }
70 ImportStrategy_value = map[string]int32{
71 "IMPORT_STRATEGY_UNSPECIFIED": 0,
72 "IMPORT_STRATEGY_CREATE_NEW": 1,
73 "IMPORT_STRATEGY_REPLACE": 2,
74 "IMPORT_STRATEGY_KEEP": 3,
75 "IMPORT_STRATEGY_MERGE": 4,
76 "IMPORT_STRATEGY_THROW_ERROR": 5,
77 }
78 )
79
80 func (x ImportStrategy) Enum() *ImportStrategy {
81 p := new(ImportStrategy)
82 *p = x
83 return p
84 }
85
86 func (x ImportStrategy) String() string {
87 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
88 }
89
90 func (ImportStrategy) Descriptor() protoreflect.EnumDescriptor {
91 return file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_enumTypes[0].Descriptor()
92 }
93
94 func (ImportStrategy) Type() protoreflect.EnumType {
95 return &file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_enumTypes[0]
96 }
97
98 func (x ImportStrategy) Number() protoreflect.EnumNumber {
99 return protoreflect.EnumNumber(x)
100 }
101
102 // Deprecated: Use ImportStrategy.Descriptor instead.
103 func (ImportStrategy) EnumDescriptor() ([]byte, []int) {
104 return file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescGZIP(), []int{0}
105 }
106
107 var File_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto protoreflect.FileDescriptor
108
109 var file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDesc = []byte{
110 0x0a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
111 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x63, 0x78, 0x2f, 0x76, 0x33, 0x62,
112 0x65, 0x74, 0x61, 0x31, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x61,
113 0x74, 0x65, 0x67, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x67, 0x6f, 0x6f, 0x67,
114 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66,
115 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 0x2e, 0x76, 0x33, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2a, 0xc4,
116 0x01, 0x0a, 0x0e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67,
117 0x79, 0x12, 0x1f, 0x0a, 0x1b, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x52, 0x41,
118 0x54, 0x45, 0x47, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
119 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x52,
120 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x5f, 0x4e, 0x45, 0x57,
121 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x52,
122 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x41, 0x43, 0x45, 0x10, 0x02, 0x12,
123 0x18, 0x0a, 0x14, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45,
124 0x47, 0x59, 0x5f, 0x4b, 0x45, 0x45, 0x50, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x49, 0x4d, 0x50,
125 0x4f, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x4d, 0x45, 0x52,
126 0x47, 0x45, 0x10, 0x04, 0x12, 0x1f, 0x0a, 0x1b, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x53,
127 0x54, 0x52, 0x41, 0x54, 0x45, 0x47, 0x59, 0x5f, 0x54, 0x48, 0x52, 0x4f, 0x57, 0x5f, 0x45, 0x52,
128 0x52, 0x4f, 0x52, 0x10, 0x05, 0x42, 0xca, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f,
129 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f,
130 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 0x2e, 0x76, 0x33, 0x62, 0x65, 0x74, 0x61, 0x31,
131 0x42, 0x13, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
132 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67,
133 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x64, 0x69, 0x61,
134 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x63, 0x78, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x33,
135 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x78, 0x70, 0x62, 0x3b, 0x63, 0x78, 0x70, 0x62, 0xa2,
136 0x02, 0x02, 0x44, 0x46, 0xaa, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c,
137 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x43,
138 0x78, 0x2e, 0x56, 0x33, 0x42, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x26, 0x47, 0x6f, 0x6f, 0x67,
139 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x44, 0x69, 0x61, 0x6c, 0x6f,
140 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x3a, 0x3a, 0x43, 0x58, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x65, 0x74,
141 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
142 }
143
144 var (
145 file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescOnce sync.Once
146 file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescData = file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDesc
147 )
148
149 func file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescGZIP() []byte {
150 file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescOnce.Do(func() {
151 file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescData)
152 })
153 return file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescData
154 }
155
156 var file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
157 var file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_goTypes = []any{
158 (ImportStrategy)(0), // 0: google.cloud.dialogflow.cx.v3beta1.ImportStrategy
159 }
160 var file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_depIdxs = []int32{
161 0, // [0:0] is the sub-list for method output_type
162 0, // [0:0] 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_dialogflow_cx_v3beta1_import_strategy_proto_init() }
169 func file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_init() {
170 if File_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto != nil {
171 return
172 }
173 type x struct{}
174 out := protoimpl.TypeBuilder{
175 File: protoimpl.DescBuilder{
176 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
177 RawDescriptor: file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDesc,
178 NumEnums: 1,
179 NumMessages: 0,
180 NumExtensions: 0,
181 NumServices: 0,
182 },
183 GoTypes: file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_goTypes,
184 DependencyIndexes: file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_depIdxs,
185 EnumInfos: file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_enumTypes,
186 }.Build()
187 File_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto = out.File
188 file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDesc = nil
189 file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_goTypes = nil
190 file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_depIdxs = nil
191 }