Location Class — netty Architecture
Architecture documentation for the Location class in WorldClockProtocol.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3808a59c_3ef0_ac24_5d82_0460a0bd58e5["Location"] 4270a70c_1373_1599_2ff1_865646eab29d["WorldClockProtocol.java"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|defined in| 4270a70c_1373_1599_2ff1_865646eab29d 832a3e5d_0e9d_4521_8c44_4ab080c2f296["Location()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|method| 832a3e5d_0e9d_4521_8c44_4ab080c2f296 0aa0f171_2fb8_0036_0095_97c4f340d129["getUnknownFields()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|method| 0aa0f171_2fb8_0036_0095_97c4f340d129 8df0d0bc_e832_691f_5dc8_09e56695211b["getDescriptor()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|method| 8df0d0bc_e832_691f_5dc8_09e56695211b 02ae3829_83e4_f978_8494_ccfa5fc949fe["internalGetFieldAccessorTable()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|method| 02ae3829_83e4_f978_8494_ccfa5fc949fe 9055a685_28ca_d3c3_98d0_abc261eef5a1["getParserForType()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|method| 9055a685_28ca_d3c3_98d0_abc261eef5a1 5d5689be_0450_bfbd_5c74_ddacfc16f08c["hasContinent()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|method| 5d5689be_0450_bfbd_5c74_ddacfc16f08c 0a5539be_3999_575b_b85e_4d0f301e8144["getContinent()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|method| 0a5539be_3999_575b_b85e_4d0f301e8144 40313b05_5753_9909_d58d_33fd4406101e["hasCity()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|method| 40313b05_5753_9909_d58d_33fd4406101e 145fea17_6a78_97a4_2e4b_e84592a00322["getCity()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|method| 145fea17_6a78_97a4_2e4b_e84592a00322 681146d9_d8d4_0539_1fd6_19c9979da70a["getCityBytes()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|method| 681146d9_d8d4_0539_1fd6_19c9979da70a aa904bf0_99e5_0813_575c_109f1121048e["initFields()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|method| aa904bf0_99e5_0813_575c_109f1121048e 3909ac7e_aa5d_aeaa_2381_d64ad47c067f["isInitialized()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|method| 3909ac7e_aa5d_aeaa_2381_d64ad47c067f 9fcb9f5c_9d02_e3de_3ffb_6530047ac3b8["writeTo()"] 3808a59c_3ef0_ac24_5d82_0460a0bd58e5 -->|method| 9fcb9f5c_9d02_e3de_3ffb_6530047ac3b8
Relationship Graph
Source Code
example/src/main/java/io/netty/example/worldclock/WorldClockProtocol.java lines 359–925
public static final class Location extends
com.google.protobuf.GeneratedMessage
implements LocationOrBuilder {
// Use Location.newBuilder() to construct.
private Location(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Location(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Location defaultInstance;
public static Location getDefaultInstance() {
return defaultInstance;
}
@Override
public Location getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Location(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
io.netty.example.worldclock.WorldClockProtocol.Continent value = io.netty.example.worldclock.WorldClockProtocol.Continent.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
continent_ = value;
}
break;
}
case 18: {
bitField0_ |= 0x00000002;
city_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.netty.example.worldclock.WorldClockProtocol.internal_static_io_netty_example_worldclock_Location_descriptor;
}
Source
Frequently Asked Questions
What is the Location class?
Location is a class in the netty codebase, defined in example/src/main/java/io/netty/example/worldclock/WorldClockProtocol.java.
Where is Location defined?
Location is defined in example/src/main/java/io/netty/example/worldclock/WorldClockProtocol.java at line 359.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free