~ubuntu-branches/ubuntu/oneiric/protobuf/oneiric

« back to all changes in this revision

Viewing changes to python/google/protobuf/internal/more_messages.proto

  • Committer: Bazaar Package Importer
  • Author(s): Iustin Pop
  • Date: 2008-08-03 11:01:44 UTC
  • Revision ID: james.westby@ubuntu.com-20080803110144-uyiw41bf1m2oe17t
Tags: upstream-2.0.0~b
ImportĀ upstreamĀ versionĀ 2.0.0~b

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// 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
// Author: robinson@google.com (Will Robinson)
 
18
 
 
19
 
 
20
package google.protobuf.internal;
 
21
 
 
22
// A message where tag numbers are listed out of order, to allow us to test our
 
23
// canonicalization of serialized output, which should always be in tag order.
 
24
// We also mix in some extensions for extra fun.
 
25
message OutOfOrderFields {
 
26
  optional   sint32 optional_sint32   =  5;
 
27
  extensions 4 to 4;
 
28
  optional   uint32 optional_uint32   =  3;
 
29
  extensions 2 to 2;
 
30
  optional    int32 optional_int32    =  1;
 
31
};
 
32
 
 
33
 
 
34
extend OutOfOrderFields {
 
35
  optional   uint64 optional_uint64   =  4;
 
36
  optional    int64 optional_int64    =  2;
 
37
}