1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/dialogflow/v2/validation_result.proto
3
4package dialogflow
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	_ "google.golang.org/genproto/googleapis/api/annotations"
12)
13
14// Reference imports to suppress errors if they are not otherwise used.
15var _ = proto.Marshal
16var _ = fmt.Errorf
17var _ = math.Inf
18
19// This is a compile-time assertion to ensure that this generated file
20// is compatible with the proto package it is being compiled against.
21// A compilation error at this line likely means your copy of the
22// proto package needs to be updated.
23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
24
25// Represents a level of severity.
26type ValidationError_Severity int32
27
28const (
29	// Not specified. This value should never be used.
30	ValidationError_SEVERITY_UNSPECIFIED ValidationError_Severity = 0
31	// The agent doesn't follow Dialogflow best practicies.
32	ValidationError_INFO ValidationError_Severity = 1
33	// The agent may not behave as expected.
34	ValidationError_WARNING ValidationError_Severity = 2
35	// The agent may experience partial failures.
36	ValidationError_ERROR ValidationError_Severity = 3
37	// The agent may completely fail.
38	ValidationError_CRITICAL ValidationError_Severity = 4
39)
40
41var ValidationError_Severity_name = map[int32]string{
42	0: "SEVERITY_UNSPECIFIED",
43	1: "INFO",
44	2: "WARNING",
45	3: "ERROR",
46	4: "CRITICAL",
47}
48
49var ValidationError_Severity_value = map[string]int32{
50	"SEVERITY_UNSPECIFIED": 0,
51	"INFO":                 1,
52	"WARNING":              2,
53	"ERROR":                3,
54	"CRITICAL":             4,
55}
56
57func (x ValidationError_Severity) String() string {
58	return proto.EnumName(ValidationError_Severity_name, int32(x))
59}
60
61func (ValidationError_Severity) EnumDescriptor() ([]byte, []int) {
62	return fileDescriptor_7da0ebf221ed64af, []int{0, 0}
63}
64
65// Represents a single validation error.
66type ValidationError struct {
67	// The severity of the error.
68	Severity ValidationError_Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=google.cloud.dialogflow.v2.ValidationError_Severity" json:"severity,omitempty"`
69	// The names of the entries that the error is associated with.
70	// Format:
71	//
72	// - "projects/<Project ID>/agent", if the error is associated with the entire
73	// agent.
74	// - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
75	// associated with certain intents.
76	// - "projects/<Project
77	// ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
78	// error is associated with certain intent training phrases.
79	// - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
80	// ID>", if the error is associated with certain intent parameters.
81	// - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
82	// associated with certain entities.
83	Entries []string `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"`
84	// The detailed error messsage.
85	ErrorMessage         string   `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
86	XXX_NoUnkeyedLiteral struct{} `json:"-"`
87	XXX_unrecognized     []byte   `json:"-"`
88	XXX_sizecache        int32    `json:"-"`
89}
90
91func (m *ValidationError) Reset()         { *m = ValidationError{} }
92func (m *ValidationError) String() string { return proto.CompactTextString(m) }
93func (*ValidationError) ProtoMessage()    {}
94func (*ValidationError) Descriptor() ([]byte, []int) {
95	return fileDescriptor_7da0ebf221ed64af, []int{0}
96}
97
98func (m *ValidationError) XXX_Unmarshal(b []byte) error {
99	return xxx_messageInfo_ValidationError.Unmarshal(m, b)
100}
101func (m *ValidationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
102	return xxx_messageInfo_ValidationError.Marshal(b, m, deterministic)
103}
104func (m *ValidationError) XXX_Merge(src proto.Message) {
105	xxx_messageInfo_ValidationError.Merge(m, src)
106}
107func (m *ValidationError) XXX_Size() int {
108	return xxx_messageInfo_ValidationError.Size(m)
109}
110func (m *ValidationError) XXX_DiscardUnknown() {
111	xxx_messageInfo_ValidationError.DiscardUnknown(m)
112}
113
114var xxx_messageInfo_ValidationError proto.InternalMessageInfo
115
116func (m *ValidationError) GetSeverity() ValidationError_Severity {
117	if m != nil {
118		return m.Severity
119	}
120	return ValidationError_SEVERITY_UNSPECIFIED
121}
122
123func (m *ValidationError) GetEntries() []string {
124	if m != nil {
125		return m.Entries
126	}
127	return nil
128}
129
130func (m *ValidationError) GetErrorMessage() string {
131	if m != nil {
132		return m.ErrorMessage
133	}
134	return ""
135}
136
137// Represents the output of agent validation.
138type ValidationResult struct {
139	// Contains all validation errors.
140	ValidationErrors     []*ValidationError `protobuf:"bytes,1,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"`
141	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
142	XXX_unrecognized     []byte             `json:"-"`
143	XXX_sizecache        int32              `json:"-"`
144}
145
146func (m *ValidationResult) Reset()         { *m = ValidationResult{} }
147func (m *ValidationResult) String() string { return proto.CompactTextString(m) }
148func (*ValidationResult) ProtoMessage()    {}
149func (*ValidationResult) Descriptor() ([]byte, []int) {
150	return fileDescriptor_7da0ebf221ed64af, []int{1}
151}
152
153func (m *ValidationResult) XXX_Unmarshal(b []byte) error {
154	return xxx_messageInfo_ValidationResult.Unmarshal(m, b)
155}
156func (m *ValidationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
157	return xxx_messageInfo_ValidationResult.Marshal(b, m, deterministic)
158}
159func (m *ValidationResult) XXX_Merge(src proto.Message) {
160	xxx_messageInfo_ValidationResult.Merge(m, src)
161}
162func (m *ValidationResult) XXX_Size() int {
163	return xxx_messageInfo_ValidationResult.Size(m)
164}
165func (m *ValidationResult) XXX_DiscardUnknown() {
166	xxx_messageInfo_ValidationResult.DiscardUnknown(m)
167}
168
169var xxx_messageInfo_ValidationResult proto.InternalMessageInfo
170
171func (m *ValidationResult) GetValidationErrors() []*ValidationError {
172	if m != nil {
173		return m.ValidationErrors
174	}
175	return nil
176}
177
178func init() {
179	proto.RegisterEnum("google.cloud.dialogflow.v2.ValidationError_Severity", ValidationError_Severity_name, ValidationError_Severity_value)
180	proto.RegisterType((*ValidationError)(nil), "google.cloud.dialogflow.v2.ValidationError")
181	proto.RegisterType((*ValidationResult)(nil), "google.cloud.dialogflow.v2.ValidationResult")
182}
183
184func init() {
185	proto.RegisterFile("google/cloud/dialogflow/v2/validation_result.proto", fileDescriptor_7da0ebf221ed64af)
186}
187
188var fileDescriptor_7da0ebf221ed64af = []byte{
189	// 382 bytes of a gzipped FileDescriptorProto
190	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x5f, 0xab, 0xd3, 0x30,
191	0x18, 0xc6, 0x4d, 0x3b, 0x3d, 0x5d, 0xce, 0x51, 0x6b, 0x50, 0x28, 0x43, 0xa4, 0xcc, 0x9b, 0x82,
192	0x90, 0x42, 0xf5, 0xce, 0xab, 0x73, 0xda, 0x6e, 0x14, 0xb4, 0x2b, 0xe9, 0x9c, 0x7f, 0x6e, 0x46,
193	0xdc, 0x62, 0x28, 0x64, 0xcd, 0x48, 0xba, 0x8a, 0x5f, 0x47, 0xbc, 0xf2, 0x13, 0xee, 0x52, 0x96,
194	0xce, 0x55, 0x87, 0x0a, 0x5e, 0xbe, 0x6f, 0xf9, 0xfd, 0xfa, 0xf0, 0xbc, 0x81, 0x11, 0x97, 0x92,
195	0x0b, 0x16, 0xae, 0x84, 0xdc, 0xad, 0xc3, 0x75, 0x45, 0x85, 0xe4, 0x9f, 0x84, 0xfc, 0x1c, 0xb6,
196	0x51, 0xd8, 0x52, 0x51, 0xad, 0x69, 0x53, 0xc9, 0x7a, 0xa9, 0x98, 0xde, 0x89, 0x06, 0x6f, 0x95,
197	0x6c, 0x24, 0x1a, 0x75, 0x0c, 0x36, 0x0c, 0xee, 0x19, 0xdc, 0x46, 0xa3, 0xc7, 0x47, 0x1f, 0xdd,
198	0x56, 0x21, 0xad, 0x6b, 0xd9, 0x18, 0x5e, 0x77, 0xe4, 0x78, 0x0f, 0xe0, 0xfd, 0xc5, 0xc9, 0x9a,
199	0x2a, 0x25, 0x15, 0x2a, 0xa0, 0xa3, 0x59, 0xcb, 0x54, 0xd5, 0x7c, 0xf1, 0x80, 0x0f, 0x82, 0x7b,
200	0xd1, 0x0b, 0xfc, 0xf7, 0x1f, 0xe0, 0x33, 0x1c, 0x97, 0x47, 0x96, 0x9c, 0x2c, 0xc8, 0x83, 0x17,
201	0xac, 0x6e, 0x54, 0xc5, 0xb4, 0x67, 0xfb, 0x76, 0x30, 0x24, 0x3f, 0x47, 0xf4, 0x14, 0xde, 0x65,
202	0x07, 0x6a, 0xb9, 0x61, 0x5a, 0x53, 0xce, 0xbc, 0x81, 0x0f, 0x82, 0x21, 0xb9, 0x32, 0xcb, 0xd7,
203	0xdd, 0x6e, 0x3c, 0x87, 0x4e, 0xd9, 0xab, 0x1e, 0x96, 0xe9, 0x22, 0x25, 0xd9, 0xfc, 0xfd, 0xf2,
204	0x4d, 0x5e, 0x16, 0x69, 0x9c, 0x4d, 0xb2, 0x34, 0x71, 0x6f, 0x21, 0x07, 0x0e, 0xb2, 0x7c, 0x32,
205	0x73, 0x01, 0xba, 0x84, 0x17, 0x6f, 0xaf, 0x49, 0x9e, 0xe5, 0x53, 0xd7, 0x42, 0x43, 0x78, 0x3b,
206	0x25, 0x64, 0x46, 0x5c, 0x1b, 0x5d, 0x41, 0x27, 0x26, 0xd9, 0x3c, 0x8b, 0xaf, 0x5f, 0xb9, 0x83,
207	0xb1, 0x80, 0x6e, 0x1f, 0x9d, 0x98, 0x3a, 0xd1, 0x3b, 0xf8, 0xe0, 0x97, 0x8e, 0x4d, 0x08, 0xed,
208	0x01, 0xdf, 0x0e, 0x2e, 0xa3, 0x67, 0xff, 0xd1, 0x01, 0x71, 0xdb, 0xdf, 0x17, 0xfa, 0xe6, 0x1b,
209	0x80, 0x4f, 0x56, 0x72, 0xf3, 0x0f, 0xc9, 0xcd, 0xa3, 0xf3, 0x38, 0xc5, 0xe1, 0x44, 0x05, 0xf8,
210	0x90, 0x1c, 0x21, 0x2e, 0x05, 0xad, 0x39, 0x96, 0x8a, 0x87, 0x9c, 0xd5, 0xe6, 0x80, 0x61, 0xf7,
211	0x89, 0x6e, 0x2b, 0xfd, 0xa7, 0x17, 0xf3, 0xb2, 0x9f, 0xf6, 0x00, 0x7c, 0xb5, 0xac, 0x64, 0xf2,
212	0xdd, 0x1a, 0x4d, 0x3b, 0x5d, 0x6c, 0x32, 0x24, 0x7d, 0x86, 0x45, 0xf4, 0xf1, 0x8e, 0xb1, 0x3e,
213	0xff, 0x11, 0x00, 0x00, 0xff, 0xff, 0x63, 0x7c, 0x01, 0x70, 0x86, 0x02, 0x00, 0x00,
214}
215