feat: Add SchemaViolationReason to IngestionFailureEvent · googleapis/googleapis@c1af7f2 · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit c1af7f2

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add SchemaViolationReason to IngestionFailureEvent
docs: Standardize spelling of "acknowledgment" in Pub/Sub protos PiperOrigin-RevId: 761506540
1 parent 1275223 commit c1af7f2

File tree

1 file changed

+66
-24
lines changed

1 file changed

+66
-24
lines changed

google/pubsub/v1/pubsub.proto

Lines changed: 66 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,10 @@ message IngestionFailureEvent {
549549
// occurs, one or more Avro objects won't be ingested.
550550
message AvroFailureReason {}
551551

552+
// Set when a Pub/Sub message fails to get published due to a schema
553+
// validation violation.
554+
message SchemaViolationReason {}
555+
552556
// Failure when ingesting from a Cloud Storage source.
553557
message CloudStorageFailure {
554558
// Optional. Name of the Cloud Storage bucket used for ingestion.
@@ -572,6 +576,10 @@ message IngestionFailureEvent {
572576
// being published.
573577
ApiViolationReason api_violation_reason = 6
574578
[(google.api.field_behavior) = OPTIONAL];
579+
580+
// Optional. The Pub/Sub message failed schema validation.
581+
SchemaViolationReason schema_violation_reason = 7
582+
[(google.api.field_behavior) = OPTIONAL];
575583
}
576584
}
577585

@@ -596,6 +604,10 @@ message IngestionFailureEvent {
596604
// being published.
597605
ApiViolationReason api_violation_reason = 5
598606
[(google.api.field_behavior) = OPTIONAL];
607+
608+
// Optional. The Pub/Sub message failed schema validation.
609+
SchemaViolationReason schema_violation_reason = 6
610+
[(google.api.field_behavior) = OPTIONAL];
599611
}
600612
}
601613

@@ -620,6 +632,10 @@ message IngestionFailureEvent {
620632
// being published.
621633
ApiViolationReason api_violation_reason = 5
622634
[(google.api.field_behavior) = OPTIONAL];
635+
636+
// Optional. The Pub/Sub message failed schema validation.
637+
SchemaViolationReason schema_violation_reason = 6
638+
[(google.api.field_behavior) = OPTIONAL];
623639
}
624640
}
625641

@@ -644,6 +660,29 @@ message IngestionFailureEvent {
644660
// being published.
645661
ApiViolationReason api_violation_reason = 5
646662
[(google.api.field_behavior) = OPTIONAL];
663+
664+
// Optional. The Pub/Sub message failed schema validation.
665+
SchemaViolationReason schema_violation_reason = 6
666+
[(google.api.field_behavior) = OPTIONAL];
667+
}
668+
}
669+
670+
// Failure when ingesting from an AWS Kinesis source.
671+
message AwsKinesisFailureReason {
672+
// Optional. The stream ARN of the Kinesis stream being ingested from.
673+
string stream_arn = 1 [(google.api.field_behavior) = OPTIONAL];
674+
675+
// Optional. The partition key of the message that failed to be ingested.
676+
string partition_key = 2 [(google.api.field_behavior) = OPTIONAL];
677+
678+
// Optional. The sequence number of the message that failed to be ingested.
679+
string sequence_number = 3 [(google.api.field_behavior) = OPTIONAL];
680+
681+
// Reason why ingestion failed for the specified message.
682+
oneof reason {
683+
// Optional. The Pub/Sub message failed schema validation.
684+
SchemaViolationReason schema_violation_reason = 4
685+
[(google.api.field_behavior) = OPTIONAL];
647686
}
648687
}
649688

@@ -670,6 +709,10 @@ message IngestionFailureEvent {
670709
// Optional. Failure when ingesting from Confluent Cloud.
671710
ConfluentCloudFailureReason confluent_cloud_failure = 6
672711
[(google.api.field_behavior) = OPTIONAL];
712+
713+
// Optional. Failure when ingesting from AWS Kinesis.
714+
AwsKinesisFailureReason aws_kinesis_failure = 7
715+
[(google.api.field_behavior) = OPTIONAL];
673716
}
674717
}
675718

@@ -1128,7 +1171,7 @@ service Subscriber {
11281171
}
11291172

