Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 6260547

Browse files
fix: re-generate pb2 files (#87)
* chore(deps): update actions/setup-python action to v3 Source-Link: googleapis/synthtool@571ee2c Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:09af371bb7d8ebbaef620bfc76c0a3a42da96d75f4821409b54f3466d4ebbd3c * add custom sync repo settings Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent ceb57b8 commit 6260547

Some content is hidden

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

54 files changed

+905
-12592
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:ed1f9983d5a935a89fe8085e8bb97d94e41015252c5b6c9771257cf8624367e6
16+
digest: sha256:09af371bb7d8ebbaef620bfc76c0a3a42da96d75f4821409b54f3466d4ebbd3c

.github/sync-repo-settings.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# https://github.com/googleapis/repo-automation-bots/tree/main/packages/sync-repo-settings
2+
# Rules for main branch protection
3+
branchProtectionRules:
4+
# Identifies the protection rule pattern. Name of the branch to be protected.
5+
# Defaults to `main`
6+
- pattern: main
7+
requiresCodeOwnerReviews: true
8+
requiresStrictStatusChecks: true
9+
requiredStatusCheckContexts:
10+
- 'cla/google'
11+
- 'OwlBot Post Processor'
12+
- 'Kokoro'
13+
permissionRules:
14+
- team: actools-python
15+
permission: admin
16+
- team: actools
17+
permission: admin
18+
- team: yoshi-python
19+
permission: push
20+
- team: python-samples-owners
21+
permission: push
22+
- team: python-samples-reviewers
23+
permission: push

google/api/annotations_pb2.py

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# source: google/api/annotations.proto
1919
"""Generated protocol buffer code."""
2020
from google.protobuf import descriptor as _descriptor
21+
from google.protobuf import descriptor_pool as _descriptor_pool
2122
from google.protobuf import message as _message
2223
from google.protobuf import reflection as _reflection
2324
from google.protobuf import symbol_database as _symbol_database
@@ -31,46 +32,17 @@
3132
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
3233

3334

34-
DESCRIPTOR = _descriptor.FileDescriptor(
35-
name="google/api/annotations.proto",
36-
package="google.api",
37-
syntax="proto3",
38-
serialized_options=b"\n\016com.google.apiB\020AnnotationsProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI",
39-
create_key=_descriptor._internal_create_key,
40-
serialized_pb=b'\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:E\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc" \x01(\x0b\x32\x14.google.api.HttpRuleBn\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3',
41-
dependencies=[
42-
google_dot_api_dot_http__pb2.DESCRIPTOR,
43-
google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,
44-
],
35+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
36+
b'\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:E\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc" \x01(\x0b\x32\x14.google.api.HttpRuleBn\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3'
4537
)
4638

4739

4840
HTTP_FIELD_NUMBER = 72295728
49-
http = _descriptor.FieldDescriptor(
50-
name="http",
51-
full_name="google.api.http",
52-
index=0,
53-
number=72295728,
54-
type=11,
55-
cpp_type=10,
56-
label=1,
57-
has_default_value=False,
58-
default_value=None,
59-
message_type=None,
60-
enum_type=None,
61-
containing_type=None,
62-
is_extension=True,
63-
extension_scope=None,
64-
serialized_options=None,
65-
file=DESCRIPTOR,
66-
create_key=_descriptor._internal_create_key,
67-
)
68-
69-
DESCRIPTOR.extensions_by_name["http"] = http
70-
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
41+
http = DESCRIPTOR.extensions_by_name["http"]
7142

72-
http.message_type = google_dot_api_dot_http__pb2._HTTPRULE
73-
google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(http)
43+
if _descriptor._USE_C_DESCRIPTORS == False:
44+
google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(http)
7445

75-
DESCRIPTOR._options = None
46+
DESCRIPTOR._options = None
47+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\020AnnotationsProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI"
7648
# @@protoc_insertion_point(module_scope)

0 commit comments

Comments
 (0)