blob: e79fb9e57266bf9a46ca07001da8e8f92cd7741e [file] [log] [blame]
sslobodrd046be82019-01-16 10:02:22 -05001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17
18// This file was autogenerated by go-to-protobuf. Do not edit it manually!
19
20syntax = 'proto2';
21
22package k8s.io.apimachinery.pkg.util.intstr;
23
24// Package-wide variables from generator "generated".
25option go_package = "intstr";
26
27// IntOrString is a type that can hold an int32 or a string. When used in
28// JSON or YAML marshalling and unmarshalling, it produces or consumes the
29// inner type. This allows you to have, for example, a JSON field that can
30// accept a name or number.
31// TODO: Rename to Int32OrString
32//
33// +protobuf=true
34// +protobuf.options.(gogoproto.goproto_stringer)=false
35// +k8s:openapi-gen=true
36message IntOrString {
37 optional int64 type = 1;
38
39 optional int32 intVal = 2;
40
41 optional string strVal = 3;
42}
43