Skip to content

Commit 541a7af

Browse files
docs: correct SearchVehiclesRequest.ordered_by description
PiperOrigin-RevId: 704403622 Source-Link: googleapis/googleapis@4e78e68 Source-Link: googleapis/googleapis-gen@1574331 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuTWFwcy5GbGVldEVuZ2luZS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiMTU3NDMzMTI2YjNjNjU0NjI1NGQ5ZjhjMzc4NWIwYWYxOWI5ZDdiYyJ9
1 parent da4a57a commit 541a7af

File tree

46 files changed

+24751
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+24751
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
4+
<PropertyGroup>
5+
<TargetFrameworks>net6.0;net462</TargetFrameworks>
6+
<LangVersion>latest</LangVersion>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<ProjectReference Include="../Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1.csproj" />
11+
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
12+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
13+
</ItemGroup>
14+
15+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START fleetengine_v1_generated_TripService_CreateTrip_async]
20+
using Google.Maps.FleetEngine.V1;
21+
using System.Threading.Tasks;
22+
23+
public sealed partial class GeneratedTripServiceClientSnippets
24+
{
25+
/// <summary>Snippet for CreateTripAsync</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public async Task CreateTripRequestObjectAsync()
34+
{
35+
// Create client
36+
TripServiceClient tripServiceClient = await TripServiceClient.CreateAsync();
37+
// Initialize request argument(s)
38+
CreateTripRequest request = new CreateTripRequest
39+
{
40+
Header = new RequestHeader(),
41+
ParentAsTripName = TripName.FromProviderTrip("[PROVIDER]", "[TRIP]"),
42+
Trip = new Trip(),
43+
TripId = "",
44+
};
45+
// Make the request
46+
Trip response = await tripServiceClient.CreateTripAsync(request);
47+
}
48+
}
49+
// [END fleetengine_v1_generated_TripService_CreateTrip_async]
50+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START fleetengine_v1_generated_TripService_CreateTrip_sync]
20+
using Google.Maps.FleetEngine.V1;
21+
22+
public sealed partial class GeneratedTripServiceClientSnippets
23+
{
24+
/// <summary>Snippet for CreateTrip</summary>
25+
/// <remarks>
26+
/// This snippet has been automatically generated and should be regarded as a code template only.
27+
/// It will require modifications to work:
28+
/// - It may require correct/in-range values for request initialization.
29+
/// - It may require specifying regional endpoints when creating the service client as shown in
30+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
31+
/// </remarks>
32+
public void CreateTripRequestObject()
33+
{
34+
// Create client
35+
TripServiceClient tripServiceClient = TripServiceClient.Create();
36+
// Initialize request argument(s)
37+
CreateTripRequest request = new CreateTripRequest
38+
{
39+
Header = new RequestHeader(),
40+
ParentAsTripName = TripName.FromProviderTrip("[PROVIDER]", "[TRIP]"),
41+
Trip = new Trip(),
42+
TripId = "",
43+
};
44+
// Make the request
45+
Trip response = tripServiceClient.CreateTrip(request);
46+
}
47+
}
48+
// [END fleetengine_v1_generated_TripService_CreateTrip_sync]
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START fleetengine_v1_generated_TripService_GetTrip_async]
20+
using Google.Maps.FleetEngine.V1;
21+
using Google.Protobuf.WellKnownTypes;
22+
using System.Threading.Tasks;
23+
24+
public sealed partial class GeneratedTripServiceClientSnippets
25+
{
26+
/// <summary>Snippet for GetTripAsync</summary>
27+
/// <remarks>
28+
/// This snippet has been automatically generated and should be regarded as a code template only.
29+
/// It will require modifications to work:
30+
/// - It may require correct/in-range values for request initialization.
31+
/// - It may require specifying regional endpoints when creating the service client as shown in
32+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
33+
/// </remarks>
34+
public async Task GetTripRequestObjectAsync()
35+
{
36+
// Create client
37+
TripServiceClient tripServiceClient = await TripServiceClient.CreateAsync();
38+
// Initialize request argument(s)
39+
GetTripRequest request = new GetTripRequest
40+
{
41+
Header = new RequestHeader(),
42+
TripName = TripName.FromProviderTrip("[PROVIDER]", "[TRIP]"),
43+
CurrentRouteSegmentVersion = new Timestamp(),
44+
RemainingWaypointsVersion = new Timestamp(),
45+
RouteFormatType = PolylineFormatType.UnknownFormatType,
46+
CurrentRouteSegmentTrafficVersion = new Timestamp(),
47+
RemainingWaypointsRouteVersion = new Timestamp(),
48+
View = TripView.Unspecified,
49+
};
50+
// Make the request
51+
Trip response = await tripServiceClient.GetTripAsync(request);
52+
}
53+
}
54+
// [END fleetengine_v1_generated_TripService_GetTrip_async]
55+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START fleetengine_v1_generated_TripService_GetTrip_sync]
20+
using Google.Maps.FleetEngine.V1;
21+
using Google.Protobuf.WellKnownTypes;
22+
23+
public sealed partial class GeneratedTripServiceClientSnippets
24+
{
25+
/// <summary>Snippet for GetTrip</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public void GetTripRequestObject()
34+
{
35+
// Create client
36+
TripServiceClient tripServiceClient = TripServiceClient.Create();
37+
// Initialize request argument(s)
38+
GetTripRequest request = new GetTripRequest
39+
{
40+
Header = new RequestHeader(),
41+
TripName = TripName.FromProviderTrip("[PROVIDER]", "[TRIP]"),
42+
CurrentRouteSegmentVersion = new Timestamp(),
43+
RemainingWaypointsVersion = new Timestamp(),
44+
RouteFormatType = PolylineFormatType.UnknownFormatType,
45+
CurrentRouteSegmentTrafficVersion = new Timestamp(),
46+
RemainingWaypointsRouteVersion = new Timestamp(),
47+
View = TripView.Unspecified,
48+
};
49+
// Make the request
50+
Trip response = tripServiceClient.GetTrip(request);
51+
}
52+
}
53+
// [END fleetengine_v1_generated_TripService_GetTrip_sync]
54+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START fleetengine_v1_generated_TripService_ReportBillableTrip_async]
20+
using Google.Maps.FleetEngine.V1;
21+
using System.Threading.Tasks;
22+
23+
public sealed partial class GeneratedTripServiceClientSnippets
24+
{
25+
/// <summary>Snippet for ReportBillableTripAsync</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public async Task ReportBillableTripRequestObjectAsync()
34+
{
35+
// Create client
36+
TripServiceClient tripServiceClient = await TripServiceClient.CreateAsync();
37+
// Initialize request argument(s)
38+
ReportBillableTripRequest request = new ReportBillableTripRequest
39+
{
40+
Name = "",
41+
CountryCode = "",
42+
Platform = BillingPlatformIdentifier.Unspecified,
43+
RelatedIds = { "", },
44+
SolutionType = ReportBillableTripRequest.Types.SolutionType.Unspecified,
45+
};
46+
// Make the request
47+
await tripServiceClient.ReportBillableTripAsync(request);
48+
}
49+
}
50+
// [END fleetengine_v1_generated_TripService_ReportBillableTrip_async]
51+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START fleetengine_v1_generated_TripService_ReportBillableTrip_sync]
20+
using Google.Maps.FleetEngine.V1;
21+
22+
public sealed partial class GeneratedTripServiceClientSnippets
23+
{
24+
/// <summary>Snippet for ReportBillableTrip</summary>
25+
/// <remarks>
26+
/// This snippet has been automatically generated and should be regarded as a code template only.
27+
/// It will require modifications to work:
28+
/// - It may require correct/in-range values for request initialization.
29+
/// - It may require specifying regional endpoints when creating the service client as shown in
30+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
31+
/// </remarks>
32+
public void ReportBillableTripRequestObject()
33+
{
34+
// Create client
35+
TripServiceClient tripServiceClient = TripServiceClient.Create();
36+
// Initialize request argument(s)
37+
ReportBillableTripRequest request = new ReportBillableTripRequest
38+
{
39+
Name = "",
40+
CountryCode = "",
41+
Platform = BillingPlatformIdentifier.Unspecified,
42+
RelatedIds = { "", },
43+
SolutionType = ReportBillableTripRequest.Types.SolutionType.Unspecified,
44+
};
45+
// Make the request
46+
tripServiceClient.ReportBillableTrip(request);
47+
}
48+
}
49+
// [END fleetengine_v1_generated_TripService_ReportBillableTrip_sync]
50+
}

0 commit comments

Comments
 (0)