code: public static TieredIdentity.LocalityTier fromProto(alluxio.grpc.LocalityTier localityPTier) {
      return new TieredIdentity.LocalityTier(localityPTier.getTierName(),
          localityPTier.hasValue() ? localityPTier.getValue() : null);
    }
docs: Converts a proto type to a wire type.
  
  @param localityPTier the proto type to convert
  @return the converted wire type