google_cloud_rust_raw/api/
field_behavior.rs1#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![allow(unused_attributes)]
9#![cfg_attr(rustfmt, rustfmt::skip)]
10
11#![allow(box_pointers)]
12#![allow(dead_code)]
13#![allow(missing_docs)]
14#![allow(non_camel_case_types)]
15#![allow(non_snake_case)]
16#![allow(non_upper_case_globals)]
17#![allow(trivial_casts)]
18#![allow(unused_imports)]
19#![allow(unused_results)]
20#[derive(Clone,PartialEq,Eq,Debug,Hash)]
27pub enum FieldBehavior {
28 FIELD_BEHAVIOR_UNSPECIFIED = 0,
29 OPTIONAL = 1,
30 REQUIRED = 2,
31 OUTPUT_ONLY = 3,
32 INPUT_ONLY = 4,
33 IMMUTABLE = 5,
34 UNORDERED_LIST = 6,
35 NON_EMPTY_DEFAULT = 7,
36 IDENTIFIER = 8,
37}
38
39impl ::protobuf::ProtobufEnum for FieldBehavior {
40 fn value(&self) -> i32 {
41 *self as i32
42 }
43
44 fn from_i32(value: i32) -> ::std::option::Option<FieldBehavior> {
45 match value {
46 0 => ::std::option::Option::Some(FieldBehavior::FIELD_BEHAVIOR_UNSPECIFIED),
47 1 => ::std::option::Option::Some(FieldBehavior::OPTIONAL),
48 2 => ::std::option::Option::Some(FieldBehavior::REQUIRED),
49 3 => ::std::option::Option::Some(FieldBehavior::OUTPUT_ONLY),
50 4 => ::std::option::Option::Some(FieldBehavior::INPUT_ONLY),
51 5 => ::std::option::Option::Some(FieldBehavior::IMMUTABLE),
52 6 => ::std::option::Option::Some(FieldBehavior::UNORDERED_LIST),
53 7 => ::std::option::Option::Some(FieldBehavior::NON_EMPTY_DEFAULT),
54 8 => ::std::option::Option::Some(FieldBehavior::IDENTIFIER),
55 _ => ::std::option::Option::None
56 }
57 }
58
59 fn values() -> &'static [Self] {
60 static values: &'static [FieldBehavior] = &[
61 FieldBehavior::FIELD_BEHAVIOR_UNSPECIFIED,
62 FieldBehavior::OPTIONAL,
63 FieldBehavior::REQUIRED,
64 FieldBehavior::OUTPUT_ONLY,
65 FieldBehavior::INPUT_ONLY,
66 FieldBehavior::IMMUTABLE,
67 FieldBehavior::UNORDERED_LIST,
68 FieldBehavior::NON_EMPTY_DEFAULT,
69 FieldBehavior::IDENTIFIER,
70 ];
71 values
72 }
73
74 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
75 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
76 descriptor.get(|| {
77 ::protobuf::reflect::EnumDescriptor::new_pb_name::<FieldBehavior>("FieldBehavior", file_descriptor_proto())
78 })
79 }
80}
81
82impl ::std::marker::Copy for FieldBehavior {
83}
84
85impl ::std::default::Default for FieldBehavior {
86 fn default() -> Self {
87 FieldBehavior::FIELD_BEHAVIOR_UNSPECIFIED
88 }
89}
90
91impl ::protobuf::reflect::ProtobufValue for FieldBehavior {
92 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
93 ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
94 }
95}
96
97pub mod exts {
99
100 pub const field_behavior: ::protobuf::ext::ExtFieldRepeated<::protobuf::descriptor::FieldOptions, ::protobuf::types::ProtobufTypeEnum<super::FieldBehavior>> = ::protobuf::ext::ExtFieldRepeated { field_number: 1052, phantom: ::std::marker::PhantomData };
101}
102
103static file_descriptor_proto_data: &'static [u8] = b"\
104 \n\x1fgoogle/api/field_behavior.proto\x12\ngoogle.api\x1a\x20google/prot\
105 obuf/descriptor.proto*\xb6\x01\n\rFieldBehavior\x12\x1e\n\x1aFIELD_BEHAV\
106 IOR_UNSPECIFIED\x10\0\x12\x0c\n\x08OPTIONAL\x10\x01\x12\x0c\n\x08REQUIRE\
107 D\x10\x02\x12\x0f\n\x0bOUTPUT_ONLY\x10\x03\x12\x0e\n\nINPUT_ONLY\x10\x04\
108 \x12\r\n\tIMMUTABLE\x10\x05\x12\x12\n\x0eUNORDERED_LIST\x10\x06\x12\x15\
109 \n\x11NON_EMPTY_DEFAULT\x10\x07\x12\x0e\n\nIDENTIFIER\x10\x08:`\n\x0efie\
110 ld_behavior\x18\x9c\x08\x20\x03(\x0e2\x19.google.api.FieldBehavior\x12\
111 \x1d.google.protobuf.FieldOptionsR\rfieldBehaviorBp\n\x0ecom.google.apiB\
112 \x12FieldBehaviorProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/a\
113 nnotations;annotations\xa2\x02\x04GAPIJ\xe2\x1f\n\x06\x12\x04\x0e\0g\x01\
114 \n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20\
115 Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20V\
116 ersion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20\
117 this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\
118 \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\
119 \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\
120 less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\
121 \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\
122 is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\
123 WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\
124 s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\
125 \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\
126 r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\
127 \x12\x03\x12\0*\n\x08\n\x01\x08\x12\x03\x14\0X\n\t\n\x02\x08\x0b\x12\x03\
128 \x14\0X\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\
129 \n\x08\n\x01\x08\x12\x03\x16\03\n\t\n\x02\x08\x08\x12\x03\x16\03\n\x08\n\
130 \x01\x08\x12\x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\0'\n\x08\n\x01\x08\
131 \x12\x03\x18\0\"\n\t\n\x02\x08$\x12\x03\x18\0\"\n\t\n\x01\x07\x12\x04\
132 \x1a\0(\x01\n\xda\x03\n\x02\x07\0\x12\x03'\x02:\x1a\xce\x03\x20A\x20desi\
133 gnation\x20of\x20a\x20specific\x20field\x20behavior\x20(required,\x20out\
134 put\x20only,\x20etc.)\n\x20in\x20protobuf\x20messages.\n\n\x20Examples:\
135 \n\n\x20\x20\x20string\x20name\x20=\x201\x20[(google.api.field_behavior)\
136 \x20=\x20REQUIRED];\n\x20\x20\x20State\x20state\x20=\x201\x20[(google.ap\
137 i.field_behavior)\x20=\x20OUTPUT_ONLY];\n\x20\x20\x20google.protobuf.Dur\
138 ation\x20ttl\x20=\x201\n\x20\x20\x20\x20\x20[(google.api.field_behavior)\
139 \x20=\x20INPUT_ONLY];\n\x20\x20\x20google.protobuf.Timestamp\x20expire_t\
140 ime\x20=\x201\n\x20\x20\x20\x20\x20[(google.api.field_behavior)\x20=\x20\
141 OUTPUT_ONLY,\n\x20\x20\x20\x20\x20\x20(google.api.field_behavior)\x20=\
142 \x20IMMUTABLE];\n\n\n\n\x03\x07\0\x02\x12\x03\x1a\x07#\n\n\n\x03\x07\0\
143 \x04\x12\x03'\x02\n\n\n\n\x03\x07\0\x06\x12\x03'\x0b#\n\n\n\x03\x07\0\
144 \x01\x12\x03'$2\n\n\n\x03\x07\0\x03\x12\x03'59\n\xea\x02\n\x02\x05\0\x12\
145 \x040\0g\x01\x1a\xdd\x02\x20An\x20indicator\x20of\x20the\x20behavior\x20\
146 of\x20a\x20given\x20field\x20(for\x20example,\x20that\x20a\x20field\n\
147 \x20is\x20required\x20in\x20requests,\x20or\x20given\x20as\x20output\x20\
148 but\x20ignored\x20as\x20input).\n\x20This\x20**does\x20not**\x20change\
149 \x20the\x20behavior\x20in\x20protocol\x20buffers\x20itself;\x20it\x20onl\
150 y\n\x20denotes\x20the\x20behavior\x20and\x20may\x20affect\x20how\x20API\
151 \x20tooling\x20handles\x20the\x20field.\n\n\x20Note:\x20This\x20enum\x20\
152 **may**\x20receive\x20new\x20values\x20in\x20the\x20future.\n\n\n\n\x03\
153 \x05\0\x01\x12\x030\x05\x12\n?\n\x04\x05\0\x02\0\x12\x032\x02!\x1a2\x20C\
154 onventional\x20default\x20for\x20enums.\x20Do\x20not\x20use\x20this.\n\n\
155 \x0c\n\x05\x05\0\x02\0\x01\x12\x032\x02\x1c\n\x0c\n\x05\x05\0\x02\0\x02\
156 \x12\x032\x1f\x20\n\xa1\x01\n\x04\x05\0\x02\x01\x12\x037\x02\x0f\x1a\x93\
157 \x01\x20Specifically\x20denotes\x20a\x20field\x20as\x20optional.\n\x20Wh\
158 ile\x20all\x20fields\x20in\x20protocol\x20buffers\x20are\x20optional,\
159 \x20this\x20may\x20be\x20specified\n\x20for\x20emphasis\x20if\x20appropr\
160 iate.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x037\x02\n\n\x0c\n\x05\x05\0\
161 \x02\x01\x02\x12\x037\r\x0e\n\xc0\x01\n\x04\x05\0\x02\x02\x12\x03<\x02\
162 \x0f\x1a\xb2\x01\x20Denotes\x20a\x20field\x20as\x20required.\n\x20This\
163 \x20indicates\x20that\x20the\x20field\x20**must**\x20be\x20provided\x20a\
164 s\x20part\x20of\x20the\x20request,\n\x20and\x20failure\x20to\x20do\x20so\
165 \x20will\x20cause\x20an\x20error\x20(usually\x20`INVALID_ARGUMENT`).\n\n\
166 \x0c\n\x05\x05\0\x02\x02\x01\x12\x03<\x02\n\n\x0c\n\x05\x05\0\x02\x02\
167 \x02\x12\x03<\r\x0e\n\xfd\x01\n\x04\x05\0\x02\x03\x12\x03B\x02\x12\x1a\
168 \xef\x01\x20Denotes\x20a\x20field\x20as\x20output\x20only.\n\x20This\x20\
169 indicates\x20that\x20the\x20field\x20is\x20provided\x20in\x20responses,\
170 \x20but\x20including\x20the\n\x20field\x20in\x20a\x20request\x20does\x20\
171 nothing\x20(the\x20server\x20*must*\x20ignore\x20it\x20and\n\x20*must\
172 \x20not*\x20throw\x20an\x20error\x20as\x20a\x20result\x20of\x20the\x20fi\
173 eld's\x20presence).\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03B\x02\r\n\x0c\
174 \n\x05\x05\0\x02\x03\x02\x12\x03B\x10\x11\n\x9e\x01\n\x04\x05\0\x02\x04\
175 \x12\x03G\x02\x11\x1a\x90\x01\x20Denotes\x20a\x20field\x20as\x20input\
176 \x20only.\n\x20This\x20indicates\x20that\x20the\x20field\x20is\x20provid\
177 ed\x20in\x20requests,\x20and\x20the\n\x20corresponding\x20field\x20is\
178 \x20not\x20included\x20in\x20output.\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\
179 \x03G\x02\x0c\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03G\x0f\x10\n\xa3\x01\n\
180 \x04\x05\0\x02\x05\x12\x03L\x02\x10\x1a\x95\x01\x20Denotes\x20a\x20field\
181 \x20as\x20immutable.\n\x20This\x20indicates\x20that\x20the\x20field\x20m\
182 ay\x20be\x20set\x20once\x20in\x20a\x20request\x20to\x20create\x20a\n\x20\
183 resource,\x20but\x20may\x20not\x20be\x20changed\x20thereafter.\n\n\x0c\n\
184 \x05\x05\0\x02\x05\x01\x12\x03L\x02\x0b\n\x0c\n\x05\x05\0\x02\x05\x02\
185 \x12\x03L\x0e\x0f\n\x93\x02\n\x04\x05\0\x02\x06\x12\x03R\x02\x15\x1a\x85\
186 \x02\x20Denotes\x20that\x20a\x20(repeated)\x20field\x20is\x20an\x20unord\
187 ered\x20list.\n\x20This\x20indicates\x20that\x20the\x20service\x20may\
188 \x20provide\x20the\x20elements\x20of\x20the\x20list\n\x20in\x20any\x20ar\
189 bitrary\x20\x20order,\x20rather\x20than\x20the\x20order\x20the\x20user\
190 \x20originally\n\x20provided.\x20Additionally,\x20the\x20list's\x20order\
191 \x20may\x20or\x20may\x20not\x20be\x20stable.\n\n\x0c\n\x05\x05\0\x02\x06\
192 \x01\x12\x03R\x02\x10\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03R\x13\x14\n\
193 \x81\x02\n\x04\x05\0\x02\x07\x12\x03X\x02\x18\x1a\xf3\x01\x20Denotes\x20\
194 that\x20this\x20field\x20returns\x20a\x20non-empty\x20default\x20value\
195 \x20if\x20not\x20set.\n\x20This\x20indicates\x20that\x20if\x20the\x20use\
196 r\x20provides\x20the\x20empty\x20value\x20in\x20a\x20request,\n\x20a\x20\
197 non-empty\x20value\x20will\x20be\x20returned.\x20The\x20user\x20will\x20\
198 not\x20be\x20aware\x20of\x20what\n\x20non-empty\x20value\x20to\x20expect\
199 .\n\n\x0c\n\x05\x05\0\x02\x07\x01\x12\x03X\x02\x13\n\x0c\n\x05\x05\0\x02\
200 \x07\x02\x12\x03X\x16\x17\n\xf8\x04\n\x04\x05\0\x02\x08\x12\x03f\x02\x11\
201 \x1a\xea\x04\x20Denotes\x20that\x20the\x20field\x20in\x20a\x20resource\
202 \x20(a\x20message\x20annotated\x20with\n\x20google.api.resource)\x20is\
203 \x20used\x20in\x20the\x20resource\x20name\x20to\x20uniquely\x20identify\
204 \x20the\n\x20resource.\x20For\x20AIP-compliant\x20APIs,\x20this\x20shoul\
205 d\x20only\x20be\x20applied\x20to\x20the\n\x20`name`\x20field\x20on\x20th\
206 e\x20resource.\n\n\x20This\x20behavior\x20should\x20not\x20be\x20applied\
207 \x20to\x20references\x20to\x20other\x20resources\x20within\n\x20the\x20m\
208 essage.\n\n\x20The\x20identifier\x20field\x20of\x20resources\x20often\
209 \x20have\x20different\x20field\x20behavior\n\x20depending\x20on\x20the\
210 \x20request\x20it\x20is\x20embedded\x20in\x20(e.g.\x20for\x20Create\x20m\
211 ethods\x20name\n\x20is\x20optional\x20and\x20unused,\x20while\x20for\x20\
212 Update\x20methods\x20it\x20is\x20required).\x20Instead\n\x20of\x20method\
213 -specific\x20annotations,\x20only\x20`IDENTIFIER`\x20is\x20required.\n\n\
214 \x0c\n\x05\x05\0\x02\x08\x01\x12\x03f\x02\x0c\n\x0c\n\x05\x05\0\x02\x08\
215 \x02\x12\x03f\x0f\x10b\x06proto3\
216";
217
218static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
219
220fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
221 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
222}
223
224pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
225 file_descriptor_proto_lazy.get(|| {
226 parse_descriptor_proto()
227 })
228}