• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.cloud.integrations.v1alpha;
18
19option csharp_namespace = "Google.Cloud.Integrations.V1Alpha";
20option go_package = "cloud.google.com/go/integrations/apiv1alpha/integrationspb;integrationspb";
21option java_multiple_files = true;
22option java_outer_classname = "ValueTypeProto";
23option java_package = "com.google.cloud.integrations.v1alpha";
24
25// The type of the parameter.
26message ValueType {
27  oneof value {
28    // String.
29    string string_value = 1;
30
31    // Integer.
32    int64 int_value = 2;
33
34    // Double Number.
35    double double_value = 3;
36
37    // Boolean.
38    bool boolean_value = 4;
39
40    // String Array.
41    StringParameterArray string_array = 5;
42
43    // Integer Array.
44    IntParameterArray int_array = 6;
45
46    // Double Number Array.
47    DoubleParameterArray double_array = 7;
48
49    // Boolean Array.
50    BooleanParameterArray boolean_array = 8;
51
52    // Json.
53    string json_value = 9;
54  }
55}
56
57// This message only contains a field of string array.
58message StringParameterArray {
59  // String array.
60  repeated string string_values = 1;
61}
62
63// This message only contains a field of integer array.
64message IntParameterArray {
65  // Integer array.
66  repeated int64 int_values = 1;
67}
68
69// This message only contains a field of double number array.
70message DoubleParameterArray {
71  // Double number array.
72  repeated double double_values = 1;
73}
74
75// This message only contains a field of boolean array.
76message BooleanParameterArray {
77  // Boolean array.
78  repeated bool boolean_values = 1;
79}
80