Everything but the last element of the full type name, CamelCased. The values of type Foo.Bar are call Foo_value1... not Foo_Bar_value1... .
()
| 174 | // Everything but the last element of the full type name, CamelCased. |
| 175 | // The values of type Foo.Bar are call Foo_value1... not Foo_Bar_value1... . |
| 176 | func (e *EnumDescriptor) prefix() string { |
| 177 | if e.parent == nil { |
| 178 | // If the enum is not part of a message, the prefix is just the type name. |
| 179 | return CamelCase(*e.Name) + "_" |
| 180 | } |
| 181 | typeName := e.TypeName() |
| 182 | return CamelCaseSlice(typeName[0:len(typeName)-1]) + "_" |
| 183 | } |
| 184 | |
| 185 | // The integer value of the named constant in this enumerated type. |
| 186 | func (e *EnumDescriptor) integerValueAsString(name string) string { |
no test coverage detected