Class LocalTimeProtocol.Location.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<LocalTimeProtocol.Location.Builder>
-
- org.jboss.netty.example.localtime.LocalTimeProtocol.Location.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,LocalTimeProtocol.LocationOrBuilder
- Enclosing class:
- LocalTimeProtocol.Location
public static final class LocalTimeProtocol.Location.Builder extends com.google.protobuf.GeneratedMessage.Builder<LocalTimeProtocol.Location.Builder> implements LocalTimeProtocol.LocationOrBuilder
Protobuf typeorg.jboss.netty.example.localtime.Location
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private java.lang.Object
city_
private int
continent_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalTimeProtocol.Location
build()
LocalTimeProtocol.Location
buildPartial()
private void
buildPartial0(LocalTimeProtocol.Location result)
LocalTimeProtocol.Location.Builder
clear()
LocalTimeProtocol.Location.Builder
clearCity()
required string city = 2;
LocalTimeProtocol.Location.Builder
clearContinent()
required .org.jboss.netty.example.localtime.Continent continent = 1;
java.lang.String
getCity()
required string city = 2;
com.google.protobuf.ByteString
getCityBytes()
required string city = 2;
LocalTimeProtocol.Continent
getContinent()
required .org.jboss.netty.example.localtime.Continent continent = 1;
LocalTimeProtocol.Location
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
hasCity()
required string city = 2;
boolean
hasContinent()
required .org.jboss.netty.example.localtime.Continent continent = 1;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
LocalTimeProtocol.Location.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LocalTimeProtocol.Location.Builder
mergeFrom(com.google.protobuf.Message other)
LocalTimeProtocol.Location.Builder
mergeFrom(LocalTimeProtocol.Location other)
LocalTimeProtocol.Location.Builder
setCity(java.lang.String value)
required string city = 2;
LocalTimeProtocol.Location.Builder
setCityBytes(com.google.protobuf.ByteString value)
required string city = 2;
LocalTimeProtocol.Location.Builder
setContinent(LocalTimeProtocol.Continent value)
required .org.jboss.netty.example.localtime.Continent continent = 1;
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<LocalTimeProtocol.Location.Builder>
-
clear
public LocalTimeProtocol.Location.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<LocalTimeProtocol.Location.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<LocalTimeProtocol.Location.Builder>
-
getDefaultInstanceForType
public LocalTimeProtocol.Location getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LocalTimeProtocol.Location build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LocalTimeProtocol.Location buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(LocalTimeProtocol.Location result)
-
mergeFrom
public LocalTimeProtocol.Location.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LocalTimeProtocol.Location.Builder>
-
mergeFrom
public LocalTimeProtocol.Location.Builder mergeFrom(LocalTimeProtocol.Location other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<LocalTimeProtocol.Location.Builder>
-
mergeFrom
public LocalTimeProtocol.Location.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LocalTimeProtocol.Location.Builder>
- Throws:
java.io.IOException
-
hasContinent
public boolean hasContinent()
required .org.jboss.netty.example.localtime.Continent continent = 1;
- Specified by:
hasContinent
in interfaceLocalTimeProtocol.LocationOrBuilder
- Returns:
- Whether the continent field is set.
-
getContinent
public LocalTimeProtocol.Continent getContinent()
required .org.jboss.netty.example.localtime.Continent continent = 1;
- Specified by:
getContinent
in interfaceLocalTimeProtocol.LocationOrBuilder
- Returns:
- The continent.
-
setContinent
public LocalTimeProtocol.Location.Builder setContinent(LocalTimeProtocol.Continent value)
required .org.jboss.netty.example.localtime.Continent continent = 1;
- Parameters:
value
- The continent to set.- Returns:
- This builder for chaining.
-
clearContinent
public LocalTimeProtocol.Location.Builder clearContinent()
required .org.jboss.netty.example.localtime.Continent continent = 1;
- Returns:
- This builder for chaining.
-
hasCity
public boolean hasCity()
required string city = 2;
- Specified by:
hasCity
in interfaceLocalTimeProtocol.LocationOrBuilder
- Returns:
- Whether the city field is set.
-
getCity
public java.lang.String getCity()
required string city = 2;
- Specified by:
getCity
in interfaceLocalTimeProtocol.LocationOrBuilder
- Returns:
- The city.
-
getCityBytes
public com.google.protobuf.ByteString getCityBytes()
required string city = 2;
- Specified by:
getCityBytes
in interfaceLocalTimeProtocol.LocationOrBuilder
- Returns:
- The bytes for city.
-
setCity
public LocalTimeProtocol.Location.Builder setCity(java.lang.String value)
required string city = 2;
- Parameters:
value
- The city to set.- Returns:
- This builder for chaining.
-
clearCity
public LocalTimeProtocol.Location.Builder clearCity()
required string city = 2;
- Returns:
- This builder for chaining.
-
setCityBytes
public LocalTimeProtocol.Location.Builder setCityBytes(com.google.protobuf.ByteString value)
required string city = 2;
- Parameters:
value
- The bytes for city to set.- Returns:
- This builder for chaining.
-
-