public ucar.nc2.stream.NcStreamProto.EnumTypedef buildPartial() { ucar.nc2.stream.NcStreamProto.EnumTypedef result = new ucar.nc2.stream.NcStreamProto.EnumTypedef(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (mapBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { map_ = java.util.Collections.unmodifiableList(map_); bitField0_ = (bitField0_ & ~0x00000002); } result.map_ = map_; } else { result.map_ = mapBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.EnumTypedef other) { if (other == ucar.nc2.stream.NcStreamProto.EnumTypedef.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; this.mergeUnknownFields(other.getUnknownFields()); return this;
static EnumTypedef decodeEnumTypedef(NcStreamProto.EnumTypedef enumType) { List<NcStreamProto.EnumTypedef.EnumType> list = enumType.getMapList(); Map<Integer, String> map = new HashMap<>(2 * list.size()); for (NcStreamProto.EnumTypedef.EnumType et : list) { map.put(et.getCode(), et.getValue()); } return new EnumTypedef(enumType.getName(), map); }
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
map_ = java.util.Collections.unmodifiableList(map_); makeExtensionsImmutable();
if (!getEnumTypes(i).isInitialized()) { memoizedIsInitialized = 0; return false;
if (!getEnumTypes(i).isInitialized()) { memoizedIsInitialized = 0; return false;
public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.EnumTypedef other) { if (other == ucar.nc2.stream.NcStreamProto.EnumTypedef.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; this.mergeUnknownFields(other.getUnknownFields()); return this;
public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.EnumTypedef other) { if (other == ucar.nc2.stream.NcStreamProto.EnumTypedef.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged();
if (!getEnumTypes(i).isInitialized()) {
if (!getEnumTypes(i).isInitialized()) {
public ucar.nc2.stream.NcStreamProto.EnumTypedef buildPartial() { ucar.nc2.stream.NcStreamProto.EnumTypedef result = new ucar.nc2.stream.NcStreamProto.EnumTypedef(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (mapBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { map_ = java.util.Collections.unmodifiableList(map_); bitField0_ = (bitField0_ & ~0x00000002); } result.map_ = map_; } else { result.map_ = mapBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public ucar.nc2.stream.NcStreamProto.EnumTypedef buildPartial() { ucar.nc2.stream.NcStreamProto.EnumTypedef result = new ucar.nc2.stream.NcStreamProto.EnumTypedef(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; if (mapBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { map_ = java.util.Collections.unmodifiableList(map_); bitField0_ = (bitField0_ & ~0x00000002); } result.map_ = map_; } else { result.map_ = mapBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(ucar.nc2.stream.NcStreamProto.EnumTypedef prototype) {
public Builder toBuilder() { return newBuilder(this); }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNameBytes()); } for (int i = 0; i < map_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, map_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasName()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getMapCount(); i++) { if (!getMap(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {