Ignore:
Timestamp:
2016-01-02T01:30:50+01:00 (10 years ago)
Author:
donvip
Message:

[josm_pbf] update to protobuf 2.6.1

Location:
applications/editors/josm/plugins/pbf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pbf

    • Property svn:externals
      •  

        old new  
        11proto https://github.com/scrosby/OSM-binary/trunk/src
        2 protobuf http://protobuf.googlecode.com/svn/tags/2.6.0/src/google/protobuf/
         2protobuf https://github.com/google/protobuf/tags/v2.6.1/src/google/protobuf/
  • applications/editors/josm/plugins/pbf/gen/crosby/binary/Fileformat.java

    r30658 r31905  
    117117    }
    118118
    119     public Blob getDefaultInstanceForType() {
     119    @Override
     120        public Blob getDefaultInstanceForType() {
    120121      return defaultInstance;
    121122    }
     
    193194    public static com.google.protobuf.Parser<Blob> PARSER =
    194195        new com.google.protobuf.AbstractParser<Blob>() {
    195       public Blob parsePartialFrom(
     196      @Override
     197        public Blob parsePartialFrom(
    196198          com.google.protobuf.CodedInputStream input,
    197199          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    216218     * </pre>
    217219     */
    218     public boolean hasRaw() {
     220    @Override
     221        public boolean hasRaw() {
    219222      return ((bitField0_ & 0x00000001) == 0x00000001);
    220223    }
     
    226229     * </pre>
    227230     */
    228     public com.google.protobuf.ByteString getRaw() {
     231    @Override
     232        public com.google.protobuf.ByteString getRaw() {
    229233      return raw_;
    230234    }
     
    239243     * </pre>
    240244     */
    241     public boolean hasRawSize() {
     245    @Override
     246        public boolean hasRawSize() {
    242247      return ((bitField0_ & 0x00000002) == 0x00000002);
    243248    }
     
    249254     * </pre>
    250255     */
    251     public int getRawSize() {
     256    @Override
     257        public int getRawSize() {
    252258      return rawSize_;
    253259    }
     
    262268     * </pre>
    263269     */
    264     public boolean hasZlibData() {
     270    @Override
     271        public boolean hasZlibData() {
    265272      return ((bitField0_ & 0x00000004) == 0x00000004);
    266273    }
     
    272279     * </pre>
    273280     */
    274     public com.google.protobuf.ByteString getZlibData() {
     281    @Override
     282        public com.google.protobuf.ByteString getZlibData() {
    275283      return zlibData_;
    276284    }
     
    285293     * </pre>
    286294     */
    287     public boolean hasLzmaData() {
     295    @Override
     296        public boolean hasLzmaData() {
    288297      return ((bitField0_ & 0x00000008) == 0x00000008);
    289298    }
     
    295304     * </pre>
    296305     */
    297     public com.google.protobuf.ByteString getLzmaData() {
     306    @Override
     307        public com.google.protobuf.ByteString getLzmaData() {
    298308      return lzmaData_;
    299309    }
     
    308318     * </pre>
    309319     */
    310     @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() {
     320    @Override
     321        @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() {
    311322      return ((bitField0_ & 0x00000010) == 0x00000010);
    312323    }
     
    318329     * </pre>
    319330     */
    320     @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() {
     331    @Override
     332        @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() {
    321333      return oBSOLETEBzip2Data_;
    322334    }
     
    330342    }
    331343    private byte memoizedIsInitialized = -1;
    332     public final boolean isInitialized() {
     344    @Override
     345        public final boolean isInitialized() {
    333346      byte isInitialized = memoizedIsInitialized;
    334347      if (isInitialized == 1) return true;
     
    339352    }
    340353
    341     public void writeTo(com.google.protobuf.CodedOutputStream output)
     354    @Override
     355        public void writeTo(com.google.protobuf.CodedOutputStream output)
    342356                        throws java.io.IOException {
    343357      getSerializedSize();
     
    361375
    362376    private int memoizedSerializedSize = -1;
    363     public int getSerializedSize() {
     377    @Override
     378        public int getSerializedSize() {
    364379      int size = memoizedSerializedSize;
    365380      if (size != -1) return size;
     
    452467
    453468    public static Builder newBuilder() { return Builder.create(); }
    454     public Builder newBuilderForType() { return newBuilder(); }
     469    @Override
     470        public Builder newBuilderForType() { return newBuilder(); }
    455471    public static Builder newBuilder(crosby.binary.Fileformat.Blob prototype) {
    456472      return newBuilder().mergeFrom(prototype);
    457473    }
    458     public Builder toBuilder() { return newBuilder(this); }
     474    @Override
     475        public Builder toBuilder() { return newBuilder(this); }
    459476
    460477    /**
     
    478495      }
    479496
    480       public Builder clear() {
     497      @Override
     498        public Builder clear() {
    481499        super.clear();
    482500        raw_ = com.google.protobuf.ByteString.EMPTY;
     
    493511      }
    494512
    495       public Builder clone() {
     513      @Override
     514        public Builder clone() {
    496515        return create().mergeFrom(buildPartial());
    497516      }
    498517
    499       public crosby.binary.Fileformat.Blob getDefaultInstanceForType() {
     518      @Override
     519        public crosby.binary.Fileformat.Blob getDefaultInstanceForType() {
    500520        return crosby.binary.Fileformat.Blob.getDefaultInstance();
    501521      }
    502522
    503       public crosby.binary.Fileformat.Blob build() {
     523      @Override
     524        public crosby.binary.Fileformat.Blob build() {
    504525        crosby.binary.Fileformat.Blob result = buildPartial();
    505526        if (!result.isInitialized()) {
     
    509530      }
    510531
    511       public crosby.binary.Fileformat.Blob buildPartial() {
     532      @Override
     533        public crosby.binary.Fileformat.Blob buildPartial() {
    512534        crosby.binary.Fileformat.Blob result = new crosby.binary.Fileformat.Blob(this);
    513535        int from_bitField0_ = bitField0_;
     
    537559      }
    538560
    539       public Builder mergeFrom(crosby.binary.Fileformat.Blob other) {
     561      @Override
     562        public Builder mergeFrom(crosby.binary.Fileformat.Blob other) {
    540563        if (other == crosby.binary.Fileformat.Blob.getDefaultInstance()) return this;
    541564        if (other.hasRaw()) {
     
    559582      }
    560583
    561       public final boolean isInitialized() {
     584      @Override
     585        public final boolean isInitialized() {
    562586        return true;
    563587      }
    564588
    565       public Builder mergeFrom(
     589      @Override
     590        public Builder mergeFrom(
    566591          com.google.protobuf.CodedInputStream input,
    567592          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    590615       * </pre>
    591616       */
    592       public boolean hasRaw() {
     617      @Override
     618        public boolean hasRaw() {
    593619        return ((bitField0_ & 0x00000001) == 0x00000001);
    594620      }
     
    600626       * </pre>
    601627       */
    602       public com.google.protobuf.ByteString getRaw() {
     628      @Override
     629        public com.google.protobuf.ByteString getRaw() {
    603630        return raw_;
    604631      }
     
    616643  bitField0_ |= 0x00000001;
    617644        raw_ = value;
    618        
     645
    619646        return this;
    620647      }
     
    629656        bitField0_ = (bitField0_ & ~0x00000001);
    630657        raw_ = getDefaultInstance().getRaw();
    631        
     658
    632659        return this;
    633660      }
     
    641668       * </pre>
    642669       */
    643       public boolean hasRawSize() {
     670      @Override
     671        public boolean hasRawSize() {
    644672        return ((bitField0_ & 0x00000002) == 0x00000002);
    645673      }
     
    651679       * </pre>
    652680       */
    653       public int getRawSize() {
     681      @Override
     682        public int getRawSize() {
    654683        return rawSize_;
    655684      }
     
    664693        bitField0_ |= 0x00000002;
    665694        rawSize_ = value;
    666        
     695
    667696        return this;
    668697      }
     
    677706        bitField0_ = (bitField0_ & ~0x00000002);
    678707        rawSize_ = 0;
    679        
     708
    680709        return this;
    681710      }
     
    689718       * </pre>
    690719       */
    691       public boolean hasZlibData() {
     720      @Override
     721        public boolean hasZlibData() {
    692722        return ((bitField0_ & 0x00000004) == 0x00000004);
    693723      }
     
    699729       * </pre>
    700730       */
    701       public com.google.protobuf.ByteString getZlibData() {
     731      @Override
     732        public com.google.protobuf.ByteString getZlibData() {
    702733        return zlibData_;
    703734      }
     
    715746  bitField0_ |= 0x00000004;
    716747        zlibData_ = value;
    717        
     748
    718749        return this;
    719750      }
     
    728759        bitField0_ = (bitField0_ & ~0x00000004);
    729760        zlibData_ = getDefaultInstance().getZlibData();
    730        
     761
    731762        return this;
    732763      }
     
    740771       * </pre>
    741772       */
    742       public boolean hasLzmaData() {
     773      @Override
     774        public boolean hasLzmaData() {
    743775        return ((bitField0_ & 0x00000008) == 0x00000008);
    744776      }
     
    750782       * </pre>
    751783       */
    752       public com.google.protobuf.ByteString getLzmaData() {
     784      @Override
     785        public com.google.protobuf.ByteString getLzmaData() {
    753786        return lzmaData_;
    754787      }
     
    766799  bitField0_ |= 0x00000008;
    767800        lzmaData_ = value;
    768        
     801
    769802        return this;
    770803      }
     
    779812        bitField0_ = (bitField0_ & ~0x00000008);
    780813        lzmaData_ = getDefaultInstance().getLzmaData();
    781        
     814
    782815        return this;
    783816      }
     
    791824       * </pre>
    792825       */
    793       @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() {
     826      @Override
     827        @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() {
    794828        return ((bitField0_ & 0x00000010) == 0x00000010);
    795829      }
     
    801835       * </pre>
    802836       */
    803       @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() {
     837      @Override
     838        @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() {
    804839        return oBSOLETEBzip2Data_;
    805840      }
     
    817852  bitField0_ |= 0x00000010;
    818853        oBSOLETEBzip2Data_ = value;
    819        
     854
    820855        return this;
    821856      }
     
    830865        bitField0_ = (bitField0_ & ~0x00000010);
    831866        oBSOLETEBzip2Data_ = getDefaultInstance().getOBSOLETEBzip2Data();
    832        
     867
    833868        return this;
    834869      }
     
    900935    }
    901936
    902     public BlobHeader getDefaultInstanceForType() {
     937    @Override
     938        public BlobHeader getDefaultInstanceForType() {
    903939      return defaultInstance;
    904940    }
     
    9671003    public static com.google.protobuf.Parser<BlobHeader> PARSER =
    9681004        new com.google.protobuf.AbstractParser<BlobHeader>() {
    969       public BlobHeader parsePartialFrom(
     1005      @Override
     1006        public BlobHeader parsePartialFrom(
    9701007          com.google.protobuf.CodedInputStream input,
    9711008          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    9861023     * <code>required string type = 1;</code>
    9871024     */
    988     public boolean hasType() {
     1025    @Override
     1026        public boolean hasType() {
    9891027      return ((bitField0_ & 0x00000001) == 0x00000001);
    9901028    }
     
    9921030     * <code>required string type = 1;</code>
    9931031     */
    994     public java.lang.String getType() {
     1032    @Override
     1033        public java.lang.String getType() {
    9951034      java.lang.Object ref = type_;
    9961035      if (ref instanceof java.lang.String) {
    9971036        return (java.lang.String) ref;
    9981037      } else {
    999         com.google.protobuf.ByteString bs = 
     1038        com.google.protobuf.ByteString bs =
    10001039            (com.google.protobuf.ByteString) ref;
    10011040        java.lang.String s = bs.toStringUtf8();
     
    10091048     * <code>required string type = 1;</code>
    10101049     */
    1011     public com.google.protobuf.ByteString
     1050    @Override
     1051        public com.google.protobuf.ByteString
    10121052        getTypeBytes() {
    10131053      java.lang.Object ref = type_;
    10141054      if (ref instanceof java.lang.String) {
    1015         com.google.protobuf.ByteString b = 
     1055        com.google.protobuf.ByteString b =
    10161056            com.google.protobuf.ByteString.copyFromUtf8(
    10171057                (java.lang.String) ref);
     
    10281068     * <code>optional bytes indexdata = 2;</code>
    10291069     */
    1030     public boolean hasIndexdata() {
     1070    @Override
     1071        public boolean hasIndexdata() {
    10311072      return ((bitField0_ & 0x00000002) == 0x00000002);
    10321073    }
     
    10341075     * <code>optional bytes indexdata = 2;</code>
    10351076     */
    1036     public com.google.protobuf.ByteString getIndexdata() {
     1077    @Override
     1078        public com.google.protobuf.ByteString getIndexdata() {
    10371079      return indexdata_;
    10381080    }
     
    10431085     * <code>required int32 datasize = 3;</code>
    10441086     */
    1045     public boolean hasDatasize() {
     1087    @Override
     1088        public boolean hasDatasize() {
    10461089      return ((bitField0_ & 0x00000004) == 0x00000004);
    10471090    }
     
    10491092     * <code>required int32 datasize = 3;</code>
    10501093     */
    1051     public int getDatasize() {
     1094    @Override
     1095        public int getDatasize() {
    10521096      return datasize_;
    10531097    }
     
    10591103    }
    10601104    private byte memoizedIsInitialized = -1;
    1061     public final boolean isInitialized() {
     1105    @Override
     1106        public final boolean isInitialized() {
    10621107      byte isInitialized = memoizedIsInitialized;
    10631108      if (isInitialized == 1) return true;
     
    10761121    }
    10771122
    1078     public void writeTo(com.google.protobuf.CodedOutputStream output)
     1123    @Override
     1124        public void writeTo(com.google.protobuf.CodedOutputStream output)
    10791125                        throws java.io.IOException {
    10801126      getSerializedSize();
     
    10921138
    10931139    private int memoizedSerializedSize = -1;
    1094     public int getSerializedSize() {
     1140    @Override
     1141        public int getSerializedSize() {
    10951142      int size = memoizedSerializedSize;
    10961143      if (size != -1) return size;
     
    11751222
    11761223    public static Builder newBuilder() { return Builder.create(); }
    1177     public Builder newBuilderForType() { return newBuilder(); }
     1224    @Override
     1225        public Builder newBuilderForType() { return newBuilder(); }
    11781226    public static Builder newBuilder(crosby.binary.Fileformat.BlobHeader prototype) {
    11791227      return newBuilder().mergeFrom(prototype);
    11801228    }
    1181     public Builder toBuilder() { return newBuilder(this); }
     1229    @Override
     1230        public Builder toBuilder() { return newBuilder(this); }
    11821231
    11831232    /**
     
    12011250      }
    12021251
    1203       public Builder clear() {
     1252      @Override
     1253        public Builder clear() {
    12041254        super.clear();
    12051255        type_ = "";
     
    12121262      }
    12131263
    1214       public Builder clone() {
     1264      @Override
     1265        public Builder clone() {
    12151266        return create().mergeFrom(buildPartial());
    12161267      }
    12171268
    1218       public crosby.binary.Fileformat.BlobHeader getDefaultInstanceForType() {
     1269      @Override
     1270        public crosby.binary.Fileformat.BlobHeader getDefaultInstanceForType() {
    12191271        return crosby.binary.Fileformat.BlobHeader.getDefaultInstance();
    12201272      }
    12211273
    1222       public crosby.binary.Fileformat.BlobHeader build() {
     1274      @Override
     1275        public crosby.binary.Fileformat.BlobHeader build() {
    12231276        crosby.binary.Fileformat.BlobHeader result = buildPartial();
    12241277        if (!result.isInitialized()) {
     
    12281281      }
    12291282
    1230       public crosby.binary.Fileformat.BlobHeader buildPartial() {
     1283      @Override
     1284        public crosby.binary.Fileformat.BlobHeader buildPartial() {
    12311285        crosby.binary.Fileformat.BlobHeader result = new crosby.binary.Fileformat.BlobHeader(this);
    12321286        int from_bitField0_ = bitField0_;
     
    12481302      }
    12491303
    1250       public Builder mergeFrom(crosby.binary.Fileformat.BlobHeader other) {
     1304      @Override
     1305        public Builder mergeFrom(crosby.binary.Fileformat.BlobHeader other) {
    12511306        if (other == crosby.binary.Fileformat.BlobHeader.getDefaultInstance()) return this;
    12521307        if (other.hasType()) {
    12531308          bitField0_ |= 0x00000001;
    12541309          type_ = other.type_;
    1255          
     1310
    12561311        }
    12571312        if (other.hasIndexdata()) {
     
    12661321      }
    12671322
    1268       public final boolean isInitialized() {
     1323      @Override
     1324        public final boolean isInitialized() {
    12691325        if (!hasType()) {
    1270          
     1326
    12711327          return false;
    12721328        }
    12731329        if (!hasDatasize()) {
    1274          
     1330
    12751331          return false;
    12761332        }
     
    12781334      }
    12791335
    1280       public Builder mergeFrom(
     1336      @Override
     1337        public Builder mergeFrom(
    12811338          com.google.protobuf.CodedInputStream input,
    12821339          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    13011358       * <code>required string type = 1;</code>
    13021359       */
    1303       public boolean hasType() {
     1360      @Override
     1361        public boolean hasType() {
    13041362        return ((bitField0_ & 0x00000001) == 0x00000001);
    13051363      }
     
    13071365       * <code>required string type = 1;</code>
    13081366       */
    1309       public java.lang.String getType() {
     1367      @Override
     1368        public java.lang.String getType() {
    13101369        java.lang.Object ref = type_;
    13111370        if (!(ref instanceof java.lang.String)) {
     
    13241383       * <code>required string type = 1;</code>
    13251384       */
    1326       public com.google.protobuf.ByteString
     1385      @Override
     1386        public com.google.protobuf.ByteString
    13271387          getTypeBytes() {
    13281388        java.lang.Object ref = type_;
    13291389        if (ref instanceof String) {
    1330           com.google.protobuf.ByteString b = 
     1390          com.google.protobuf.ByteString b =
    13311391              com.google.protobuf.ByteString.copyFromUtf8(
    13321392                  (java.lang.String) ref);
     
    13471407  bitField0_ |= 0x00000001;
    13481408        type_ = value;
    1349        
     1409
    13501410        return this;
    13511411      }
     
    13561416        bitField0_ = (bitField0_ & ~0x00000001);
    13571417        type_ = getDefaultInstance().getType();
    1358        
     1418
    13591419        return this;
    13601420      }
     
    13691429  bitField0_ |= 0x00000001;
    13701430        type_ = value;
    1371        
     1431
    13721432        return this;
    13731433      }
     
    13771437       * <code>optional bytes indexdata = 2;</code>
    13781438       */
    1379       public boolean hasIndexdata() {
     1439      @Override
     1440        public boolean hasIndexdata() {
    13801441        return ((bitField0_ & 0x00000002) == 0x00000002);
    13811442      }
     
    13831444       * <code>optional bytes indexdata = 2;</code>
    13841445       */
    1385       public com.google.protobuf.ByteString getIndexdata() {
     1446      @Override
     1447        public com.google.protobuf.ByteString getIndexdata() {
    13861448        return indexdata_;
    13871449      }
     
    13951457  bitField0_ |= 0x00000002;
    13961458        indexdata_ = value;
    1397        
     1459
    13981460        return this;
    13991461      }
     
    14041466        bitField0_ = (bitField0_ & ~0x00000002);
    14051467        indexdata_ = getDefaultInstance().getIndexdata();
    1406        
     1468
    14071469        return this;
    14081470      }
     
    14121474       * <code>required int32 datasize = 3;</code>
    14131475       */
    1414       public boolean hasDatasize() {
     1476      @Override
     1477        public boolean hasDatasize() {
    14151478        return ((bitField0_ & 0x00000004) == 0x00000004);
    14161479      }
     
    14181481       * <code>required int32 datasize = 3;</code>
    14191482       */
    1420       public int getDatasize() {
     1483      @Override
     1484        public int getDatasize() {
    14211485        return datasize_;
    14221486      }
     
    14271491        bitField0_ |= 0x00000004;
    14281492        datasize_ = value;
    1429        
     1493
    14301494        return this;
    14311495      }
     
    14361500        bitField0_ = (bitField0_ & ~0x00000004);
    14371501        datasize_ = 0;
    1438        
     1502
    14391503        return this;
    14401504      }
Note: See TracChangeset for help on using the changeset viewer.