11301173
// Establishes a stream with the server, which sends messages down to the
1131-
// client. The client streams acknowledgements and ack deadline modifications
1174+
// client. The client streams acknowledgments and ack deadline modifications
11321175
// back to the server. The server will close the stream and return the status
11331176
// on any error. The server may close the stream with status `UNAVAILABLE` to
11341177
// reassign server-side resources, in which case, the client should
@@ -1394,8 +1437,8 @@ message Subscription {
13941437
//
13951438
// If not set, the default retry policy is applied. This generally implies
13961439
// that messages will be retried as soon as possible for healthy subscribers.
1397-
// RetryPolicy will be triggered on NACKs or acknowledgement deadline
1398-
// exceeded events for a given message.
1440+
// RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded
1441+
// events for a given message.
13991442
RetryPolicy retry_policy = 14 [(google.api.field_behavior) = OPTIONAL];
14001443

14011444
// Optional. Indicates whether the subscription is detached from its topic.
@@ -1410,7 +1453,7 @@ message Subscription {
14101453
// subscription:
14111454
//
14121455
// * The message sent to a subscriber is guaranteed not to be resent
1413-
// before the message's acknowledgement deadline expires.
1456+
// before the message's acknowledgment deadline expires.
14141457
// * An acknowledged message will not be resent to a subscriber.
14151458
//
14161459
// Note that subscribers may still receive multiple copies of a message
@@ -1449,7 +1492,7 @@ message Subscription {
14491492
// Retry delay will be exponential based on provided minimum and maximum
14501493
// backoffs. https://en.wikipedia.org/wiki/Exponential_backoff.
14511494
//
1452-
// RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded
1495+
// RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded
14531496
// events for a given message.
14541497
//
14551498
// Retry Policy is implemented on a best effort basis. At times, the delay
@@ -1489,7 +1532,7 @@ message DeadLetterPolicy {
14891532
// value must be between 5 and 100.
14901533
//
14911534
// The number of delivery attempts is defined as 1 + (the sum of number of
1492-
// NACKs and number of times the acknowledgement deadline has been exceeded
1535+
// NACKs and number of times the acknowledgment deadline has been exceeded
14931536
// for the message).
14941537
//
14951538
// A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that
@@ -1751,7 +1794,7 @@ message CloudStorageConfig {
17511794

17521795
// Optional. The maximum duration that can elapse before a new Cloud Storage
17531796
// file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
1754-
// exceed the subscription's acknowledgement deadline.
1797+
// exceed the subscription's acknowledgment deadline.
17551798
google.protobuf.Duration max_duration = 6
17561799
[(google.api.field_behavior) = OPTIONAL];
17571800

@@ -1973,7 +2016,7 @@ message AcknowledgeRequest {
19732016
}
19742017

19752018
// Request for the `StreamingPull` streaming RPC method. This request is used to
1976-
// establish the initial stream as well as to stream acknowledgements and ack
2019+
// establish the initial stream as well as to stream acknowledgments and ack
19772020
// deadline modifications from the client to the server.
19782021
message StreamingPullRequest {
19792022
// Required. The subscription for which to initialize the new stream. This
@@ -1987,12 +2030,11 @@ message StreamingPullRequest {
19872030
}
19882031
];
19892032

1990-
// Optional. List of acknowledgement IDs for acknowledging previously received
2033+
// Optional. List of acknowledgment IDs for acknowledging previously received
19912034
// messages (received on this stream or a different stream). If an ack ID has
19922035
// expired, the corresponding message may be redelivered later. Acknowledging
1993-
// a message more than once will not result in an error. If the
1994-
// acknowledgement ID is malformed, the stream will be aborted with status
1995-
// `INVALID_ARGUMENT`.
2036+
// a message more than once will not result in an error. If the acknowledgment
2037+
// ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
19962038
repeated string ack_ids = 2 [(google.api.field_behavior) = OPTIONAL];
19972039

19982040
// Optional. The list of new ack deadlines for the IDs listed in
@@ -2009,7 +2051,7 @@ message StreamingPullRequest {
20092051
repeated int32 modify_deadline_seconds = 3
20102052
[(google.api.field_behavior) = OPTIONAL];
20112053

2012-
// Optional. List of acknowledgement IDs whose deadline will be modified based
2054+
// Optional. List of acknowledgment IDs whose deadline will be modified based
20132055
// on the corresponding element in `modify_deadline_seconds`. This field can
20142056
// be used to indicate that more time is needed to process a message by the
20152057
// subscriber, or to make the message available for redelivery if the
@@ -2058,39 +2100,39 @@ message StreamingPullRequest {
20582100
// Response for the `StreamingPull` method. This response is used to stream
20592101
// messages from the server to the client.
20602102
message StreamingPullResponse {
2061-
// Acknowledgement IDs sent in one or more previous requests to acknowledge a
2103+
// Acknowledgment IDs sent in one or more previous requests to acknowledge a
20622104
// previously received message.
20632105
message AcknowledgeConfirmation {
2064-
// Optional. Successfully processed acknowledgement IDs.
2106+
// Optional. Successfully processed acknowledgment IDs.
20652107
repeated string ack_ids = 1 [(google.api.field_behavior) = OPTIONAL];
20662108

2067-
// Optional. List of acknowledgement IDs that were malformed or whose
2068-
// acknowledgement deadline has expired.
2109+
// Optional. List of acknowledgment IDs that were malformed or whose
2110+
// acknowledgment deadline has expired.
20692111
repeated string invalid_ack_ids = 2
20702112
[(google.api.field_behavior) = OPTIONAL];
20712113

2072-
// Optional. List of acknowledgement IDs that were out of order.
2114+
// Optional. List of acknowledgment IDs that were out of order.
20732115
repeated string unordered_ack_ids = 3
20742116
[(google.api.field_behavior) = OPTIONAL];
20752117

2076-
// Optional. List of acknowledgement IDs that failed processing with
2118+
// Optional. List of acknowledgment IDs that failed processing with
20772119
// temporary issues.
20782120
repeated string temporary_failed_ack_ids = 4
20792121
[(google.api.field_behavior) = OPTIONAL];
20802122
}
20812123

2082-
// Acknowledgement IDs sent in one or more previous requests to modify the
2124+
// Acknowledgment IDs sent in one or more previous requests to modify the
20832125
// deadline for a specific message.
20842126
message ModifyAckDeadlineConfirmation {
2085-
// Optional. Successfully processed acknowledgement IDs.
2127+
// Optional. Successfully processed acknowledgment IDs.
20862128
repeated string ack_ids = 1 [(google.api.field_behavior) = OPTIONAL];
20872129

2088-
// Optional. List of acknowledgement IDs that were malformed or whose
2089-
// acknowledgement deadline has expired.
2130+
// Optional. List of acknowledgment IDs that were malformed or whose
2131+
// acknowledgment deadline has expired.
20902132
repeated string invalid_ack_ids = 2
20912133
[(google.api.field_behavior) = OPTIONAL];
20922134

2093-
// Optional. List of acknowledgement IDs that failed processing with
2135+
// Optional. List of acknowledgment IDs that failed processing with
20942136
// temporary issues.
20952137
repeated string temporary_failed_ack_ids = 3
20962138
[(google.api.field_behavior) = OPTIONAL];

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.