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