Locations Class — netty Architecture
Architecture documentation for the Locations class in WorldClockProtocol.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e9c7c8dc_d563_0a18_9c8e_775b69c37841["Locations"] 4270a70c_1373_1599_2ff1_865646eab29d["WorldClockProtocol.java"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|defined in| 4270a70c_1373_1599_2ff1_865646eab29d ec49204d_6460_d609_5516_044c23fc6841["Locations()"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|method| ec49204d_6460_d609_5516_044c23fc6841 e35474a5_d5e3_58b5_4f25_683b43114f69["getUnknownFields()"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|method| e35474a5_d5e3_58b5_4f25_683b43114f69 23849cba_afba_c339_07a7_d9bc595aadb0["getDescriptor()"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|method| 23849cba_afba_c339_07a7_d9bc595aadb0 79398e5a_9968_d855_e341_bc8ac2f42284["internalGetFieldAccessorTable()"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|method| 79398e5a_9968_d855_e341_bc8ac2f42284 d880c96c_93a0_1e42_07f4_cb122018a227["getParserForType()"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|method| d880c96c_93a0_1e42_07f4_cb122018a227 c41bf34d_d0c5_87b1_85fe_a09dcec05823["getLocationList()"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|method| c41bf34d_d0c5_87b1_85fe_a09dcec05823 80013401_812f_4e29_4feb_4e8ec999c874["getLocationOrBuilderList()"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|method| 80013401_812f_4e29_4feb_4e8ec999c874 0f05989c_0e63_a34b_26dd_7b031461d5a3["getLocationCount()"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|method| 0f05989c_0e63_a34b_26dd_7b031461d5a3 1751bd53_9fba_5318_41d1_92b80ac28601["getLocation()"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|method| 1751bd53_9fba_5318_41d1_92b80ac28601 29d66cdc_e7cf_134b_656c_2e5485b5f84e["getLocationOrBuilder()"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|method| 29d66cdc_e7cf_134b_656c_2e5485b5f84e 63908fe3_6a05_a173_97c9_e8337a51f8f4["initFields()"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|method| 63908fe3_6a05_a173_97c9_e8337a51f8f4 1f8e2a82_8565_e6bc_0318_e6850ddd5e96["isInitialized()"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|method| 1f8e2a82_8565_e6bc_0318_e6850ddd5e96 0fc51093_a14d_05be_4d46_e273a0891e53["writeTo()"] e9c7c8dc_d563_0a18_9c8e_775b69c37841 -->|method| 0fc51093_a14d_05be_4d46_e273a0891e53
Relationship Graph
Source Code
example/src/main/java/io/netty/example/worldclock/WorldClockProtocol.java lines 958–1633
public static final class Locations extends
com.google.protobuf.GeneratedMessage
implements LocationsOrBuilder {
// Use Locations.newBuilder() to construct.
private Locations(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Locations(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Locations defaultInstance;
public static Locations getDefaultInstance() {
return defaultInstance;
}
@Override
public Locations getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Locations(
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 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
location_ = new java.util.ArrayList<io.netty.example.worldclock.WorldClockProtocol.Location>();
mutable_bitField0_ |= 0x00000001;
}
location_.add(input.readMessage(io.netty.example.worldclock.WorldClockProtocol.Location.PARSER, extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
location_ = java.util.Collections.unmodifiableList(location_);
}
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_Locations_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.netty.example.worldclock.WorldClockProtocol.internal_static_io_netty_example_worldclock_Locations_fieldAccessorTable
Source
Frequently Asked Questions
What is the Locations class?
Locations is a class in the netty codebase, defined in example/src/main/java/io/netty/example/worldclock/WorldClockProtocol.java.
Where is Locations defined?
Locations is defined in example/src/main/java/io/netty/example/worldclock/WorldClockProtocol.java at line 958.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free