github.com/apache/beam/sdks/v2@v2.48.2/java/extensions/protobuf/src/test/proto/proto3_schema_options.proto (about)

     1  /*
     2   * Licensed to the Apache Software Foundation (ASF) under one
     3   * or more contributor license agreements.  See the NOTICE file
     4   * distributed with this work for additional information
     5   * regarding copyright ownership.  The ASF licenses this file
     6   * to you under the Apache License, Version 2.0 (the
     7   * "License"); you may not use this file except in compliance
     8   * with the License.  You may obtain a copy of the License at
     9   *
    10   *     http://www.apache.org/licenses/LICENSE-2.0
    11   *
    12   * Unless required by applicable law or agreed to in writing, software
    13   * distributed under the License is distributed on an "AS IS" BASIS,
    14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15   * See the License for the specific language governing permissions and
    16   * limitations under the License.
    17   */
    18  
    19  /*
    20   * Protocol Buffer options used for testing Proto3 Schema implementation.
    21   */
    22  
    23  syntax = "proto3";
    24  
    25  package proto3_schema_options;
    26  
    27  import "google/protobuf/descriptor.proto";
    28  
    29  option java_package = "org.apache.beam.sdk.extensions.protobuf";
    30  
    31  extend google.protobuf.MessageOptions {
    32      OptionTestMessage message_option_message = 66661700;
    33      int32 message_option_int = 66661708;
    34      string message_option_string = 66661709;
    35      repeated string message_option_repeated = 66661710;
    36      repeated OptionTestMessage message_option_repeated_message = 66661711;
    37  }
    38  
    39  extend google.protobuf.FieldOptions {
    40      OptionTestMessage field_option_message = 66662700;
    41      int32 field_option_int = 66662708;
    42      string field_option_string = 66662709;
    43      repeated string field_option_repeated = 66662710;
    44      repeated OptionTestMessage field_option_repeated_message = 66662711;
    45  }
    46  
    47  extend google.protobuf.EnumOptions {
    48      OptionTestMessage enum_option_message = 66665700;
    49      int32 enum_option_int = 66665708;
    50      string enum_option_string = 66665709;
    51      repeated string enum_option_repeated = 66665710;
    52      repeated OptionTestMessage enum_option_repeated_message = 66665711;
    53  }
    54  
    55  extend google.protobuf.EnumValueOptions {
    56      OptionTestMessage enum_value_option_message = 66666700;
    57      int32 enum_value_option_int = 66666708;
    58      string enum_value_option_string = 66666709;
    59      repeated string enum_value_option_repeated = 66666710;
    60      repeated OptionTestMessage enum_value_option_repeated_message = 66666711;
    61  }
    62  
    63  extend google.protobuf.OneofOptions {
    64      OptionTestMessage oneof_option_message = 66667700;
    65      int32 oneof_option_int = 66667708;
    66      string oneof_option_string = 66667709;
    67      repeated string oneof_option_repeated = 66667710;
    68      repeated OptionTestMessage oneof_option_repeated_message = 66667711;
    69  }
    70  
    71  message OptionTestMessage {
    72      message OptionTestSubMessage {
    73          string sub_message_name = 1;
    74      }
    75  
    76      string single_string = 1;
    77      repeated string repeated_string = 2;
    78  
    79      int32 single_int32 = 3;
    80      repeated int32 repeated_int32 = 4;
    81  
    82      int64 single_int64 = 5;
    83  
    84      bytes single_bytes = 6;
    85      repeated bytes repeated_bytes = 7;
    86  
    87      enum OptionEnum {
    88          ENUM1 = 0;
    89          ENUM2 = 1;
    90      }
    91      OptionEnum single_enum = 8;
    92      OptionTestSubMessage single_message = 9;
    93  }