Skip to content

Commit 5a00163

Browse files
authored
Update some URLs to their new locations (protocolbuffers#195)
Although https://developers.google.com/protocol-buffers/ automatically redirects to https://protobuf.dev/, the "fragment" part is lost (e.g., https://developers.google.com/protocol-buffers/docs/proto3#scalar redirects to https://protobuf.dev/programming-guides/proto3/ instead of https://protobuf.dev/programming-guides/proto3/#scalar). This commit fixes this issue.
1 parent b097aad commit 5a00163

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+114
-114
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ var message = proto.my.package.MyMessage();
120120
```
121121

122122
If unfamiliar with Closure or its compiler, consider reviewing
123-
[Closure documentation](https://developers.google.com/closure/library).
123+
[Closure documentation](https://github.com/google/closure-library).
124124

125125
CommonJS imports
126126
----------------

binary/arith.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

binary/arith_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

binary/constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

binary/decoder.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are
@@ -54,7 +54,7 @@ goog.require('jspb.utils');
5454

5555
/**
5656
* BinaryDecoder implements the decoders for all the wire types specified in
57-
* https://developers.google.com/protocol-buffers/docs/encoding.
57+
* https://protobuf.dev/programming-guides/encoding/.
5858
*
5959
* @param {jspb.ByteSource=} opt_bytes The bytes we're reading from.
6060
* @param {number=} opt_start The optional offset to start reading at.
@@ -301,7 +301,7 @@ jspb.BinaryDecoder.prototype.getError = function() {
301301
*
302302
* Decoding varints requires doing some funny base-128 math - for more
303303
* details on the format, see
304-
* https://developers.google.com/protocol-buffers/docs/encoding
304+
* https://protobuf.dev/programming-guides/encoding/
305305
*
306306
* @param {function(number, number): T} convert Conversion function to produce
307307
* the result value, takes parameters (lowBits, highBits).
@@ -358,7 +358,7 @@ jspb.BinaryDecoder.prototype.readSplitVarint64 = function(convert) {
358358
*
359359
* Zigzag encoding is a modification of varint encoding that reduces the
360360
* storage overhead for small negative integers - for more details on the
361-
* format, see https://developers.google.com/protocol-buffers/docs/encoding
361+
* format, see https://protobuf.dev/programming-guides/encoding/
362362
*
363363
* @param {function(number, number): T} convert Conversion function to produce
364364
* the result value, takes parameters (lowBits, highBits).
@@ -439,7 +439,7 @@ jspb.BinaryDecoder.prototype.unskipVarint = function(value) {
439439
*
440440
* Decoding varints requires doing some funny base-128 math - for more
441441
* details on the format, see
442-
* https://developers.google.com/protocol-buffers/docs/encoding
442+
* https://protobuf.dev/programming-guides/encoding/
443443
*
444444
* @return {number} The decoded unsigned 32-bit varint.
445445
* @export
@@ -554,7 +554,7 @@ jspb.BinaryDecoder.prototype.readSignedVarint32String = function() {
554554
*
555555
* Zigzag encoding is a modification of varint encoding that reduces the
556556
* storage overhead for small negative integers - for more details on the
557-
* format, see https://developers.google.com/protocol-buffers/docs/encoding
557+
* format, see https://protobuf.dev/programming-guides/encoding/
558558
*
559559
* @return {number} The decoded signed, zigzag-encoded 32-bit varint.
560560
* @export
@@ -625,7 +625,7 @@ jspb.BinaryDecoder.prototype.readSignedVarint64String = function() {
625625
*
626626
* Zigzag encoding is a modification of varint encoding that reduces the
627627
* storage overhead for small negative integers - for more details on the
628-
* format, see https://developers.google.com/protocol-buffers/docs/encoding
628+
* format, see https://protobuf.dev/programming-guides/encoding/
629629
*
630630
* @return {number} The decoded zigzag varint. Precision will be lost if the
631631
* integer exceeds 2^53.
@@ -643,7 +643,7 @@ jspb.BinaryDecoder.prototype.readZigzagVarint64 = function() {
643643
*
644644
* Zigzag encoding is a modification of varint encoding that reduces the
645645
* storage overhead for small negative integers - for more details on the
646-
* format, see https://developers.google.com/protocol-buffers/docs/encoding
646+
* format, see https://protobuf.dev/programming-guides/encoding/
647647
*
648648
* @return {string} The decoded zigzag varint in hash64 format.
649649
* @export
@@ -659,7 +659,7 @@ jspb.BinaryDecoder.prototype.readZigzagVarintHash64 = function() {
659659
*
660660
* Zigzag encoding is a modification of varint encoding that reduces the
661661
* storage overhead for small negative integers - for more details on the
662-
* format, see https://developers.google.com/protocol-buffers/docs/encoding
662+
* format, see https://protobuf.dev/programming-guides/encoding/
663663
*
664664
* @return {string} The decoded signed, zigzag-encoded 64-bit varint as a
665665
* string.

binary/decoder_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

binary/encoder.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are
@@ -45,7 +45,7 @@ goog.require('jspb.utils');
4545

4646
/**
4747
* BinaryEncoder implements encoders for all the wire types specified in
48-
* https://developers.google.com/protocol-buffers/docs/encoding.
48+
* https://protobuf.dev/programming-guides/encoding/.
4949
*
5050
* @constructor
5151
* @struct

binary/message_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

binary/proto_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

binary/reader.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are
@@ -56,7 +56,7 @@ goog.require('jspb.utils');
5656

5757
/**
5858
* BinaryReader implements the decoders for all the wire types specified in
59-
* https://developers.google.com/protocol-buffers/docs/encoding.
59+
* https://protobuf.dev/programming-guides/encoding/.
6060
*
6161
* @param {jspb.ByteSource=} opt_bytes The bytes we're reading from.
6262
* @param {number=} opt_start The optional offset to start reading at.

binary/reader_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

binary/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

binary/utils_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

binary/writer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are
@@ -71,7 +71,7 @@ goog.require('jspb.utils');
7171

7272
/**
7373
* BinaryWriter implements encoders for all the wire types specified in
74-
* https://developers.google.com/protocol-buffers/docs/encoding.
74+
* https://protobuf.dev/programming-guides/encoding/.
7575
*
7676
* @constructor
7777
* @struct

binary/writer_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

commonjs/import_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2016 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

commonjs/strict_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2016 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

commonjs/test6/test6.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2016 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

commonjs/test7/test7.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2016 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/binary/arith_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/binary/decoder_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/binary/proto_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/binary/reader_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/binary/utils_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/binary/writer_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/commonjs/import_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2016 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/commonjs/test6/test6.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2016 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/commonjs/test7/test7.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2016 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/data.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/debug_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/message_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/proto3_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/proto3_test.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/test.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/test2.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/test3.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

compatibility_tests/v3.0.0/test4.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Protocol Buffers - Google's data interchange format
22
// Copyright 2008 Google Inc. All rights reserved.
3-
// https://developers.google.com/protocol-buffers/
3+
// https://protobuf.dev/
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are

0 commit comments

Comments
 (0)