Skip to content

Commit 001097b

Browse files
authored
fix: regenerate pb2 files with protoc v25.3 (#14569)
This PR - adds *.proto files to `packages/google-cloud-access-context-manager` for consistency with what we have in `googleapis-common-protos`: https://github.com/googleapis/google-cloud-python/tree/main/packages/googleapis-common-protos/google/api - uses `protoc v25.3` for consistency with what we have in `googleapis-common-protos`: https://github.com/googleapis/google-cloud-python/tree/main/packages/googleapis-common-protos/google/api - Adds `*.pyi` files for consistency with what we have in `googleapis-common-protos`: https://github.com/googleapis/google-cloud-python/tree/main/packages/googleapis-common-protos/google/api Towards googleapis/librarian#1061
1 parent 1605cc2 commit 001097b

18 files changed

+3186
-161
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
// Copyright 2025 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+
// http://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+
syntax = "proto3";
16+
17+
package google.identity.accesscontextmanager.type;
18+
19+
option csharp_namespace = "Google.Identity.AccessContextManager.Type";
20+
option go_package = "google.golang.org/genproto/googleapis/identity/accesscontextmanager/type";
21+
option java_package = "com.google.identity.accesscontextmanager.type";
22+
option java_multiple_files = true;
23+
option java_outer_classname = "TypeProto";
24+
option php_namespace = "Google\\Identity\\AccessContextManager\\Type";
25+
option ruby_package = "Google::Identity::AccessContextManager::Type";
26+
27+
// The encryption state of the device.
28+
enum DeviceEncryptionStatus {
29+
// The encryption status of the device is not specified or not known.
30+
ENCRYPTION_UNSPECIFIED = 0;
31+
32+
// The device does not support encryption.
33+
ENCRYPTION_UNSUPPORTED = 1;
34+
35+
// The device supports encryption, but is currently unencrypted.
36+
UNENCRYPTED = 2;
37+
38+
// The device is encrypted.
39+
ENCRYPTED = 3;
40+
}
41+
42+
// The operating system type of the device.
43+
// Next id: 7
44+
enum OsType {
45+
// The operating system of the device is not specified or not known.
46+
OS_UNSPECIFIED = 0;
47+
48+
// A desktop Mac operating system.
49+
DESKTOP_MAC = 1;
50+
51+
// A desktop Windows operating system.
52+
DESKTOP_WINDOWS = 2;
53+
54+
// A desktop Linux operating system.
55+
DESKTOP_LINUX = 3;
56+
57+
// A desktop ChromeOS operating system.
58+
DESKTOP_CHROME_OS = 6;
59+
60+
// An Android operating system.
61+
ANDROID = 4;
62+
63+
// An iOS operating system.
64+
IOS = 5;
65+
}
66+
67+
// The degree to which the device is managed by the Cloud organization.
68+
enum DeviceManagementLevel {
69+
// The device's management level is not specified or not known.
70+
MANAGEMENT_UNSPECIFIED = 0;
71+
72+
// The device is not managed.
73+
NONE = 1;
74+
75+
// Basic management is enabled, which is generally limited to monitoring and
76+
// wiping the corporate account.
77+
BASIC = 2;
78+
79+
// Complete device management. This includes more thorough monitoring and the
80+
// ability to directly manage the device (such as remote wiping). This can be
81+
// enabled through the Android Enterprise Platform.
82+
COMPLETE = 3;
83+
}

packages/google-cloud-access-context-manager/google/identity/accesscontextmanager/type/device_resources_pb2.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
# Copyright 2024 Google LLC
3+
# Copyright 2025 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
1616

1717
# Generated by the protocol buffer compiler. DO NOT EDIT!
1818
# source: google/identity/accesscontextmanager/type/device_resources.proto
19+
# Protobuf Python Version: 4.25.3
1920
"""Generated protocol buffer code."""
2021
from google.protobuf import descriptor as _descriptor
2122
from google.protobuf import descriptor_pool as _descriptor_pool
@@ -39,8 +40,10 @@
3940
_globals,
4041
)
4142
if _descriptor._USE_C_DESCRIPTORS == False:
42-
DESCRIPTOR._options = None
43-
DESCRIPTOR._serialized_options = b"\n-com.google.identity.accesscontextmanager.typeB\tTypeProtoP\001ZHgoogle.golang.org/genproto/googleapis/identity/accesscontextmanager/type\252\002)Google.Identity.AccessContextManager.Type\312\002)Google\\Identity\\AccessContextManager\\Type\352\002,Google::Identity::AccessContextManager::Type"
43+
_globals["DESCRIPTOR"]._options = None
44+
_globals[
45+
"DESCRIPTOR"
46+
]._serialized_options = b"\n-com.google.identity.accesscontextmanager.typeB\tTypeProtoP\001ZHgoogle.golang.org/genproto/googleapis/identity/accesscontextmanager/type\252\002)Google.Identity.AccessContextManager.Type\312\002)Google\\Identity\\AccessContextManager\\Type\352\002,Google::Identity::AccessContextManager::Type"
4447
_globals["_DEVICEENCRYPTIONSTATUS"]._serialized_start = 111
4548
_globals["_DEVICEENCRYPTIONSTATUS"]._serialized_end = 223
4649
_globals["_OSTYPE"]._serialized_start = 226
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Copyright 2025 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+
# http://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+
from typing import ClassVar as _ClassVar
16+
17+
from google.protobuf import descriptor as _descriptor
18+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
19+
20+
DESCRIPTOR: _descriptor.FileDescriptor
21+
22+
class DeviceEncryptionStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
23+
__slots__ = ()
24+
ENCRYPTION_UNSPECIFIED: _ClassVar[DeviceEncryptionStatus]
25+
ENCRYPTION_UNSUPPORTED: _ClassVar[DeviceEncryptionStatus]
26+
UNENCRYPTED: _ClassVar[DeviceEncryptionStatus]
27+
ENCRYPTED: _ClassVar[DeviceEncryptionStatus]
28+
29+
class OsType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
30+
__slots__ = ()
31+
OS_UNSPECIFIED: _ClassVar[OsType]
32+
DESKTOP_MAC: _ClassVar[OsType]
33+
DESKTOP_WINDOWS: _ClassVar[OsType]
34+
DESKTOP_LINUX: _ClassVar[OsType]
35+
DESKTOP_CHROME_OS: _ClassVar[OsType]
36+
ANDROID: _ClassVar[OsType]
37+
IOS: _ClassVar[OsType]
38+
39+
class DeviceManagementLevel(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
40+
__slots__ = ()
41+
MANAGEMENT_UNSPECIFIED: _ClassVar[DeviceManagementLevel]
42+
NONE: _ClassVar[DeviceManagementLevel]
43+
BASIC: _ClassVar[DeviceManagementLevel]
44+
COMPLETE: _ClassVar[DeviceManagementLevel]
45+
46+
ENCRYPTION_UNSPECIFIED: DeviceEncryptionStatus
47+
ENCRYPTION_UNSUPPORTED: DeviceEncryptionStatus
48+
UNENCRYPTED: DeviceEncryptionStatus
49+
ENCRYPTED: DeviceEncryptionStatus
50+
OS_UNSPECIFIED: OsType
51+
DESKTOP_MAC: OsType
52+
DESKTOP_WINDOWS: OsType
53+
DESKTOP_LINUX: OsType
54+
DESKTOP_CHROME_OS: OsType
55+
ANDROID: OsType
56+
IOS: OsType
57+
MANAGEMENT_UNSPECIFIED: DeviceManagementLevel
58+
NONE: DeviceManagementLevel
59+
BASIC: DeviceManagementLevel
60+
COMPLETE: DeviceManagementLevel

0 commit comments

Comments
 (0)