github.com/apache/beam/sdks/v2@v2.48.2/java/extensions/protobuf/src/test/proto/payload_messages.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 messages used for kafka table provider tests
    21   */
    22  
    23  syntax = "proto3";
    24  
    25  option java_package = "org.apache.beam.sdk.extensions.protobuf";
    26  
    27  message TestMessage {
    28    int64 f_long = 1;
    29    int32 f_int = 2;
    30    double f_double = 3;
    31    string f_string = 4;
    32    repeated float f_float_array = 5;
    33  }
    34  
    35  message ItMessage {
    36    int64 f_long = 1;
    37    int32 f_int = 2;
    38    string f_string = 3;
    39  }
    40  
    41  message SimpleMessage {
    42    int32 id = 1;
    43    string name = 2;
    44  }
    45  
    46  message NameMessage {
    47    string name = 1;
    48  
    49    enum NameType {
    50      FIRST = 0;
    51      MIDDLE = 1;
    52      LAST = 2;
    53      SECOND_LAST = 3;
    54    }
    55    repeated NameType name_array = 2;
    56  }
    57  
    58  message NameHeightMessage {
    59    string name = 1;
    60    int32 height = 2;
    61  }
    62  
    63  message NameHeightKnowsJSMessage {
    64    string name = 1;
    65    int32 height = 2;
    66    bool knows_javascript = 3;
    67  }