Skip to content

Commit 462746c

Browse files
docs: clarified where ordering_key will be written if write_metadata is set (#1675)
* docs: clarified where ordering_key will be written if write_metadata is set PiperOrigin-RevId: 551210991 Source-Link: googleapis/googleapis@7c762d7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/15fe4c5ff5ebd52911b429b05b992e232f53351e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTVmZTRjNWZmNWViZDUyOTExYjQyOWIwNWI5OTJlMjMyZjUzMzUxZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent a7eb5c1 commit 462746c

File tree

4 files changed

+35
-11
lines changed

4 files changed

+35
-11
lines changed

proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java

+25-5
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,11 @@ public interface AvroConfigOrBuilder
682682
*
683683
* <pre>
684684
* When true, write the subscription name, message_id, publish_time,
685-
* attributes, and ordering_key as additional fields in the output.
685+
* attributes, and ordering_key as additional fields in the output. The
686+
* subscription name, message_id, and publish_time fields are put in their
687+
* own fields while all other message properties other than data (for
688+
* example, an ordering_key, if present) are added as entries in the
689+
* attributes map.
686690
* </pre>
687691
*
688692
* <code>bool write_metadata = 1;</code>
@@ -741,7 +745,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
741745
*
742746
* <pre>
743747
* When true, write the subscription name, message_id, publish_time,
744-
* attributes, and ordering_key as additional fields in the output.
748+
* attributes, and ordering_key as additional fields in the output. The
749+
* subscription name, message_id, and publish_time fields are put in their
750+
* own fields while all other message properties other than data (for
751+
* example, an ordering_key, if present) are added as entries in the
752+
* attributes map.
745753
* </pre>
746754
*
747755
* <code>bool write_metadata = 1;</code>
@@ -1104,7 +1112,11 @@ public Builder mergeFrom(
11041112
*
11051113
* <pre>
11061114
* When true, write the subscription name, message_id, publish_time,
1107-
* attributes, and ordering_key as additional fields in the output.
1115+
* attributes, and ordering_key as additional fields in the output. The
1116+
* subscription name, message_id, and publish_time fields are put in their
1117+
* own fields while all other message properties other than data (for
1118+
* example, an ordering_key, if present) are added as entries in the
1119+
* attributes map.
11081120
* </pre>
11091121
*
11101122
* <code>bool write_metadata = 1;</code>
@@ -1120,7 +1132,11 @@ public boolean getWriteMetadata() {
11201132
*
11211133
* <pre>
11221134
* When true, write the subscription name, message_id, publish_time,
1123-
* attributes, and ordering_key as additional fields in the output.
1135+
* attributes, and ordering_key as additional fields in the output. The
1136+
* subscription name, message_id, and publish_time fields are put in their
1137+
* own fields while all other message properties other than data (for
1138+
* example, an ordering_key, if present) are added as entries in the
1139+
* attributes map.
11241140
* </pre>
11251141
*
11261142
* <code>bool write_metadata = 1;</code>
@@ -1140,7 +1156,11 @@ public Builder setWriteMetadata(boolean value) {
11401156
*
11411157
* <pre>
11421158
* When true, write the subscription name, message_id, publish_time,
1143-
* attributes, and ordering_key as additional fields in the output.
1159+
* attributes, and ordering_key as additional fields in the output. The
1160+
* subscription name, message_id, and publish_time fields are put in their
1161+
* own fields while all other message properties other than data (for
1162+
* example, an ordering_key, if present) are added as entries in the
1163+
* attributes map.
11441164
* </pre>
11451165
*
11461166
* <code>bool write_metadata = 1;</code>

proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
136136
* </code>
137137
*
138138
* @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See
139-
* google/pubsub/v1/pubsub.proto;l=1222
139+
* google/pubsub/v1/pubsub.proto;l=1226
140140
* @return The returnImmediately.
141141
*/
142142
@java.lang.Override
@@ -687,7 +687,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
687687
* </code>
688688
*
689689
* @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See
690-
* google/pubsub/v1/pubsub.proto;l=1222
690+
* google/pubsub/v1/pubsub.proto;l=1226
691691
* @return The returnImmediately.
692692
*/
693693
@java.lang.Override
@@ -713,7 +713,7 @@ public boolean getReturnImmediately() {
713713
* </code>
714714
*
715715
* @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See
716-
* google/pubsub/v1/pubsub.proto;l=1222
716+
* google/pubsub/v1/pubsub.proto;l=1226
717717
* @param value The returnImmediately to set.
718718
* @return This builder for chaining.
719719
*/
@@ -743,7 +743,7 @@ public Builder setReturnImmediately(boolean value) {
743743
* </code>
744744
*
745745
* @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See
746-
* google/pubsub/v1/pubsub.proto;l=1222
746+
* google/pubsub/v1/pubsub.proto;l=1226
747747
* @return This builder for chaining.
748748
*/
749749
@java.lang.Deprecated

proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public interface PullRequestOrBuilder
7171
* </code>
7272
*
7373
* @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See
74-
* google/pubsub/v1/pubsub.proto;l=1222
74+
* google/pubsub/v1/pubsub.proto;l=1226
7575
* @return The returnImmediately.
7676
*/
7777
@java.lang.Deprecated

proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto

+5-1
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,11 @@ message CloudStorageConfig {
10301030
// Message payloads and metadata will be written to files as an Avro binary.
10311031
message AvroConfig {
10321032
// When true, write the subscription name, message_id, publish_time,
1033-
// attributes, and ordering_key as additional fields in the output.
1033+
// attributes, and ordering_key as additional fields in the output. The
1034+
// subscription name, message_id, and publish_time fields are put in their
1035+
// own fields while all other message properties other than data (for
1036+
// example, an ordering_key, if present) are added as entries in the
1037+
// attributes map.
10341038
bool write_metadata = 1;
10351039
}
10361040

0 commit comments

Comments
 (0)