Fix protobuf var names

This commit is contained in:
Benedikt Kulmann
2020-04-22 15:51:55 +02:00
parent dafaa31d7e
commit 9355ba3d35
4 changed files with 115 additions and 114 deletions
+79 -77
View File
@@ -24,7 +24,7 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// requests and responses // requests and responses
type CreateSettingsBundleRequest struct { type CreateSettingsBundleRequest struct {
SettingsBundle *SettingsBundle `protobuf:"bytes,1,opt,name=settingsBundle,proto3" json:"settingsBundle,omitempty"` SettingsBundle *SettingsBundle `protobuf:"bytes,1,opt,name=settings_bundle,json=settingsBundle,proto3" json:"settings_bundle,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@@ -63,7 +63,7 @@ func (m *CreateSettingsBundleRequest) GetSettingsBundle() *SettingsBundle {
} }
type CreateSettingsBundleResponse struct { type CreateSettingsBundleResponse struct {
SettingsBundle *SettingsBundle `protobuf:"bytes,1,opt,name=settingsBundle,proto3" json:"settingsBundle,omitempty"` SettingsBundle *SettingsBundle `protobuf:"bytes,1,opt,name=settings_bundle,json=settingsBundle,proto3" json:"settings_bundle,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@@ -149,7 +149,7 @@ func (m *GetSettingsBundleRequest) GetKey() string {
} }
type GetSettingsBundleResponse struct { type GetSettingsBundleResponse struct {
SettingsBundle *SettingsBundle `protobuf:"bytes,1,opt,name=settingsBundle,proto3" json:"settingsBundle,omitempty"` SettingsBundle *SettingsBundle `protobuf:"bytes,1,opt,name=settings_bundle,json=settingsBundle,proto3" json:"settings_bundle,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@@ -227,7 +227,7 @@ func (m *ListSettingsBundlesRequest) GetExtension() string {
} }
type ListSettingsBundlesResponse struct { type ListSettingsBundlesResponse struct {
SettingsBundles []*SettingsBundle `protobuf:"bytes,1,rep,name=settingsBundles,proto3" json:"settingsBundles,omitempty"` SettingsBundles []*SettingsBundle `protobuf:"bytes,1,rep,name=settings_bundles,json=settingsBundles,proto3" json:"settings_bundles,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@@ -269,7 +269,7 @@ func (m *ListSettingsBundlesResponse) GetSettingsBundles() []*SettingsBundle {
type SettingsBundle struct { type SettingsBundle struct {
Extension string `protobuf:"bytes,1,opt,name=extension,proto3" json:"extension,omitempty"` Extension string `protobuf:"bytes,1,opt,name=extension,proto3" json:"extension,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
DisplayName string `protobuf:"bytes,3,opt,name=displayName,proto3" json:"displayName,omitempty"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
Settings []*Setting `protobuf:"bytes,4,rep,name=settings,proto3" json:"settings,omitempty"` Settings []*Setting `protobuf:"bytes,4,rep,name=settings,proto3" json:"settings,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@@ -331,7 +331,7 @@ func (m *SettingsBundle) GetSettings() []*Setting {
type Setting struct { type Setting struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
DisplayName string `protobuf:"bytes,2,opt,name=displayName,proto3" json:"displayName,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Types that are valid to be assigned to Value: // Types that are valid to be assigned to Value:
// *Setting_IntValue // *Setting_IntValue
@@ -396,23 +396,23 @@ type isSetting_Value interface {
} }
type Setting_IntValue struct { type Setting_IntValue struct {
IntValue *IntSetting `protobuf:"bytes,4,opt,name=intValue,proto3,oneof"` IntValue *IntSetting `protobuf:"bytes,4,opt,name=int_value,json=intValue,proto3,oneof"`
} }
type Setting_StringValue struct { type Setting_StringValue struct {
StringValue *StringSetting `protobuf:"bytes,5,opt,name=stringValue,proto3,oneof"` StringValue *StringSetting `protobuf:"bytes,5,opt,name=string_value,json=stringValue,proto3,oneof"`
} }
type Setting_BoolValue struct { type Setting_BoolValue struct {
BoolValue *BoolSetting `protobuf:"bytes,6,opt,name=boolValue,proto3,oneof"` BoolValue *BoolSetting `protobuf:"bytes,6,opt,name=bool_value,json=boolValue,proto3,oneof"`
} }
type Setting_SingleChoiceValue struct { type Setting_SingleChoiceValue struct {
SingleChoiceValue *SingleChoiceListSetting `protobuf:"bytes,7,opt,name=singleChoiceValue,proto3,oneof"` SingleChoiceValue *SingleChoiceListSetting `protobuf:"bytes,7,opt,name=single_choice_value,json=singleChoiceValue,proto3,oneof"`
} }
type Setting_MultiChoiceValue struct { type Setting_MultiChoiceValue struct {
MultiChoiceValue *MultiChoiceListSetting `protobuf:"bytes,8,opt,name=multiChoiceValue,proto3,oneof"` MultiChoiceValue *MultiChoiceListSetting `protobuf:"bytes,8,opt,name=multi_choice_value,json=multiChoiceValue,proto3,oneof"`
} }
func (*Setting_IntValue) isSetting_Value() {} func (*Setting_IntValue) isSetting_Value() {}
@@ -552,8 +552,8 @@ func (m *IntSetting) GetPlaceholder() string {
type StringSetting struct { type StringSetting struct {
Default string `protobuf:"bytes,1,opt,name=default,proto3" json:"default,omitempty"` Default string `protobuf:"bytes,1,opt,name=default,proto3" json:"default,omitempty"`
Required bool `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"` Required bool `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"`
MinLength int32 `protobuf:"varint,3,opt,name=minLength,proto3" json:"minLength,omitempty"` MinLength int32 `protobuf:"varint,3,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"`
MaxLength int32 `protobuf:"varint,4,opt,name=maxLength,proto3" json:"maxLength,omitempty"` MaxLength int32 `protobuf:"varint,4,opt,name=max_length,json=maxLength,proto3" json:"max_length,omitempty"`
Placeholder string `protobuf:"bytes,5,opt,name=placeholder,proto3" json:"placeholder,omitempty"` Placeholder string `protobuf:"bytes,5,opt,name=placeholder,proto3" json:"placeholder,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@@ -743,7 +743,7 @@ type ListOption struct {
// *ListOption_IntValue // *ListOption_IntValue
Option isListOption_Option `protobuf_oneof:"option"` Option isListOption_Option `protobuf_oneof:"option"`
Selected bool `protobuf:"varint,3,opt,name=selected,proto3" json:"selected,omitempty"` Selected bool `protobuf:"varint,3,opt,name=selected,proto3" json:"selected,omitempty"`
DisplayValue string `protobuf:"bytes,4,opt,name=displayValue,proto3" json:"displayValue,omitempty"` DisplayValue string `protobuf:"bytes,4,opt,name=display_value,json=displayValue,proto3" json:"display_value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@@ -779,11 +779,11 @@ type isListOption_Option interface {
} }
type ListOption_StringValue struct { type ListOption_StringValue struct {
StringValue string `protobuf:"bytes,1,opt,name=stringValue,proto3,oneof"` StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
} }
type ListOption_IntValue struct { type ListOption_IntValue struct {
IntValue int64 `protobuf:"varint,2,opt,name=intValue,proto3,oneof"` IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
} }
func (*ListOption_StringValue) isListOption_Option() {} func (*ListOption_StringValue) isListOption_Option() {}
@@ -855,65 +855,67 @@ func init() {
} }
var fileDescriptor_6c7cab62fa432213 = []byte{ var fileDescriptor_6c7cab62fa432213 = []byte{
// 947 bytes of a gzipped FileDescriptorProto // 983 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x72, 0xe3, 0x44, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x5b, 0x6f, 0xdc, 0x44,
0x10, 0x5e, 0xd9, 0x49, 0x6c, 0x77, 0x48, 0x36, 0x19, 0x02, 0x6b, 0xb4, 0x01, 0xbc, 0xda, 0x03, 0x14, 0xae, 0x77, 0x73, 0xd9, 0x3d, 0x69, 0x6e, 0xd3, 0x40, 0x17, 0x37, 0x81, 0x8d, 0xf3, 0x00,
0x6c, 0x20, 0x56, 0xf0, 0x5e, 0x28, 0x57, 0x6d, 0xc1, 0x3a, 0x84, 0x64, 0xd9, 0x6c, 0xa0, 0x94, 0x0d, 0x64, 0x1d, 0x92, 0x27, 0x22, 0x81, 0xda, 0x84, 0x90, 0x14, 0x92, 0x52, 0x39, 0x12, 0x0f,
0x2a, 0x0e, 0x5b, 0xfc, 0xd4, 0x58, 0x6e, 0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x5a,
0xab, 0x7f, 0x87, 0xec, 0x6f, 0xa5, 0xe0, 0xdd, 0x29, 0x4b, 0xb8, 0x0f, 0x6b, 0x1f, 0xe1, 0x09, 0x9b, 0xe4, 0xfd, 0x17, 0x96, 0x73, 0x3b, 0xa1, 0xec, 0xb8, 0x11, 0x55, 0x9a, 0x25, 0xee, 0xd1,
0xfa, 0x22, 0xc0, 0xb0, 0xf5, 0x84, 0xf2, 0x88, 0xfa, 0xe4, 0x7e, 0x9c, 0xbf, 0x6b, 0xe7, 0x39, 0xa3, 0xbd, 0xfd, 0xc7, 0x27, 0xfb, 0x5b, 0xd5, 0x77, 0x5b, 0x9b, 0xeb, 0x15, 0xab, 0xb2, 0xb5,
0xdb, 0xa9, 0x0e, 0x26, 0xec, 0xbc, 0x2c, 0x52, 0x0b, 0xf9, 0x3a, 0x17, 0xf2, 0x34, 0xf9, 0x75, 0x40, 0xe3, 0x38, 0xe4, 0x3e, 0xfe, 0x20, 0xb9, 0xdf, 0x28, 0x29, 0x76, 0xae, 0x44, 0x92, 0x03,
0xeb, 0x2f, 0xe9, 0xc7, 0xfd, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x08, 0x45, 0x77, 0xf6, 0xda, 0x58, 0xf8, 0x90, 0x9d, 0xb2, 0x50, 0xc6, 0x2c, 0x69, 0x1e, 0x53, 0x91, 0xd2, 0x90, 0x6c, 0x67,
0x09, 0x00, 0x00, 0xf5, 0x77, 0xdc, 0xb2, 0x66, 0xcb, 0xf8, 0xe0, 0xd2, 0x2d, 0xdb, 0xa2, 0xd0, 0x48, 0xbb, 0x34,
0xf2, 0x79, 0xfe, 0x33, 0xd7, 0x99, 0xc2, 0xc7, 0xf6, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x26,
0x84, 0x87, 0xe6, 0xec, 0x09, 0x00, 0x00,
} }
+4 -5
View File
@@ -77,11 +77,10 @@ func (h *webBundleServiceHandler) ListSettingsBundles(w http.ResponseWriter, r *
resp := &ListSettingsBundlesResponse{} resp := &ListSettingsBundlesResponse{}
// TODO no need to parse any body on a get request. This code shoud be removed from GET endpoints, ergo updating the generator. if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
// if err := json.NewDecoder(r.Body).Decode(&req); err != nil { http.Error(w, err.Error(), http.StatusPreconditionFailed)
// http.Error(w, err.Error(), http.StatusPreconditionFailed) return
// return }
// }
if err := h.h.ListSettingsBundles( if err := h.h.ListSettingsBundles(
context.Background(), context.Background(),
+16 -16
View File
@@ -51,11 +51,11 @@ service BundleService {
// requests and responses // requests and responses
message CreateSettingsBundleRequest { message CreateSettingsBundleRequest {
SettingsBundle settingsBundle = 1; SettingsBundle settings_bundle = 1;
} }
message CreateSettingsBundleResponse { message CreateSettingsBundleResponse {
SettingsBundle settingsBundle = 1; SettingsBundle settings_bundle = 1;
} }
message GetSettingsBundleRequest { message GetSettingsBundleRequest {
@@ -64,7 +64,7 @@ message GetSettingsBundleRequest {
} }
message GetSettingsBundleResponse { message GetSettingsBundleResponse {
SettingsBundle settingsBundle = 1; SettingsBundle settings_bundle = 1;
} }
message ListSettingsBundlesRequest { message ListSettingsBundlesRequest {
@@ -72,27 +72,27 @@ message ListSettingsBundlesRequest {
} }
message ListSettingsBundlesResponse { message ListSettingsBundlesResponse {
repeated SettingsBundle settingsBundles = 1; repeated SettingsBundle settings_bundles = 1;
} }
// payloads // payloads
message SettingsBundle { message SettingsBundle {
string extension = 1; string extension = 1;
string key = 2; string key = 2;
string displayName = 3; string display_name = 3;
repeated Setting settings = 4; repeated Setting settings = 4;
} }
message Setting { message Setting {
string key = 1; string key = 1;
string displayName = 2; string display_name = 2;
string description = 3; string description = 3;
oneof value { oneof value {
IntSetting intValue = 4; IntSetting int_value = 4;
StringSetting stringValue = 5; StringSetting string_value = 5;
BoolSetting boolValue = 6; BoolSetting bool_value = 6;
SingleChoiceListSetting singleChoiceValue = 7; SingleChoiceListSetting single_choice_value = 7;
MultiChoiceListSetting multiChoiceValue = 8; MultiChoiceListSetting multi_choice_value = 8;
} }
} }
@@ -107,8 +107,8 @@ message IntSetting {
message StringSetting { message StringSetting {
string default = 1; string default = 1;
bool required = 2; bool required = 2;
int32 minLength = 3; int32 min_length = 3;
int32 maxLength = 4; int32 max_length = 4;
string placeholder = 5; string placeholder = 5;
} }
@@ -126,9 +126,9 @@ message MultiChoiceListSetting {
message ListOption { message ListOption {
oneof option { oneof option {
string stringValue = 1; string string_value = 1;
int64 intValue = 2; int64 int_value = 2;
} }
bool selected = 3; bool selected = 3;
string displayValue = 4; string display_value = 4;
} }
+16 -16
View File
@@ -134,7 +134,7 @@
"protoCreateSettingsBundleRequest": { "protoCreateSettingsBundleRequest": {
"type": "object", "type": "object",
"properties": { "properties": {
"settingsBundle": { "settings_bundle": {
"$ref": "#/definitions/protoSettingsBundle" "$ref": "#/definitions/protoSettingsBundle"
} }
}, },
@@ -143,7 +143,7 @@
"protoCreateSettingsBundleResponse": { "protoCreateSettingsBundleResponse": {
"type": "object", "type": "object",
"properties": { "properties": {
"settingsBundle": { "settings_bundle": {
"$ref": "#/definitions/protoSettingsBundle" "$ref": "#/definitions/protoSettingsBundle"
} }
} }
@@ -151,7 +151,7 @@
"protoGetSettingsBundleResponse": { "protoGetSettingsBundleResponse": {
"type": "object", "type": "object",
"properties": { "properties": {
"settingsBundle": { "settings_bundle": {
"$ref": "#/definitions/protoSettingsBundle" "$ref": "#/definitions/protoSettingsBundle"
} }
} }
@@ -183,10 +183,10 @@
"protoListOption": { "protoListOption": {
"type": "object", "type": "object",
"properties": { "properties": {
"stringValue": { "string_value": {
"type": "string" "type": "string"
}, },
"intValue": { "int_value": {
"type": "string", "type": "string",
"format": "int64" "format": "int64"
}, },
@@ -194,7 +194,7 @@
"type": "boolean", "type": "boolean",
"format": "boolean" "format": "boolean"
}, },
"displayValue": { "display_value": {
"type": "string" "type": "string"
} }
} }
@@ -202,7 +202,7 @@
"protoListSettingsBundlesResponse": { "protoListSettingsBundlesResponse": {
"type": "object", "type": "object",
"properties": { "properties": {
"settingsBundles": { "settings_bundles": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/definitions/protoSettingsBundle" "$ref": "#/definitions/protoSettingsBundle"
@@ -227,25 +227,25 @@
"key": { "key": {
"type": "string" "type": "string"
}, },
"displayName": { "display_name": {
"type": "string" "type": "string"
}, },
"description": { "description": {
"type": "string" "type": "string"
}, },
"intValue": { "int_value": {
"$ref": "#/definitions/protoIntSetting" "$ref": "#/definitions/protoIntSetting"
}, },
"stringValue": { "string_value": {
"$ref": "#/definitions/protoStringSetting" "$ref": "#/definitions/protoStringSetting"
}, },
"boolValue": { "bool_value": {
"$ref": "#/definitions/protoBoolSetting" "$ref": "#/definitions/protoBoolSetting"
}, },
"singleChoiceValue": { "single_choice_value": {
"$ref": "#/definitions/protoSingleChoiceListSetting" "$ref": "#/definitions/protoSingleChoiceListSetting"
}, },
"multiChoiceValue": { "multi_choice_value": {
"$ref": "#/definitions/protoMultiChoiceListSetting" "$ref": "#/definitions/protoMultiChoiceListSetting"
} }
} }
@@ -259,7 +259,7 @@
"key": { "key": {
"type": "string" "type": "string"
}, },
"displayName": { "display_name": {
"type": "string" "type": "string"
}, },
"settings": { "settings": {
@@ -292,11 +292,11 @@
"type": "boolean", "type": "boolean",
"format": "boolean" "format": "boolean"
}, },
"minLength": { "min_length": {
"type": "integer", "type": "integer",
"format": "int32" "format": "int32"
}, },
"maxLength": { "max_length": {
"type": "integer", "type": "integer",
"format": "int32" "format": "int32"
}, },