diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:01:00 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:01:00 +0000 |
commit | 3cf7d6b8b50f387d0054dfc0a52f98143d08ba1a (patch) | |
tree | 920d3d6f10bf278744c5a4dde19f55de165cb40b /cmd/protoc-gen-go/testdata/retention/options_message.proto | |
parent | bfa871eac49769b30ed294abc625a8c4beba9977 (diff) | |
parent | 28644ef0ae3367ca5e0ce51b06cf06a7a1dd69df (diff) | |
download | golang-protobuf-android14-mainline-os-statsd-release.tar.gz |
Snap for 10453563 from 28644ef0ae3367ca5e0ce51b06cf06a7a1dd69df to mainline-os-statsd-releaseaml_sta_341710000aml_sta_341615000aml_sta_341511040aml_sta_341410000aml_sta_341311010aml_sta_341114000aml_sta_341111000aml_sta_341010020aml_sta_340912000aml_sta_340911000aml_net_341111030android14-mainline-os-statsd-release
Change-Id: I858f19684e43f90fc813a12b79ecfc4703656c27
Diffstat (limited to 'cmd/protoc-gen-go/testdata/retention/options_message.proto')
-rw-r--r-- | cmd/protoc-gen-go/testdata/retention/options_message.proto | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cmd/protoc-gen-go/testdata/retention/options_message.proto b/cmd/protoc-gen-go/testdata/retention/options_message.proto new file mode 100644 index 00000000..afa6cd44 --- /dev/null +++ b/cmd/protoc-gen-go/testdata/retention/options_message.proto @@ -0,0 +1,30 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +syntax = "proto2"; + +package testretention; + +import "google/protobuf/descriptor.proto"; + +option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention"; + +// Retention attributes set on fields nested within a message +message OptionsMessage { + optional int32 plain_field = 1; + optional int32 runtime_retention_field = 2 [retention = RETENTION_RUNTIME]; + optional int32 source_retention_field = 3 [retention = RETENTION_SOURCE]; +} + +extend google.protobuf.FileOptions { + optional int32 imported_plain_option = 511807920; + optional int32 imported_runtime_retention_option = 512484074 + [retention = RETENTION_RUNTIME]; + optional int32 imported_source_retention_option = 512645287 + [retention = RETENTION_SOURCE]; +} + +extend google.protobuf.FileOptions { + optional OptionsMessage file_option = 504871168; +}
\ No newline at end of file |