Skip to content

Commit 1d0c50c

Browse files
committed
Regenerate PubSub API
Mostly comment changes; adds ExpirationPolicy in protos. (Reordering of a retry filter is insignificant)
1 parent 28ae98e commit 1d0c50c

File tree

4 files changed

+464
-292
lines changed

4 files changed

+464
-292
lines changed

‎apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/PublisherServiceApiClient.cs

+22-30
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ private PublisherServiceApiSettings(PublisherServiceApiSettings existing) : base
8080
public static sys::Predicate<grpccore::RpcException> IdempotentRetryFilter { get; } =
8181
gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable);
8282

83+
/// <summary>
84+
/// The filter specifying which RPC <see cref="grpccore::StatusCode"/>s are eligible for retry
85+
/// for "NonIdempotent" <see cref="PublisherServiceApiClient"/> RPC methods.
86+
/// </summary>
87+
/// <remarks>
88+
/// There are no RPC <see cref="grpccore::StatusCode"/>s eligible for retry for "NonIdempotent" RPC methods.
89+
/// </remarks>
90+
public static sys::Predicate<grpccore::RpcException> NonIdempotentRetryFilter { get; } =
91+
gaxgrpc::RetrySettings.FilterForStatusCodes();
92+
8393
/// <summary>
8494
/// The filter specifying which RPC <see cref="grpccore::StatusCode"/>s are eligible for retry
8595
/// for "OnePlusDelivery" <see cref="PublisherServiceApiClient"/> RPC methods.
@@ -99,16 +109,6 @@ private PublisherServiceApiSettings(PublisherServiceApiSettings existing) : base
99109
public static sys::Predicate<grpccore::RpcException> OnePlusDeliveryRetryFilter { get; } =
100110
gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Aborted, grpccore::StatusCode.Cancelled, grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Internal, grpccore::StatusCode.ResourceExhausted, grpccore::StatusCode.Unavailable, grpccore::StatusCode.Unknown);
101111

102-
/// <summary>
103-
/// The filter specifying which RPC <see cref="grpccore::StatusCode"/>s are eligible for retry
104-
/// for "NonIdempotent" <see cref="PublisherServiceApiClient"/> RPC methods.
105-
/// </summary>
106-
/// <remarks>
107-
/// There are no RPC <see cref="grpccore::StatusCode"/>s eligible for retry for "NonIdempotent" RPC methods.
108-
/// </remarks>
109-
public static sys::Predicate<grpccore::RpcException> NonIdempotentRetryFilter { get; } =
110-
gaxgrpc::RetrySettings.FilterForStatusCodes();
111-
112112
/// <summary>
113113
/// "Default" retry backoff for <see cref="PublisherServiceApiClient"/> RPC methods.
114114
/// </summary>
@@ -853,8 +853,7 @@ public virtual Topic UpdateTopic(
853853

854854
/// <summary>
855855
/// Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
856-
/// does not exist. The message payload must not be empty; it must contain
857-
/// either a non-empty data field, or at least one attribute.
856+
/// does not exist.
858857
/// </summary>
859858
/// <param name="topic">
860859
/// The messages in the request will be published on this topic.
@@ -882,8 +881,7 @@ public virtual Topic UpdateTopic(
882881

883882
/// <summary>
884883
/// Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
885-
/// does not exist. The message payload must not be empty; it must contain
886-
/// either a non-empty data field, or at least one attribute.
884+
/// does not exist.
887885
/// </summary>
888886
/// <param name="topic">
889887
/// The messages in the request will be published on this topic.
@@ -908,8 +906,7 @@ public virtual Topic UpdateTopic(
908906

909907
/// <summary>
910908
/// Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
911-
/// does not exist. The message payload must not be empty; it must contain
912-
/// either a non-empty data field, or at least one attribute.
909+
/// does not exist.
913910
/// </summary>
914911
/// <param name="topic">
915912
/// The messages in the request will be published on this topic.
@@ -937,8 +934,7 @@ public virtual PublishResponse Publish(
937934

938935
/// <summary>
939936
/// Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
940-
/// does not exist. The message payload must not be empty; it must contain
941-
/// either a non-empty data field, or at least one attribute.
937+
/// does not exist.
942938
/// </summary>
943939
/// <param name="request">
944940
/// The request object containing all of the parameters for the API call.
@@ -958,8 +954,7 @@ public virtual PublishResponse Publish(
958954

959955
/// <summary>
960956
/// Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
961-
/// does not exist. The message payload must not be empty; it must contain
962-
/// either a non-empty data field, or at least one attribute.
957+
/// does not exist.
963958
/// </summary>
964959
/// <param name="request">
965960
/// The request object containing all of the parameters for the API call.
@@ -978,8 +973,7 @@ public virtual PublishResponse Publish(
978973

979974
/// <summary>
980975
/// Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
981-
/// does not exist. The message payload must not be empty; it must contain
982-
/// either a non-empty data field, or at least one attribute.
976+
/// does not exist.
983977
/// </summary>
984978
/// <param name="request">
985979
/// The request object containing all of the parameters for the API call.
@@ -1120,8 +1114,8 @@ public virtual Topic GetTopic(
11201114
/// Lists matching topics.
11211115
/// </summary>
11221116
/// <param name="project">
1123-
/// The name of the cloud project that topics belong to.
1124-
/// Format is `projects/{project}`.
1117+
/// The name of the project in which to list topics.
1118+
/// Format is `projects/{project-id}`.
11251119
/// </param>
11261120
/// <param name="pageToken">
11271121
/// The token returned from the previous request.
@@ -1154,8 +1148,8 @@ public virtual Topic GetTopic(
11541148
/// Lists matching topics.
11551149
/// </summary>
11561150
/// <param name="project">
1157-
/// The name of the cloud project that topics belong to.
1158-
/// Format is `projects/{project}`.
1151+
/// The name of the project in which to list topics.
1152+
/// Format is `projects/{project-id}`.
11591153
/// </param>
11601154
/// <param name="pageToken">
11611155
/// The token returned from the previous request.
@@ -2108,8 +2102,7 @@ public override Topic UpdateTopic(
21082102

21092103
/// <summary>
21102104
/// Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
2111-
/// does not exist. The message payload must not be empty; it must contain
2112-
/// either a non-empty data field, or at least one attribute.
2105+
/// does not exist.
21132106
/// </summary>
21142107
/// <param name="request">
21152108
/// The request object containing all of the parameters for the API call.
@@ -2130,8 +2123,7 @@ public override Topic UpdateTopic(
21302123

21312124
/// <summary>
21322125
/// Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
2133-
/// does not exist. The message payload must not be empty; it must contain
2134-
/// either a non-empty data field, or at least one attribute.
2126+
/// does not exist.
21352127
/// </summary>
21362128
/// <param name="request">
21372129
/// The request object containing all of the parameters for the API call.

0 commit comments

Comments
 (0)