Skip to content

Commit

Permalink
fix!: use correct child_type annotation
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 558967926

Source-Link: googleapis/googleapis@1c4f24e

Source-Link: googleapis/googleapis-gen@a25a444
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuVmlkZW8uU3RpdGNoZXIuVjEvLk93bEJvdC55YW1sIiwiaCI6ImEyNWE0NDQ2YjVkN2FmMjA0NTc0MzJjMzg1NmJjMjU5ZDQ1ODVkZjkifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and anuragsrivstv committed Aug 22, 2023
1 parent 0700ba4 commit 324d882
Show file tree
Hide file tree
Showing 14 changed files with 58 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public async Task CreateLiveSessionAsync()
// Create client
VideoStitcherServiceClient videoStitcherServiceClient = await VideoStitcherServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/liveSessions/[LIVE_SESSION]";
string parent = "projects/[PROJECT]/locations/[LOCATION]";
LiveSession liveSession = new LiveSession();
// Make the request
LiveSession response = await videoStitcherServiceClient.CreateLiveSessionAsync(parent, liveSession);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
namespace GoogleCSharpSnippets
{
// [START videostitcher_v1_generated_VideoStitcherService_CreateLiveSession_async]
using Google.Api.Gax.ResourceNames;
using Google.Cloud.Video.Stitcher.V1;
using System.Threading.Tasks;

Expand All @@ -37,7 +38,7 @@ public async Task CreateLiveSessionRequestObjectAsync()
// Initialize request argument(s)
CreateLiveSessionRequest request = new CreateLiveSessionRequest
{
ParentAsLiveSessionName = LiveSessionName.FromProjectLocationLiveSession("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]"),
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
LiveSession = new LiveSession(),
};
// Make the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
namespace GoogleCSharpSnippets
{
// [START videostitcher_v1_generated_VideoStitcherService_CreateLiveSession_sync]
using Google.Api.Gax.ResourceNames;
using Google.Cloud.Video.Stitcher.V1;

public sealed partial class GeneratedVideoStitcherServiceClientSnippets
Expand All @@ -36,7 +37,7 @@ public void CreateLiveSessionRequestObject()
// Initialize request argument(s)
CreateLiveSessionRequest request = new CreateLiveSessionRequest
{
ParentAsLiveSessionName = LiveSessionName.FromProjectLocationLiveSession("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]"),
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
LiveSession = new LiveSession(),
};
// Make the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
namespace GoogleCSharpSnippets
{
// [START videostitcher_v1_generated_VideoStitcherService_CreateLiveSession_async_flattened_resourceNames]
using Google.Api.Gax.ResourceNames;
using Google.Cloud.Video.Stitcher.V1;
using System.Threading.Tasks;

Expand All @@ -35,7 +36,7 @@ public async Task CreateLiveSessionResourceNamesAsync()
// Create client
VideoStitcherServiceClient videoStitcherServiceClient = await VideoStitcherServiceClient.CreateAsync();
// Initialize request argument(s)
LiveSessionName parent = LiveSessionName.FromProjectLocationLiveSession("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]");
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
LiveSession liveSession = new LiveSession();
// Make the request
LiveSession response = await videoStitcherServiceClient.CreateLiveSessionAsync(parent, liveSession);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
namespace GoogleCSharpSnippets
{
// [START videostitcher_v1_generated_VideoStitcherService_CreateLiveSession_sync_flattened_resourceNames]
using Google.Api.Gax.ResourceNames;
using Google.Cloud.Video.Stitcher.V1;

public sealed partial class GeneratedVideoStitcherServiceClientSnippets
Expand All @@ -34,7 +35,7 @@ public void CreateLiveSessionResourceNames()
// Create client
VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.Create();
// Initialize request argument(s)
LiveSessionName parent = LiveSessionName.FromProjectLocationLiveSession("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]");
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
LiveSession liveSession = new LiveSession();
// Make the request
LiveSession response = videoStitcherServiceClient.CreateLiveSession(parent, liveSession);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void CreateLiveSession()
// Create client
VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/liveSessions/[LIVE_SESSION]";
string parent = "projects/[PROJECT]/locations/[LOCATION]";
LiveSession liveSession = new LiveSession();
// Make the request
LiveSession response = videoStitcherServiceClient.CreateLiveSession(parent, liveSession);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5280,12 +5280,12 @@
"segments": [
{
"start": 20,
"end": 45,
"end": 46,
"type": "FULL"
},
{
"start": 34,
"end": 43,
"start": 35,
"end": 44,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -5329,12 +5329,12 @@
"segments": [
{
"start": 20,
"end": 46,
"end": 47,
"type": "FULL"
},
{
"start": 35,
"end": 44,
"start": 36,
"end": 45,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -5453,7 +5453,7 @@
"fullName": "Google.Cloud.Video.Stitcher.V1.VideoStitcherServiceClient.CreateLiveSession",
"parameters": [
{
"type": "Google.Cloud.Video.Stitcher.V1.LiveSessionName",
"type": "Google.Api.Gax.ResourceNames.LocationName",
"name": "parent"
},
{
Expand Down Expand Up @@ -5483,12 +5483,12 @@
"segments": [
{
"start": 20,
"end": 42,
"end": 43,
"type": "FULL"
},
{
"start": 34,
"end": 40,
"start": 35,
"end": 41,
"type": "SHORT"
}
]
Expand All @@ -5505,7 +5505,7 @@
"async": true,
"parameters": [
{
"type": "Google.Cloud.Video.Stitcher.V1.LiveSessionName",
"type": "Google.Api.Gax.ResourceNames.LocationName",
"name": "parent"
},
{
Expand Down Expand Up @@ -5535,12 +5535,12 @@
"segments": [
{
"start": 20,
"end": 43,
"end": 44,
"type": "FULL"
},
{
"start": 35,
"end": 41,
"start": 36,
"end": 42,
"type": "SHORT"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3054,7 +3054,7 @@ public void CreateLiveSessionRequestObject()
// Initialize request argument(s)
CreateLiveSessionRequest request = new CreateLiveSessionRequest
{
ParentAsLiveSessionName = LiveSessionName.FromProjectLocationLiveSession("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]"),
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
LiveSession = new LiveSession(),
};
// Make the request
Expand All @@ -3072,7 +3072,7 @@ public async Task CreateLiveSessionRequestObjectAsync()
// Initialize request argument(s)
CreateLiveSessionRequest request = new CreateLiveSessionRequest
{
ParentAsLiveSessionName = LiveSessionName.FromProjectLocationLiveSession("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]"),
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
LiveSession = new LiveSession(),
};
// Make the request
Expand All @@ -3087,7 +3087,7 @@ public void CreateLiveSession()
// Create client
VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/liveSessions/[LIVE_SESSION]";
string parent = "projects/[PROJECT]/locations/[LOCATION]";
LiveSession liveSession = new LiveSession();
// Make the request
LiveSession response = videoStitcherServiceClient.CreateLiveSession(parent, liveSession);
Expand All @@ -3102,7 +3102,7 @@ public async Task CreateLiveSessionAsync()
// Create client
VideoStitcherServiceClient videoStitcherServiceClient = await VideoStitcherServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/liveSessions/[LIVE_SESSION]";
string parent = "projects/[PROJECT]/locations/[LOCATION]";
LiveSession liveSession = new LiveSession();
// Make the request
LiveSession response = await videoStitcherServiceClient.CreateLiveSessionAsync(parent, liveSession);
Expand All @@ -3112,11 +3112,11 @@ public async Task CreateLiveSessionAsync()
/// <summary>Snippet for CreateLiveSession</summary>
public void CreateLiveSessionResourceNames()
{
// Snippet: CreateLiveSession(LiveSessionName, LiveSession, CallSettings)
// Snippet: CreateLiveSession(LocationName, LiveSession, CallSettings)
// Create client
VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.Create();
// Initialize request argument(s)
LiveSessionName parent = LiveSessionName.FromProjectLocationLiveSession("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]");
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
LiveSession liveSession = new LiveSession();
// Make the request
LiveSession response = videoStitcherServiceClient.CreateLiveSession(parent, liveSession);
Expand All @@ -3126,12 +3126,12 @@ public void CreateLiveSessionResourceNames()
/// <summary>Snippet for CreateLiveSessionAsync</summary>
public async Task CreateLiveSessionResourceNamesAsync()
{
// Snippet: CreateLiveSessionAsync(LiveSessionName, LiveSession, CallSettings)
// Additional: CreateLiveSessionAsync(LiveSessionName, LiveSession, CancellationToken)
// Snippet: CreateLiveSessionAsync(LocationName, LiveSession, CallSettings)
// Additional: CreateLiveSessionAsync(LocationName, LiveSession, CancellationToken)
// Create client
VideoStitcherServiceClient videoStitcherServiceClient = await VideoStitcherServiceClient.CreateAsync();
// Initialize request argument(s)
LiveSessionName parent = LiveSessionName.FromProjectLocationLiveSession("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]");
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
LiveSession liveSession = new LiveSession();
// Make the request
LiveSession response = await videoStitcherServiceClient.CreateLiveSessionAsync(parent, liveSession);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ public sealed partial class LiveAdTagDetail : pb::IMessage<LiveAdTagDetail>
}

/// <summary>
/// Information related to the details for one ad tag.
/// Information related to the details for one ad tag. This resource is only
/// available for VOD sessions that do not implement Google Ad Manager ad
/// insertion.
/// </summary>
public sealed partial class VodAdTagDetail : pb::IMessage<VodAdTagDetail>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,7 @@ public sealed partial class VodSession : pb::IMessage<VodSession>
public const int AdTrackingFieldNumber = 11;
private global::Google.Cloud.Video.Stitcher.V1.AdTracking adTracking_ = global::Google.Cloud.Video.Stitcher.V1.AdTracking.Unspecified;
/// <summary>
/// Required. Determines how the ad should be tracked. If
/// [gam_vod_config][google.cloud.video.stitcher.v1.VodSession.gam_vod_config]
/// is set, the value must be `CLIENT` because the IMA SDK handles ad tracking.
/// Required. Determines how the ad should be tracked.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -2393,8 +2391,7 @@ public sealed partial class LiveSession : pb::IMessage<LiveSession>
public static partial class Types {
/// <summary>
/// Defines fields related to Google Ad Manager (GAM). This should be set if
/// GAM
/// is being used for ads.
/// GAM is being used for ads.
/// </summary>
public sealed partial class GamSettings : pb::IMessage<GamSettings>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public static partial class StitchDetailsReflection {
}
#region Messages
/// <summary>
/// Detailed information related to the interstitial of a VOD session.
/// Detailed information related to the interstitial of a VOD session. This
/// resource is only available for VOD sessions that do not implement Google Ad
/// Manager ad insertion.
/// </summary>
public sealed partial class VodStitchDetail : pb::IMessage<VodStitchDetail>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static partial class VideoStitcherServiceReflection {
"RmllbGRNYXNrQgPgQQIiTgoSRGVsZXRlU2xhdGVSZXF1ZXN0EjgKBG5hbWUY",
"ASABKAlCKuBBAvpBJAoidmlkZW9zdGl0Y2hlci5nb29nbGVhcGlzLmNvbS9T",
"bGF0ZSKkAQoYQ3JlYXRlTGl2ZVNlc3Npb25SZXF1ZXN0EkAKBnBhcmVudBgB",
"IAEoCUIw4EEC+kEqCih2aWRlb3N0aXRjaGVyLmdvb2dsZWFwaXMuY29tL0xp",
"IAEoCUIw4EEC+kEqEih2aWRlb3N0aXRjaGVyLmdvb2dsZWFwaXMuY29tL0xp",
"dmVTZXNzaW9uEkYKDGxpdmVfc2Vzc2lvbhgCIAEoCzIrLmdvb2dsZS5jbG91",
"ZC52aWRlby5zdGl0Y2hlci52MS5MaXZlU2Vzc2lvbkID4EECIlcKFUdldExp",
"dmVTZXNzaW9uUmVxdWVzdBI+CgRuYW1lGAEgASgJQjDgQQL6QSoKKHZpZGVv",
Expand Down
Loading

0 comments on commit 324d882

Please sign in to comment.