Scott Baker | e7144bc | 2019-10-01 14:16:47 -0700 | [diff] [blame^] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/yang_options.proto |
| 3 | |
| 4 | package common |
| 5 | |
| 6 | import ( |
| 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
| 9 | descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" |
| 10 | math "math" |
| 11 | ) |
| 12 | |
| 13 | // Reference imports to suppress errors if they are not otherwise used. |
| 14 | var _ = proto.Marshal |
| 15 | var _ = fmt.Errorf |
| 16 | var _ = math.Inf |
| 17 | |
| 18 | // This is a compile-time assertion to ensure that this generated file |
| 19 | // is compatible with the proto package it is being compiled against. |
| 20 | // A compilation error at this line likely means your copy of the |
| 21 | // proto package needs to be updated. |
| 22 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 23 | |
| 24 | type MessageParserOption int32 |
| 25 | |
| 26 | const ( |
| 27 | // Move any enclosing child enum/message definition to the same level |
| 28 | // as the parent (this message) in the yang generated file |
| 29 | MessageParserOption_MOVE_TO_PARENT_LEVEL MessageParserOption = 0 |
| 30 | // Create both a grouping and a container for this message. The container |
| 31 | // name will be the message name. The grouping name will be the message |
| 32 | // name prefixed with "grouping_" |
| 33 | MessageParserOption_CREATE_BOTH_GROUPING_AND_CONTAINER MessageParserOption = 1 |
| 34 | ) |
| 35 | |
| 36 | var MessageParserOption_name = map[int32]string{ |
| 37 | 0: "MOVE_TO_PARENT_LEVEL", |
| 38 | 1: "CREATE_BOTH_GROUPING_AND_CONTAINER", |
| 39 | } |
| 40 | |
| 41 | var MessageParserOption_value = map[string]int32{ |
| 42 | "MOVE_TO_PARENT_LEVEL": 0, |
| 43 | "CREATE_BOTH_GROUPING_AND_CONTAINER": 1, |
| 44 | } |
| 45 | |
| 46 | func (x MessageParserOption) String() string { |
| 47 | return proto.EnumName(MessageParserOption_name, int32(x)) |
| 48 | } |
| 49 | |
| 50 | func (MessageParserOption) EnumDescriptor() ([]byte, []int) { |
| 51 | return fileDescriptor_e6be2fba65eb89fb, []int{0} |
| 52 | } |
| 53 | |
| 54 | type InlineNode struct { |
| 55 | Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| 56 | Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` |
| 57 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 58 | XXX_unrecognized []byte `json:"-"` |
| 59 | XXX_sizecache int32 `json:"-"` |
| 60 | } |
| 61 | |
| 62 | func (m *InlineNode) Reset() { *m = InlineNode{} } |
| 63 | func (m *InlineNode) String() string { return proto.CompactTextString(m) } |
| 64 | func (*InlineNode) ProtoMessage() {} |
| 65 | func (*InlineNode) Descriptor() ([]byte, []int) { |
| 66 | return fileDescriptor_e6be2fba65eb89fb, []int{0} |
| 67 | } |
| 68 | |
| 69 | func (m *InlineNode) XXX_Unmarshal(b []byte) error { |
| 70 | return xxx_messageInfo_InlineNode.Unmarshal(m, b) |
| 71 | } |
| 72 | func (m *InlineNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 73 | return xxx_messageInfo_InlineNode.Marshal(b, m, deterministic) |
| 74 | } |
| 75 | func (m *InlineNode) XXX_Merge(src proto.Message) { |
| 76 | xxx_messageInfo_InlineNode.Merge(m, src) |
| 77 | } |
| 78 | func (m *InlineNode) XXX_Size() int { |
| 79 | return xxx_messageInfo_InlineNode.Size(m) |
| 80 | } |
| 81 | func (m *InlineNode) XXX_DiscardUnknown() { |
| 82 | xxx_messageInfo_InlineNode.DiscardUnknown(m) |
| 83 | } |
| 84 | |
| 85 | var xxx_messageInfo_InlineNode proto.InternalMessageInfo |
| 86 | |
| 87 | func (m *InlineNode) GetId() string { |
| 88 | if m != nil { |
| 89 | return m.Id |
| 90 | } |
| 91 | return "" |
| 92 | } |
| 93 | |
| 94 | func (m *InlineNode) GetType() string { |
| 95 | if m != nil { |
| 96 | return m.Type |
| 97 | } |
| 98 | return "" |
| 99 | } |
| 100 | |
| 101 | type RpcReturnDef struct { |
| 102 | // The gRPC methods return message types. NETCONF expects an actual |
| 103 | // attribute as defined in the YANG schema. The xnl_tag will be used |
| 104 | // as the top most tag when translating a gRPC response into an xml |
| 105 | // response |
| 106 | XmlTag string `protobuf:"bytes,1,opt,name=xml_tag,json=xmlTag,proto3" json:"xml_tag,omitempty"` |
| 107 | // When the gRPC response is a list of items, we need to differentiate |
| 108 | // between a YANG schema attribute whose name is "items" and when "items" |
| 109 | // is used only to indicate a list of items is being returned. The default |
| 110 | // behavior assumes a list is returned when "items" is present in |
| 111 | // the response. This option will therefore be used when the attribute |
| 112 | // name in the YANG schema is 'items' |
| 113 | ListItemsName string `protobuf:"bytes,2,opt,name=list_items_name,json=listItemsName,proto3" json:"list_items_name,omitempty"` |
| 114 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 115 | XXX_unrecognized []byte `json:"-"` |
| 116 | XXX_sizecache int32 `json:"-"` |
| 117 | } |
| 118 | |
| 119 | func (m *RpcReturnDef) Reset() { *m = RpcReturnDef{} } |
| 120 | func (m *RpcReturnDef) String() string { return proto.CompactTextString(m) } |
| 121 | func (*RpcReturnDef) ProtoMessage() {} |
| 122 | func (*RpcReturnDef) Descriptor() ([]byte, []int) { |
| 123 | return fileDescriptor_e6be2fba65eb89fb, []int{1} |
| 124 | } |
| 125 | |
| 126 | func (m *RpcReturnDef) XXX_Unmarshal(b []byte) error { |
| 127 | return xxx_messageInfo_RpcReturnDef.Unmarshal(m, b) |
| 128 | } |
| 129 | func (m *RpcReturnDef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 130 | return xxx_messageInfo_RpcReturnDef.Marshal(b, m, deterministic) |
| 131 | } |
| 132 | func (m *RpcReturnDef) XXX_Merge(src proto.Message) { |
| 133 | xxx_messageInfo_RpcReturnDef.Merge(m, src) |
| 134 | } |
| 135 | func (m *RpcReturnDef) XXX_Size() int { |
| 136 | return xxx_messageInfo_RpcReturnDef.Size(m) |
| 137 | } |
| 138 | func (m *RpcReturnDef) XXX_DiscardUnknown() { |
| 139 | xxx_messageInfo_RpcReturnDef.DiscardUnknown(m) |
| 140 | } |
| 141 | |
| 142 | var xxx_messageInfo_RpcReturnDef proto.InternalMessageInfo |
| 143 | |
| 144 | func (m *RpcReturnDef) GetXmlTag() string { |
| 145 | if m != nil { |
| 146 | return m.XmlTag |
| 147 | } |
| 148 | return "" |
| 149 | } |
| 150 | |
| 151 | func (m *RpcReturnDef) GetListItemsName() string { |
| 152 | if m != nil { |
| 153 | return m.ListItemsName |
| 154 | } |
| 155 | return "" |
| 156 | } |
| 157 | |
| 158 | var E_YangChildRule = &proto.ExtensionDesc{ |
| 159 | ExtendedType: (*descriptor.MessageOptions)(nil), |
| 160 | ExtensionType: (*MessageParserOption)(nil), |
| 161 | Field: 7761774, |
| 162 | Name: "common.yang_child_rule", |
| 163 | Tag: "varint,7761774,opt,name=yang_child_rule,enum=common.MessageParserOption", |
| 164 | Filename: "voltha_protos/yang_options.proto", |
| 165 | } |
| 166 | |
| 167 | var E_YangMessageRule = &proto.ExtensionDesc{ |
| 168 | ExtendedType: (*descriptor.MessageOptions)(nil), |
| 169 | ExtensionType: (*MessageParserOption)(nil), |
| 170 | Field: 7761775, |
| 171 | Name: "common.yang_message_rule", |
| 172 | Tag: "varint,7761775,opt,name=yang_message_rule,enum=common.MessageParserOption", |
| 173 | Filename: "voltha_protos/yang_options.proto", |
| 174 | } |
| 175 | |
| 176 | var E_YangInlineNode = &proto.ExtensionDesc{ |
| 177 | ExtendedType: (*descriptor.FieldOptions)(nil), |
| 178 | ExtensionType: (*InlineNode)(nil), |
| 179 | Field: 7761776, |
| 180 | Name: "common.yang_inline_node", |
| 181 | Tag: "bytes,7761776,opt,name=yang_inline_node", |
| 182 | Filename: "voltha_protos/yang_options.proto", |
| 183 | } |
| 184 | |
| 185 | var E_YangXmlTag = &proto.ExtensionDesc{ |
| 186 | ExtendedType: (*descriptor.MethodOptions)(nil), |
| 187 | ExtensionType: (*RpcReturnDef)(nil), |
| 188 | Field: 7761777, |
| 189 | Name: "common.yang_xml_tag", |
| 190 | Tag: "bytes,7761777,opt,name=yang_xml_tag", |
| 191 | Filename: "voltha_protos/yang_options.proto", |
| 192 | } |
| 193 | |
| 194 | func init() { |
| 195 | proto.RegisterEnum("common.MessageParserOption", MessageParserOption_name, MessageParserOption_value) |
| 196 | proto.RegisterType((*InlineNode)(nil), "common.InlineNode") |
| 197 | proto.RegisterType((*RpcReturnDef)(nil), "common.RpcReturnDef") |
| 198 | proto.RegisterExtension(E_YangChildRule) |
| 199 | proto.RegisterExtension(E_YangMessageRule) |
| 200 | proto.RegisterExtension(E_YangInlineNode) |
| 201 | proto.RegisterExtension(E_YangXmlTag) |
| 202 | } |
| 203 | |
| 204 | func init() { proto.RegisterFile("voltha_protos/yang_options.proto", fileDescriptor_e6be2fba65eb89fb) } |
| 205 | |
| 206 | var fileDescriptor_e6be2fba65eb89fb = []byte{ |
| 207 | // 452 bytes of a gzipped FileDescriptorProto |
| 208 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4d, 0x6f, 0xd3, 0x30, |
| 209 | 0x18, 0xc7, 0x69, 0x41, 0x45, 0x98, 0xad, 0x2b, 0x66, 0x12, 0x15, 0x08, 0xa8, 0x7a, 0x98, 0x26, |
| 210 | 0xd0, 0x12, 0x34, 0x6e, 0xbd, 0x75, 0x5d, 0x18, 0x95, 0xb6, 0xa4, 0xb2, 0xc2, 0x78, 0x39, 0x60, |
| 211 | 0xa5, 0xc9, 0x33, 0xc7, 0xc2, 0xb1, 0xa3, 0xd8, 0x41, 0xdb, 0x47, 0xe5, 0xc2, 0x47, 0xe0, 0xe5, |
| 212 | 0x1b, 0xa0, 0xd8, 0x09, 0x43, 0x62, 0x87, 0xde, 0xda, 0x7f, 0x9e, 0xfc, 0x7e, 0x79, 0x5e, 0xd0, |
| 213 | 0xe4, 0xab, 0x12, 0x26, 0x4f, 0x68, 0x59, 0x29, 0xa3, 0xb4, 0x7f, 0x95, 0x48, 0x46, 0x55, 0x69, |
| 214 | 0xb8, 0x92, 0xda, 0xb3, 0x19, 0x1e, 0xa4, 0xaa, 0x28, 0x94, 0x7c, 0x3c, 0x61, 0x4a, 0x31, 0x01, |
| 215 | 0xbe, 0x4d, 0xd7, 0xf5, 0x85, 0x9f, 0x81, 0x4e, 0x2b, 0x5e, 0x1a, 0x55, 0xb9, 0xca, 0xe9, 0x2b, |
| 216 | 0x84, 0x96, 0x52, 0x70, 0x09, 0xa1, 0xca, 0x00, 0x0f, 0x51, 0x9f, 0x67, 0xe3, 0xde, 0xa4, 0xb7, |
| 217 | 0x7f, 0x8f, 0xf4, 0x79, 0x86, 0x31, 0xba, 0x63, 0xae, 0x4a, 0x18, 0xf7, 0x6d, 0x62, 0x7f, 0x4f, |
| 218 | 0x23, 0xb4, 0x45, 0xca, 0x94, 0x80, 0xa9, 0x2b, 0x79, 0x0c, 0x17, 0xf8, 0x11, 0xba, 0x7b, 0x59, |
| 219 | 0x08, 0x6a, 0x12, 0xd6, 0xbe, 0x38, 0xb8, 0x2c, 0x44, 0x9c, 0x30, 0xbc, 0x87, 0x76, 0x04, 0xd7, |
| 220 | 0x86, 0x72, 0x03, 0x85, 0xa6, 0x32, 0x29, 0x3a, 0xce, 0x76, 0x13, 0x2f, 0x9b, 0x34, 0x4c, 0x0a, |
| 221 | 0x78, 0xf1, 0x1e, 0x3d, 0x3c, 0x03, 0xad, 0x13, 0x06, 0xab, 0xa4, 0xd2, 0x50, 0x45, 0xb6, 0x15, |
| 222 | 0x3c, 0x46, 0xbb, 0x67, 0xd1, 0x79, 0x40, 0xe3, 0x88, 0xae, 0xe6, 0x24, 0x08, 0x63, 0x7a, 0x1a, |
| 223 | 0x9c, 0x07, 0xa7, 0xa3, 0x5b, 0x78, 0x0f, 0x4d, 0x17, 0x24, 0x98, 0xc7, 0x01, 0x3d, 0x8a, 0xe2, |
| 224 | 0xb7, 0xf4, 0x84, 0x44, 0xef, 0x56, 0xcb, 0xf0, 0x84, 0xce, 0xc3, 0x63, 0xba, 0x88, 0xc2, 0x78, |
| 225 | 0xbe, 0x0c, 0x03, 0x32, 0xea, 0xcd, 0x18, 0xda, 0xb1, 0xb3, 0x49, 0x73, 0x2e, 0x32, 0x5a, 0xd5, |
| 226 | 0x02, 0xf0, 0x73, 0xcf, 0x4d, 0xc4, 0xeb, 0x26, 0xe2, 0xb5, 0x6a, 0x27, 0xd5, 0xe3, 0x1f, 0xdf, |
| 227 | 0xbf, 0xdd, 0x9e, 0xf4, 0xf6, 0x87, 0x87, 0x4f, 0x3c, 0x37, 0x43, 0xef, 0x86, 0x6f, 0x23, 0xdb, |
| 228 | 0x0d, 0x77, 0xd1, 0x60, 0x49, 0x2d, 0x60, 0xf6, 0x05, 0x3d, 0xb0, 0xa2, 0xc2, 0x95, 0x6e, 0xa8, |
| 229 | 0xfa, 0xb9, 0x91, 0xca, 0xb6, 0xd0, 0x3e, 0xb0, 0xb2, 0xcf, 0x68, 0x64, 0x65, 0xdc, 0xae, 0x8d, |
| 230 | 0xca, 0x66, 0x6f, 0x4f, 0xff, 0x73, 0xbd, 0xe1, 0x20, 0xb2, 0xce, 0xf4, 0xcb, 0x99, 0xee, 0x1f, |
| 231 | 0xe2, 0xce, 0x74, 0xbd, 0x73, 0x32, 0x6c, 0x68, 0xd7, 0xff, 0x67, 0x1f, 0xd1, 0x96, 0xe5, 0xb7, |
| 232 | 0x4b, 0xc5, 0xcf, 0x6e, 0xe8, 0xc3, 0xe4, 0xea, 0x2f, 0xfc, 0x77, 0x07, 0xdf, 0xed, 0xe0, 0xff, |
| 233 | 0x9e, 0x07, 0x41, 0x0d, 0xec, 0x83, 0xbd, 0x88, 0xa3, 0x83, 0x4f, 0x2f, 0x19, 0x37, 0x79, 0xbd, |
| 234 | 0x6e, 0x2a, 0x7d, 0x55, 0x82, 0x4c, 0x55, 0x95, 0xf9, 0xee, 0x9c, 0x0f, 0xda, 0x73, 0x66, 0xca, |
| 235 | 0x77, 0x9c, 0xf5, 0xc0, 0x26, 0xaf, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x45, 0xe4, 0xb5, 0xec, |
| 236 | 0xf0, 0x02, 0x00, 0x00, |
| 237 | } |