Skip to content

Commit

Permalink
feat: introducing field Queue.type docs: fixing typos and minor updates
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 317130948

Source-Author: Google APIs <noreply@google.com>
Source-Date: Thu Jun 18 10:28:49 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: eb37e688331443969eed9b969531751154a956d5
Source-Link: googleapis/googleapis@eb37e68
  • Loading branch information
yoshi-automation authored and jskeet committed Jun 19, 2020
1 parent 0bf565a commit 975c526
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public void GetQueueRequestObject()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.GetQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -73,6 +74,7 @@ public void GetQueueRequestObject()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.GetQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -100,6 +102,7 @@ public void GetQueue()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.GetQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -125,6 +128,7 @@ public void GetQueue()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.GetQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -152,6 +156,7 @@ public void GetQueueResourceNames()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.GetQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -177,6 +182,7 @@ public void GetQueueResourceNames()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.GetQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -205,6 +211,7 @@ public void CreateQueueRequestObject()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.CreateQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -231,6 +238,7 @@ public void CreateQueueRequestObject()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.CreateQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -259,6 +267,7 @@ public void CreateQueue()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.CreateQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -285,6 +294,7 @@ public void CreateQueue()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.CreateQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -313,6 +323,7 @@ public void CreateQueueResourceNames()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.CreateQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -339,6 +350,7 @@ public void CreateQueueResourceNames()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.CreateQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -367,6 +379,7 @@ public void UpdateQueueRequestObject()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.UpdateQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -393,6 +406,7 @@ public void UpdateQueueRequestObject()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.UpdateQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -421,6 +435,7 @@ public void UpdateQueue()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.UpdateQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -447,6 +462,7 @@ public void UpdateQueue()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.UpdateQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -567,6 +583,7 @@ public void PurgeQueueRequestObject()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.PurgeQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -592,6 +609,7 @@ public void PurgeQueueRequestObject()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.PurgeQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -619,6 +637,7 @@ public void PurgeQueue()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.PurgeQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -644,6 +663,7 @@ public void PurgeQueue()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.PurgeQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -671,6 +691,7 @@ public void PurgeQueueResourceNames()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.PurgeQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -696,6 +717,7 @@ public void PurgeQueueResourceNames()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.PurgeQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -723,6 +745,7 @@ public void PauseQueueRequestObject()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.PauseQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -748,6 +771,7 @@ public void PauseQueueRequestObject()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.PauseQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -775,6 +799,7 @@ public void PauseQueue()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.PauseQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -800,6 +825,7 @@ public void PauseQueue()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.PauseQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -827,6 +853,7 @@ public void PauseQueueResourceNames()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.PauseQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -852,6 +879,7 @@ public void PauseQueueResourceNames()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.PauseQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -879,6 +907,7 @@ public void ResumeQueueRequestObject()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.ResumeQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -904,6 +933,7 @@ public void ResumeQueueRequestObject()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.ResumeQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -931,6 +961,7 @@ public void ResumeQueue()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.ResumeQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -956,6 +987,7 @@ public void ResumeQueue()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.ResumeQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -983,6 +1015,7 @@ public void ResumeQueueResourceNames()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.ResumeQueue(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand All @@ -1008,6 +1041,7 @@ public void ResumeQueueResourceNames()
State = Queue.Types.State.Paused,
PurgeTime = new wkt::Timestamp(),
StackdriverLoggingConfig = new StackdriverLoggingConfig(),
Type = Queue.Types.Type.Unspecified,
};
mockGrpcClient.Setup(x => x.ResumeQueueAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Queue>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudTasksClient client = new CloudTasksClientImpl(mockGrpcClient.Object, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// source: google/cloud/tasks/v2beta3/cloudtasks.proto
// </auto-generated>
// Original file comments:
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -17,7 +17,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
//
#pragma warning disable 0414, 1591
#region Designer generated code

Expand Down
Loading

0 comments on commit 975c526

Please sign in to comment.