Package com.google.protobuf.util
Interface JsonEnumValueOptionsOrBuilder
-
- All Superinterfaces:
MessageLiteOrBuilder,MessageOrBuilder
- All Known Implementing Classes:
JsonEnumValueOptions,JsonEnumValueOptions.Builder
@Generated public interface JsonEnumValueOptionsOrBuilder extends MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetString()Allows user to specify a custom string to use when serializing an enum value to JSON.ByteStringgetStringBytes()Allows user to specify a custom string to use when serializing an enum value to JSON.booleanhasString()Allows user to specify a custom string to use when serializing an enum value to JSON.-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasString
boolean hasString()
Allows user to specify a custom string to use when serializing an enum value to JSON. Sample usage: enum Foo { ... FOO_BAR = 42 [(pb.enumvalue.json).string = "my_custom_name"]; }string string = 1;- Returns:
- Whether the string field is set.
-
getString
java.lang.String getString()
Allows user to specify a custom string to use when serializing an enum value to JSON. Sample usage: enum Foo { ... FOO_BAR = 42 [(pb.enumvalue.json).string = "my_custom_name"]; }string string = 1;- Returns:
- The string.
-
getStringBytes
ByteString getStringBytes()
Allows user to specify a custom string to use when serializing an enum value to JSON. Sample usage: enum Foo { ... FOO_BAR = 42 [(pb.enumvalue.json).string = "my_custom_name"]; }string string = 1;- Returns:
- The bytes for string.
-
-