Comments (5)
What does this field contain? The tag number?
from wire.
Not really something like this:
message EditError
{
enum ErrorType
{
MAX_NUM_OPTIONS = 1;
MAX_NUM_SESSION = 2;
}
required ErrorType Error = 1;
}
In Java I am unable to extract the enum integer value from a Wire code generated class, something that Google Protocol Buffer Code generation allowed me to have via a public EnumName_VALUE
field.
from wire.
Seems simple enough. You're welcome to submit a pull request to add it, or I can do it sometime after the New Year.
from wire.
Which code sections should I be looking at? Wire has helped me remove 14K protobuf methods from the generated APK. I shall be very happy to contribute =)
from wire.
Look for
writer.beginType(enumType.getName(), "enum", EnumSet.of(PUBLIC));
in MessageEmitter.java.
from wire.
Related Issues (20)
- Project dependencies don't invalidate properly in the configuration cache HOT 5
- generateCommonMainProtos failed with java.lang.NoSuchMethodError: 'void com.squareup.kotlinpoet.NameAllocator.<init>(boolean)' HOT 2
- Broken links HOT 1
- Wire doesn't appear to be compatible with the configuration cache in gradle 8+ HOT 7
- Pass dependencies symbolically to WireTask for better Gradle caching HOT 1
- when i generate kotlin code ,how can i set value on val params. HOT 3
- Why does Wire throw and not fallback to the default value if a required enum value is missing? HOT 5
- Wire proto schema generation broken for protobuf messages containing a map with "protobuf.Any" type fields on versions >= 4.9.4 HOT 4
- NoSuchMethodError for java.lang.Constructor#getParameterCount HOT 4
- Compiling a proto that uses a vendored descriptor.proto HOT 3
- Proto generation fails on Windows with trailing comments
- Crash on annotations.proto HOT 8
- `srcDir` should accept `TaskProvider`
- Accept binary DescriptorProto as input HOT 4
- JavaScript name hashCode is generated for different inherited members [Kotlin Multiplatform] [JS] HOT 2
- Wire adds generated sources to the sourceset two too many times HOT 1
- Add support for Api, FieldMask, SourceContext, and Type from protobuf's `.proto' files. HOT 5
- iOS Client HOT 1
- Poor colour contrast for headers on docs site HOT 4
- FieldOptions.wire_name to dodge name collisions on options
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wire.