Skip to content

Commit f1198a8

Browse files
feat: Add missing field annotations in space.proto, message.proto, reaction.proto, space_event.proto, membership.proto, attachment.proto
docs: Update field annotations in space.proto, message.proto, reaction.proto, space_event.proto, membership.proto, attachment.proto There are unrelated changes related to filed annotations, but verified those are in the public dev docs fix!: Changed field behavior for an existing field `update_mask` and `emoji` PiperOrigin-RevId: 704249815 Source-Link: googleapis/googleapis@27c0c3c Source-Link: googleapis/googleapis-gen@6c7adc4 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQXBwcy5DaGF0LlYxLy5Pd2xCb3QueWFtbCIsImgiOiI2YzdhZGM0YjkwYWJjYjY3ZDExOGI0N2RlYzFkZTY4OGFkNzNlYTY3In0=
1 parent 3f3f215 commit f1198a8

File tree

184 files changed

+70592
-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.

184 files changed

+70592
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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 chat_v1_generated_ChatService_CompleteImportSpace_async]
20+
using Google.Apps.Chat.V1;
21+
using System.Threading.Tasks;
22+
23+
public sealed partial class GeneratedChatServiceClientSnippets
24+
{
25+
/// <summary>Snippet for CompleteImportSpaceAsync</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 CompleteImportSpaceRequestObjectAsync()
34+
{
35+
// Create client
36+
ChatServiceClient chatServiceClient = await ChatServiceClient.CreateAsync();
37+
// Initialize request argument(s)
38+
CompleteImportSpaceRequest request = new CompleteImportSpaceRequest
39+
{
40+
SpaceName = SpaceName.FromSpace("[SPACE]"),
41+
};
42+
// Make the request
43+
CompleteImportSpaceResponse response = await chatServiceClient.CompleteImportSpaceAsync(request);
44+
}
45+
}
46+
// [END chat_v1_generated_ChatService_CompleteImportSpace_async]
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 chat_v1_generated_ChatService_CompleteImportSpace_sync]
20+
using Google.Apps.Chat.V1;
21+
22+
public sealed partial class GeneratedChatServiceClientSnippets
23+
{
24+
/// <summary>Snippet for CompleteImportSpace</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 CompleteImportSpaceRequestObject()
33+
{
34+
// Create client
35+
ChatServiceClient chatServiceClient = ChatServiceClient.Create();
36+
// Initialize request argument(s)
37+
CompleteImportSpaceRequest request = new CompleteImportSpaceRequest
38+
{
39+
SpaceName = SpaceName.FromSpace("[SPACE]"),
40+
};
41+
// Make the request
42+
CompleteImportSpaceResponse response = chatServiceClient.CompleteImportSpace(request);
43+
}
44+
}
45+
// [END chat_v1_generated_ChatService_CompleteImportSpace_sync]
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 chat_v1_generated_ChatService_CreateMembership_async_flattened]
20+
using Google.Apps.Chat.V1;
21+
using System.Threading.Tasks;
22+
23+
public sealed partial class GeneratedChatServiceClientSnippets
24+
{
25+
/// <summary>Snippet for CreateMembershipAsync</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 CreateMembershipAsync()
34+
{
35+
// Create client
36+
ChatServiceClient chatServiceClient = await ChatServiceClient.CreateAsync();
37+
// Initialize request argument(s)
38+
string parent = "spaces/[SPACE]";
39+
Membership membership = new Membership();
40+
// Make the request
41+
Membership response = await chatServiceClient.CreateMembershipAsync(parent, membership);
42+
}
43+
}
44+
// [END chat_v1_generated_ChatService_CreateMembership_async_flattened]
45+
}
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 chat_v1_generated_ChatService_CreateMembership_async]
20+
using Google.Apps.Chat.V1;
21+
using System.Threading.Tasks;
22+
23+
public sealed partial class GeneratedChatServiceClientSnippets
24+
{
25+
/// <summary>Snippet for CreateMembershipAsync</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 CreateMembershipRequestObjectAsync()
34+
{
35+
// Create client
36+
ChatServiceClient chatServiceClient = await ChatServiceClient.CreateAsync();
37+
// Initialize request argument(s)
38+
CreateMembershipRequest request = new CreateMembershipRequest
39+
{
40+
ParentAsSpaceName = SpaceName.FromSpace("[SPACE]"),
41+
Membership = new Membership(),
42+
UseAdminAccess = false,
43+
};
44+
// Make the request
45+
Membership response = await chatServiceClient.CreateMembershipAsync(request);
46+
}
47+
}
48+
// [END chat_v1_generated_ChatService_CreateMembership_async]
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 chat_v1_generated_ChatService_CreateMembership_sync]
20+
using Google.Apps.Chat.V1;
21+
22+
public sealed partial class GeneratedChatServiceClientSnippets
23+
{
24+
/// <summary>Snippet for CreateMembership</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 CreateMembershipRequestObject()
33+
{
34+
// Create client
35+
ChatServiceClient chatServiceClient = ChatServiceClient.Create();
36+
// Initialize request argument(s)
37+
CreateMembershipRequest request = new CreateMembershipRequest
38+
{
39+
ParentAsSpaceName = SpaceName.FromSpace("[SPACE]"),
40+
Membership = new Membership(),
41+
UseAdminAccess = false,
42+
};
43+
// Make the request
44+
Membership response = chatServiceClient.CreateMembership(request);
45+
}
46+
}
47+
// [END chat_v1_generated_ChatService_CreateMembership_sync]
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 chat_v1_generated_ChatService_CreateMembership_async_flattened_resourceNames]
20+
using Google.Apps.Chat.V1;
21+
using System.Threading.Tasks;
22+
23+
public sealed partial class GeneratedChatServiceClientSnippets
24+
{
25+
/// <summary>Snippet for CreateMembershipAsync</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 CreateMembershipResourceNamesAsync()
34+
{
35+
// Create client
36+
ChatServiceClient chatServiceClient = await ChatServiceClient.CreateAsync();
37+
// Initialize request argument(s)
38+
SpaceName parent = SpaceName.FromSpace("[SPACE]");
39+
Membership membership = new Membership();
40+
// Make the request
41+
Membership response = await chatServiceClient.CreateMembershipAsync(parent, membership);
42+
}
43+
}
44+
// [END chat_v1_generated_ChatService_CreateMembership_async_flattened_resourceNames]
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 chat_v1_generated_ChatService_CreateMembership_sync_flattened_resourceNames]
20+
using Google.Apps.Chat.V1;
21+
22+
public sealed partial class GeneratedChatServiceClientSnippets
23+
{
24+
/// <summary>Snippet for CreateMembership</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 CreateMembershipResourceNames()
33+
{
34+
// Create client
35+
ChatServiceClient chatServiceClient = ChatServiceClient.Create();
36+
// Initialize request argument(s)
37+
SpaceName parent = SpaceName.FromSpace("[SPACE]");
38+
Membership membership = new Membership();
39+
// Make the request
40+
Membership response = chatServiceClient.CreateMembership(parent, membership);
41+
}
42+
}
43+
// [END chat_v1_generated_ChatService_CreateMembership_sync_flattened_resourceNames]
44+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 chat_v1_generated_ChatService_CreateMembership_sync_flattened]
20+
using Google.Apps.Chat.V1;
21+
22+
public sealed partial class GeneratedChatServiceClientSnippets
23+
{
24+
/// <summary>Snippet for CreateMembership</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 CreateMembership()
33+
{
34+
// Create client
35+
ChatServiceClient chatServiceClient = ChatServiceClient.Create();
36+
// Initialize request argument(s)
37+
string parent = "spaces/[SPACE]";
38+
Membership membership = new Membership();
39+
// Make the request
40+
Membership response = chatServiceClient.CreateMembership(parent, membership);
41+
}
42+
}
43+
// [END chat_v1_generated_ChatService_CreateMembership_sync_flattened]
44+
}

0 commit comments

Comments
 (0)