github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/extensions/compression/brotli/compressor/v3/brotli.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/extensions/compression/brotli/compressor/v3/brotli.proto 6 7 package envoy_extensions_compression_brotli_compressor_v3 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _ "github.com/envoyproxy/protoc-gen-validate/validate" 12 proto "github.com/golang/protobuf/proto" 13 wrappers "github.com/golang/protobuf/ptypes/wrappers" 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // This is a compile-time assertion that a sufficiently up-to-date version 28 // of the legacy proto package is being used. 29 const _ = proto.ProtoPackageIsVersion4 30 31 type Brotli_EncoderMode int32 32 33 const ( 34 Brotli_DEFAULT Brotli_EncoderMode = 0 35 Brotli_GENERIC Brotli_EncoderMode = 1 36 Brotli_TEXT Brotli_EncoderMode = 2 37 Brotli_FONT Brotli_EncoderMode = 3 38 ) 39 40 // Enum value maps for Brotli_EncoderMode. 41 var ( 42 Brotli_EncoderMode_name = map[int32]string{ 43 0: "DEFAULT", 44 1: "GENERIC", 45 2: "TEXT", 46 3: "FONT", 47 } 48 Brotli_EncoderMode_value = map[string]int32{ 49 "DEFAULT": 0, 50 "GENERIC": 1, 51 "TEXT": 2, 52 "FONT": 3, 53 } 54 ) 55 56 func (x Brotli_EncoderMode) Enum() *Brotli_EncoderMode { 57 p := new(Brotli_EncoderMode) 58 *p = x 59 return p 60 } 61 62 func (x Brotli_EncoderMode) String() string { 63 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 64 } 65 66 func (Brotli_EncoderMode) Descriptor() protoreflect.EnumDescriptor { 67 return file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_enumTypes[0].Descriptor() 68 } 69 70 func (Brotli_EncoderMode) Type() protoreflect.EnumType { 71 return &file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_enumTypes[0] 72 } 73 74 func (x Brotli_EncoderMode) Number() protoreflect.EnumNumber { 75 return protoreflect.EnumNumber(x) 76 } 77 78 // Deprecated: Use Brotli_EncoderMode.Descriptor instead. 79 func (Brotli_EncoderMode) EnumDescriptor() ([]byte, []int) { 80 return file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_rawDescGZIP(), []int{0, 0} 81 } 82 83 // [#next-free-field: 7] 84 type Brotli struct { 85 state protoimpl.MessageState 86 sizeCache protoimpl.SizeCache 87 unknownFields protoimpl.UnknownFields 88 89 // Value from 0 to 11 that controls the main compression speed-density lever. 90 // The higher quality, the slower compression. The default value is 3. 91 Quality *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=quality,proto3" json:"quality,omitempty"` 92 // A value used to tune encoder for specific input. For more information about modes, 93 // please refer to brotli manual: https://brotli.org/encode.html#aa6f 94 // This field will be set to "DEFAULT" if not specified. 95 EncoderMode Brotli_EncoderMode `protobuf:"varint,2,opt,name=encoder_mode,json=encoderMode,proto3,enum=envoy.extensions.compression.brotli.compressor.v3.Brotli_EncoderMode" json:"encoder_mode,omitempty"` 96 // Value from 10 to 24 that represents the base two logarithmic of the compressor's window size. 97 // Larger window results in better compression at the expense of memory usage. The default is 18. 98 // For more details about this parameter, please refer to brotli manual: 99 // https://brotli.org/encode.html#a9a8 100 WindowBits *wrappers.UInt32Value `protobuf:"bytes,3,opt,name=window_bits,json=windowBits,proto3" json:"window_bits,omitempty"` 101 // Value from 16 to 24 that represents the base two logarithmic of the compressor's input block 102 // size. Larger input block results in better compression at the expense of memory usage. The 103 // default is 24. For more details about this parameter, please refer to brotli manual: 104 // https://brotli.org/encode.html#a9a8 105 InputBlockBits *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=input_block_bits,json=inputBlockBits,proto3" json:"input_block_bits,omitempty"` 106 // Value for compressor's next output buffer. If not set, defaults to 4096. 107 ChunkSize *wrappers.UInt32Value `protobuf:"bytes,5,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"` 108 // If true, disables "literal context modeling" format feature. 109 // This flag is a "decoding-speed vs compression ratio" trade-off. 110 DisableLiteralContextModeling bool `protobuf:"varint,6,opt,name=disable_literal_context_modeling,json=disableLiteralContextModeling,proto3" json:"disable_literal_context_modeling,omitempty"` 111 } 112 113 func (x *Brotli) Reset() { 114 *x = Brotli{} 115 if protoimpl.UnsafeEnabled { 116 mi := &file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_msgTypes[0] 117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 118 ms.StoreMessageInfo(mi) 119 } 120 } 121 122 func (x *Brotli) String() string { 123 return protoimpl.X.MessageStringOf(x) 124 } 125 126 func (*Brotli) ProtoMessage() {} 127 128 func (x *Brotli) ProtoReflect() protoreflect.Message { 129 mi := &file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_msgTypes[0] 130 if protoimpl.UnsafeEnabled && x != nil { 131 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 132 if ms.LoadMessageInfo() == nil { 133 ms.StoreMessageInfo(mi) 134 } 135 return ms 136 } 137 return mi.MessageOf(x) 138 } 139 140 // Deprecated: Use Brotli.ProtoReflect.Descriptor instead. 141 func (*Brotli) Descriptor() ([]byte, []int) { 142 return file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_rawDescGZIP(), []int{0} 143 } 144 145 func (x *Brotli) GetQuality() *wrappers.UInt32Value { 146 if x != nil { 147 return x.Quality 148 } 149 return nil 150 } 151 152 func (x *Brotli) GetEncoderMode() Brotli_EncoderMode { 153 if x != nil { 154 return x.EncoderMode 155 } 156 return Brotli_DEFAULT 157 } 158 159 func (x *Brotli) GetWindowBits() *wrappers.UInt32Value { 160 if x != nil { 161 return x.WindowBits 162 } 163 return nil 164 } 165 166 func (x *Brotli) GetInputBlockBits() *wrappers.UInt32Value { 167 if x != nil { 168 return x.InputBlockBits 169 } 170 return nil 171 } 172 173 func (x *Brotli) GetChunkSize() *wrappers.UInt32Value { 174 if x != nil { 175 return x.ChunkSize 176 } 177 return nil 178 } 179 180 func (x *Brotli) GetDisableLiteralContextModeling() bool { 181 if x != nil { 182 return x.DisableLiteralContextModeling 183 } 184 return false 185 } 186 187 var File_envoy_extensions_compression_brotli_compressor_v3_brotli_proto protoreflect.FileDescriptor 188 189 var file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_rawDesc = []byte{ 190 0x0a, 0x3e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 191 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x62, 192 0x72, 0x6f, 0x74, 0x6c, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x6f, 0x72, 193 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x72, 0x6f, 0x74, 0x6c, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 194 0x12, 0x31, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 195 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x62, 196 0x72, 0x6f, 0x74, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x6f, 0x72, 197 0x2e, 0x76, 0x33, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 198 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 199 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 200 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 201 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 202 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xab, 0x04, 0x0a, 0x06, 203 0x42, 0x72, 0x6f, 0x74, 0x6c, 0x69, 0x12, 0x3f, 0x0a, 0x07, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 204 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 205 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 206 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x2a, 0x02, 0x18, 0x0b, 0x52, 0x07, 207 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x72, 0x0a, 0x0c, 0x65, 0x6e, 0x63, 0x6f, 0x64, 208 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x45, 0x2e, 209 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 210 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x62, 0x72, 0x6f, 211 0x74, 0x6c, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x2e, 0x76, 212 0x33, 0x2e, 0x42, 0x72, 0x6f, 0x74, 0x6c, 0x69, 0x2e, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x72, 213 0x4d, 0x6f, 0x64, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0b, 214 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x77, 215 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x5f, 0x62, 0x69, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 216 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 217 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x09, 218 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x18, 0x18, 0x28, 0x0a, 0x52, 0x0a, 0x77, 0x69, 0x6e, 0x64, 0x6f, 219 0x77, 0x42, 0x69, 0x74, 0x73, 0x12, 0x51, 0x0a, 0x10, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x62, 220 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x62, 0x69, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 221 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 222 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x09, 0xfa, 223 0x42, 0x06, 0x2a, 0x04, 0x18, 0x18, 0x28, 0x10, 0x52, 0x0e, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x42, 224 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x69, 0x74, 0x73, 0x12, 0x49, 0x0a, 0x0a, 0x63, 0x68, 0x75, 0x6e, 225 0x6b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 226 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 227 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0c, 0xfa, 0x42, 0x09, 0x2a, 228 0x07, 0x18, 0x80, 0x80, 0x04, 0x28, 0x80, 0x20, 0x52, 0x09, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x53, 229 0x69, 0x7a, 0x65, 0x12, 0x47, 0x0a, 0x20, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 230 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x6d, 231 0x6f, 0x64, 0x65, 0x6c, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1d, 0x64, 232 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 233 0x74, 0x65, 0x78, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x69, 0x6e, 0x67, 0x22, 0x3b, 0x0a, 0x0b, 234 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x44, 235 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x45, 0x4e, 0x45, 236 0x52, 0x49, 0x43, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x45, 0x58, 0x54, 0x10, 0x02, 0x12, 237 0x08, 0x0a, 0x04, 0x46, 0x4f, 0x4e, 0x54, 0x10, 0x03, 0x42, 0x58, 0x0a, 0x3f, 0x69, 0x6f, 0x2e, 238 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 239 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 240 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x62, 0x72, 0x6f, 0x74, 0x6c, 0x69, 0x2e, 0x63, 241 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x2e, 0x76, 0x33, 0x42, 0x0b, 0x42, 0x72, 242 0x6f, 0x74, 0x6c, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 243 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 244 } 245 246 var ( 247 file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_rawDescOnce sync.Once 248 file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_rawDescData = file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_rawDesc 249 ) 250 251 func file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_rawDescGZIP() []byte { 252 file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_rawDescOnce.Do(func() { 253 file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_rawDescData) 254 }) 255 return file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_rawDescData 256 } 257 258 var file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 259 var file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 260 var file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_goTypes = []interface{}{ 261 (Brotli_EncoderMode)(0), // 0: envoy.extensions.compression.brotli.compressor.v3.Brotli.EncoderMode 262 (*Brotli)(nil), // 1: envoy.extensions.compression.brotli.compressor.v3.Brotli 263 (*wrappers.UInt32Value)(nil), // 2: google.protobuf.UInt32Value 264 } 265 var file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_depIdxs = []int32{ 266 2, // 0: envoy.extensions.compression.brotli.compressor.v3.Brotli.quality:type_name -> google.protobuf.UInt32Value 267 0, // 1: envoy.extensions.compression.brotli.compressor.v3.Brotli.encoder_mode:type_name -> envoy.extensions.compression.brotli.compressor.v3.Brotli.EncoderMode 268 2, // 2: envoy.extensions.compression.brotli.compressor.v3.Brotli.window_bits:type_name -> google.protobuf.UInt32Value 269 2, // 3: envoy.extensions.compression.brotli.compressor.v3.Brotli.input_block_bits:type_name -> google.protobuf.UInt32Value 270 2, // 4: envoy.extensions.compression.brotli.compressor.v3.Brotli.chunk_size:type_name -> google.protobuf.UInt32Value 271 5, // [5:5] is the sub-list for method output_type 272 5, // [5:5] is the sub-list for method input_type 273 5, // [5:5] is the sub-list for extension type_name 274 5, // [5:5] is the sub-list for extension extendee 275 0, // [0:5] is the sub-list for field type_name 276 } 277 278 func init() { file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_init() } 279 func file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_init() { 280 if File_envoy_extensions_compression_brotli_compressor_v3_brotli_proto != nil { 281 return 282 } 283 if !protoimpl.UnsafeEnabled { 284 file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 285 switch v := v.(*Brotli); i { 286 case 0: 287 return &v.state 288 case 1: 289 return &v.sizeCache 290 case 2: 291 return &v.unknownFields 292 default: 293 return nil 294 } 295 } 296 } 297 type x struct{} 298 out := protoimpl.TypeBuilder{ 299 File: protoimpl.DescBuilder{ 300 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 301 RawDescriptor: file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_rawDesc, 302 NumEnums: 1, 303 NumMessages: 1, 304 NumExtensions: 0, 305 NumServices: 0, 306 }, 307 GoTypes: file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_goTypes, 308 DependencyIndexes: file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_depIdxs, 309 EnumInfos: file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_enumTypes, 310 MessageInfos: file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_msgTypes, 311 }.Build() 312 File_envoy_extensions_compression_brotli_compressor_v3_brotli_proto = out.File 313 file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_rawDesc = nil 314 file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_goTypes = nil 315 file_envoy_extensions_compression_brotli_compressor_v3_brotli_proto_depIdxs = nil 316 }