blob: 5f414fc288150a1c89ea4fbe789117080c1df122 [file] [log] [blame]
Jon Skeet68036862008-10-22 13:30:34 +01001// Protocol Buffers - Google's data interchange format
2// Copyright 2008 Google Inc.
3// http://code.google.com/p/protobuf/
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17// This file just contains partial classes for each of the
18// autogenerated classes, so that they implement
19// IDescriptorProto
20namespace Google.ProtocolBuffers.DescriptorProtos {
21
22 // TODO(jonskeet): Find a better way of fixing this. It's needed in order to
23 // cope with unknown fields during initialization.
24 public partial class DescriptorProtoFile {
25 private static readonly bool initialized = false;
26
27 internal static bool Bootstrapping {
28 get { return !initialized; }
29 }
30
31 static DescriptorProtoFile() {
32 initialized = true;
33 }
34 }
35
36 public partial class DescriptorProto : IDescriptorProto<MessageOptions> { }
37 public partial class EnumDescriptorProto : IDescriptorProto<EnumOptions> { }
38 public partial class EnumValueDescriptorProto : IDescriptorProto<EnumValueOptions> { }
39 public partial class FieldDescriptorProto : IDescriptorProto<FieldOptions> { }
40 public partial class FileDescriptorProto : IDescriptorProto<FileOptions> { }
41 public partial class MethodDescriptorProto : IDescriptorProto<MethodOptions> { }
42 public partial class ServiceDescriptorProto : IDescriptorProto<ServiceOptions> { }
43}