blob: 9a9ab1242feaeae52bee1c7e034d9d607ffd72e2 [file] [log] [blame]
Matt Jeanneret85ab5082019-04-01 11:29:20 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/api/field_behavior.proto
3
4package annotations // import "google.golang.org/genproto/googleapis/api/annotations"
5
6import proto "github.com/golang/protobuf/proto"
7import fmt "fmt"
8import math "math"
9import descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
10
11// Reference imports to suppress errors if they are not otherwise used.
12var _ = proto.Marshal
13var _ = fmt.Errorf
14var _ = math.Inf
15
16// This is a compile-time assertion to ensure that this generated file
17// is compatible with the proto package it is being compiled against.
18// A compilation error at this line likely means your copy of the
19// proto package needs to be updated.
20const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
21
22// An indicator of the behavior of a given field (for example, that a field
23// is required in requests, or given as output but ignored as input).
24// This **does not** change the behavior in protocol buffers itself; it only
25// denotes the behavior and may affect how API tooling handles the field.
26//
27// Note: This enum **may** receive new values in the future.
28type FieldBehavior int32
29
30const (
31 // Conventional default for enums. Do not use this.
32 FieldBehavior_FIELD_BEHAVIOR_UNSPECIFIED FieldBehavior = 0
33 // Specifically denotes a field as optional.
34 // While all fields in protocol buffers are optional, this may be specified
35 // for emphasis if appropriate.
36 FieldBehavior_OPTIONAL FieldBehavior = 1
37 // Denotes a field as required.
38 // This indicates that the field **must** be provided as part of the request,
39 // and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
40 FieldBehavior_REQUIRED FieldBehavior = 2
41 // Denotes a field as output only.
42 // This indicates that the field is provided in responses, but including the
43 // field in a request does nothing (the server *must* ignore it and
44 // *must not* throw an error as a result of the field's presence).
45 FieldBehavior_OUTPUT_ONLY FieldBehavior = 3
46 // Denotes a field as input only.
47 // This indicates that the field is provided in requests, and the
48 // corresponding field is not included in output.
49 FieldBehavior_INPUT_ONLY FieldBehavior = 4
50 // Denotes a field as immutable.
51 // This indicates that the field may be set once in a request to create a
52 // resource, but may not be changed thereafter.
53 FieldBehavior_IMMUTABLE FieldBehavior = 5
54)
55
56var FieldBehavior_name = map[int32]string{
57 0: "FIELD_BEHAVIOR_UNSPECIFIED",
58 1: "OPTIONAL",
59 2: "REQUIRED",
60 3: "OUTPUT_ONLY",
61 4: "INPUT_ONLY",
62 5: "IMMUTABLE",
63}
64var FieldBehavior_value = map[string]int32{
65 "FIELD_BEHAVIOR_UNSPECIFIED": 0,
66 "OPTIONAL": 1,
67 "REQUIRED": 2,
68 "OUTPUT_ONLY": 3,
69 "INPUT_ONLY": 4,
70 "IMMUTABLE": 5,
71}
72
73func (x FieldBehavior) String() string {
74 return proto.EnumName(FieldBehavior_name, int32(x))
75}
76func (FieldBehavior) EnumDescriptor() ([]byte, []int) {
77 return fileDescriptor_field_behavior_ddf5c982f789c6a3, []int{0}
78}
79
80var E_FieldBehavior = &proto.ExtensionDesc{
81 ExtendedType: (*descriptor.FieldOptions)(nil),
82 ExtensionType: ([]FieldBehavior)(nil),
83 Field: 1052,
84 Name: "google.api.field_behavior",
85 Tag: "varint,1052,rep,name=field_behavior,json=fieldBehavior,enum=google.api.FieldBehavior",
86 Filename: "google/api/field_behavior.proto",
87}
88
89func init() {
90 proto.RegisterEnum("google.api.FieldBehavior", FieldBehavior_name, FieldBehavior_value)
91 proto.RegisterExtension(E_FieldBehavior)
92}
93
94func init() {
95 proto.RegisterFile("google/api/field_behavior.proto", fileDescriptor_field_behavior_ddf5c982f789c6a3)
96}
97
98var fileDescriptor_field_behavior_ddf5c982f789c6a3 = []byte{
99 // 303 bytes of a gzipped FileDescriptorProto
100 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0x4f, 0x4f, 0xb3, 0x30,
101 0x1c, 0xc7, 0x9f, 0xfd, 0x79, 0xcc, 0xac, 0x0e, 0x49, 0x4f, 0xba, 0x44, 0xdd, 0xd1, 0x78, 0x28,
102 0x89, 0xde, 0xf4, 0x04, 0xae, 0xd3, 0x26, 0x8c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x30, 0xee, 0x9d, 0x59, 0x17,
114 0x47, 0xe8, 0xaf, 0x23, 0x6a, 0xe9, 0x87, 0xc3, 0x55, 0x33, 0x7a, 0x1a, 0x58, 0x0b, 0xf5, 0xd6,
115 0xc0, 0x3d, 0xd8, 0xe2, 0x59, 0xf5, 0x0c, 0xeb, 0x3c, 0xbb, 0x35, 0x21, 0xd4, 0x9a, 0x67, 0x02,
116 0xa9, 0x5c, 0x38, 0x22, 0xcd, 0x8c, 0x84, 0xb3, 0x19, 0x71, 0x2d, 0x0b, 0xf3, 0xe9, 0x3c, 0xcb,
117 0x54, 0xc9, 0x8d, 0xcf, 0x75, 0xe3, 0xfc, 0xdd, 0xed, 0xdf, 0xba, 0x8c, 0xcc, 0x77, 0xcc, 0xa5,
118 0xcb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x94, 0x57, 0x94, 0xa8, 0x01, 0x00, 0x00,
119}